Flow, nT2, motion, ne, je

This commit is contained in:
Jonas Kellerer
2021-04-14 11:40:40 +02:00
parent e9aca48e36
commit 4296ff692e
8 changed files with 16295 additions and 68 deletions
@@ -0,0 +1,75 @@
{
"metadata": {
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.5-final"
},
"orig_nbformat": 2,
"kernelspec": {
"name": "python385jvsc74a57bd056da61b003f59252fe334bcd2da0b07ae0ea3d3a7a2553430d655234b468fb36",
"display_name": "Python 3.8.5 64-bit ('base': conda)"
}
},
"nbformat": 4,
"nbformat_minor": 2,
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"from astropy import constants as const\n",
"from astropy import units as u"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"k3: 4.665801632759307e-17 cm6 / s\n1055.432076587134 m\n"
]
}
],
"source": [
"# Ternary recombination\n",
"Te = 80 #K\n",
"Te_eV = Te*8.61732814974056E-05 # eV\n",
"\n",
"#from Matveyev 1995\n",
"def k3(T_eV):\n",
" return 8.75E-27/(T_eV**(4.5)) * u.cm**6/u.s\n",
"\n",
"def mfp(Te_eV, n):\n",
" v = np.sqrt(2*Te_eV/511E3)*const.c # m/s\n",
" k = k3(Te_eV) # cm^6/s\n",
" print(\"k3: \" + str(k))\n",
" return (v/(k*n**2)).to(u.m)\n",
"\n",
"print(mfp(Te_eV, 1E15/(u.m**3)))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
]
}