Added Arxiv version of paper
This commit is contained in:
+131
@@ -0,0 +1,131 @@
|
||||
E sig_tot
|
||||
1.00000e-05 2.85516e-20
|
||||
1.20000e-05 2.92114e-20
|
||||
1.40000e-05 2.97811e-20
|
||||
1.60000e-05 3.02836e-20
|
||||
1.80000e-05 3.07339e-20
|
||||
2.00000e-05 3.11423e-20
|
||||
2.50000e-05 3.20254e-20
|
||||
3.00000e-05 3.27655e-20
|
||||
3.50000e-05 3.34045e-20
|
||||
4.00000e-05 3.39681e-20
|
||||
5.00000e-05 3.49313e-20
|
||||
6.00000e-05 3.57386e-20
|
||||
7.00000e-05 3.64356e-20
|
||||
8.00000e-05 3.70504e-20
|
||||
9.00000e-05 3.76012e-20
|
||||
1.00000e-04 3.81009e-20
|
||||
1.20000e-04 3.89814e-20
|
||||
1.40000e-04 3.97417e-20
|
||||
1.60000e-04 4.04123e-20
|
||||
1.80000e-04 4.10131e-20
|
||||
2.00000e-04 4.15582e-20
|
||||
2.50000e-04 4.27366e-20
|
||||
3.00000e-04 4.37242e-20
|
||||
3.50000e-04 4.45770e-20
|
||||
4.00000e-04 4.53291e-20
|
||||
5.00000e-04 4.66144e-20
|
||||
6.00000e-04 4.76916e-20
|
||||
7.00000e-04 4.86218e-20
|
||||
8.00000e-04 4.94422e-20
|
||||
9.00000e-04 5.01773e-20
|
||||
1.00000e-03 5.08442e-20
|
||||
1.20000e-03 5.20191e-20
|
||||
1.40000e-03 5.30337e-20
|
||||
1.60000e-03 5.39285e-20
|
||||
1.80000e-03 5.47303e-20
|
||||
2.00000e-03 5.54577e-20
|
||||
2.50000e-03 5.70302e-20
|
||||
3.00000e-03 5.83481e-20
|
||||
3.50000e-03 5.94861e-20
|
||||
4.00000e-03 6.04899e-20
|
||||
5.00000e-03 6.22051e-20
|
||||
6.00000e-03 6.36426e-20
|
||||
7.00000e-03 6.48838e-20
|
||||
8.00000e-03 6.59786e-20
|
||||
9.00000e-03 6.69596e-20
|
||||
1.00000e-02 6.78495e-20
|
||||
1.20000e-02 6.94174e-20
|
||||
1.40000e-02 7.07713e-20
|
||||
1.60000e-02 7.19654e-20
|
||||
1.80000e-02 7.30354e-20
|
||||
2.00000e-02 7.41000e-20
|
||||
3.00000e-02 7.71000e-20
|
||||
4.00000e-02 8.08000e-20
|
||||
5.00000e-02 8.32000e-20
|
||||
6.00000e-02 8.51000e-20
|
||||
7.00000e-02 8.69000e-20
|
||||
8.00000e-02 8.84000e-20
|
||||
9.00000e-02 8.99000e-20
|
||||
1.00000e-01 9.13000e-20
|
||||
1.20000e-01 9.33000e-20
|
||||
1.50000e-01 9.55000e-20
|
||||
2.00000e-01 9.83000e-20
|
||||
2.50000e-01 1.00400e-19
|
||||
3.00000e-01 1.02400e-19
|
||||
4.00000e-01 1.06100e-19
|
||||
5.00000e-01 1.09500e-19
|
||||
6.00000e-01 1.12800e-19
|
||||
7.00000e-01 1.15900e-19
|
||||
8.00000e-01 1.18800e-19
|
||||
9.00000e-01 1.21600e-19
|
||||
1.00000e+00 1.23600e-19
|
||||
1.25000e+00 1.30000e-19
|
||||
1.50000e+00 1.35500e-19
|
||||
2.00000e+00 1.41100e-19
|
||||
3.00000e+00 1.41200e-19
|
||||
4.00000e+00 1.32000e-19
|
||||
5.00000e+00 1.25100e-19
|
||||
6.00000e+00 1.14500e-19
|
||||
8.00000e+00 9.85000e-20
|
||||
1.00000e+01 8.58000e-20
|
||||
1.20000e+01 7.61000e-20
|
||||
1.40000e+01 6.92000e-20
|
||||
1.60000e+01 6.32000e-20
|
||||
1.80000e+01 5.78000e-20
|
||||
2.00000e+01 5.26000e-20
|
||||
2.50000e+01 4.23000e-20
|
||||
3.00000e+01 3.40000e-20
|
||||
3.50000e+01 2.81000e-20
|
||||
4.00000e+01 2.36000e-20
|
||||
5.00000e+01 1.73000e-20
|
||||
6.00000e+01 1.31000e-20
|
||||
7.00000e+01 1.06000e-20
|
||||
8.00000e+01 8.90000e-21
|
||||
9.00000e+01 8.10000e-21
|
||||
1.00000e+02 7.40000e-21
|
||||
1.20000e+02 6.61975e-21
|
||||
1.40000e+02 5.66489e-21
|
||||
1.60000e+02 4.94945e-21
|
||||
1.80000e+02 4.39369e-21
|
||||
2.00000e+02 3.94985e-21
|
||||
2.50000e+02 3.15371e-21
|
||||
3.00000e+02 2.62546e-21
|
||||
3.50000e+02 2.24920e-21
|
||||
4.00000e+02 1.96732e-21
|
||||
5.00000e+02 1.57294e-21
|
||||
6.00000e+02 1.31034e-21
|
||||
7.00000e+02 1.12305e-21
|
||||
8.00000e+02 9.82697e-22
|
||||
9.00000e+02 8.73558e-22
|
||||
1.00000e+03 7.86271e-22
|
||||
1.20000e+03 6.55425e-22
|
||||
1.40000e+03 5.62016e-22
|
||||
1.60000e+03 4.91973e-22
|
||||
1.80000e+03 4.37513e-22
|
||||
2.00000e+03 3.93956e-22
|
||||
2.50000e+03 3.15568e-22
|
||||
3.00000e+03 2.63326e-22
|
||||
3.50000e+03 2.26015e-22
|
||||
4.00000e+03 1.98036e-22
|
||||
5.00000e+03 1.58872e-22
|
||||
6.00000e+03 1.32766e-22
|
||||
7.00000e+03 1.14121e-22
|
||||
8.00000e+03 1.00139e-22
|
||||
9.00000e+03 8.92653e-23
|
||||
1.00000e+04 8.05667e-23
|
||||
1.20000e+04 6.75199e-23
|
||||
1.40000e+04 5.82019e-23
|
||||
1.60000e+04 5.12142e-23
|
||||
1.80000e+04 4.57799e-23
|
||||
2.00000e+04 4.14329e-23
|
||||
+255
@@ -0,0 +1,255 @@
|
||||
import numpy as np
|
||||
from scipy import interpolate
|
||||
|
||||
class electronCrossSection:
|
||||
def elastic(E_eV):
|
||||
#yoon
|
||||
data = np.genfromtxt(
|
||||
"./TCS_concatenated.txt",
|
||||
dtype=float,
|
||||
delimiter=" ",
|
||||
skip_header=1)
|
||||
|
||||
interpolation = interpolate.interp1d(
|
||||
data[:,0], data[:,1], bounds_error=False,fill_value=np.any(E_eV))
|
||||
return interpolation(E_eV)
|
||||
|
||||
def rotationalExcitation(E_eV):
|
||||
#yoon
|
||||
data = np.genfromtxt(
|
||||
"./rot_exc_j02.dat",
|
||||
dtype=float,
|
||||
delimiter=" ",
|
||||
skip_header=2)
|
||||
|
||||
interpolation = interpolate.interp1d(
|
||||
data[:,0], data[:,1], bounds_error=False,fill_value=np.any(E_eV))
|
||||
factor = np.where(E_eV<data[0,0],0,1)
|
||||
factor *= np.where(E_eV>data[-1,0],0,1)
|
||||
return interpolation(E_eV) * factor
|
||||
|
||||
def vibrationalExcitation(E_eV):
|
||||
#yoon
|
||||
data = np.genfromtxt(
|
||||
"./vib_exc_v01.dat",
|
||||
dtype=float,
|
||||
delimiter=" ",
|
||||
skip_header=2)
|
||||
|
||||
interpolation = interpolate.interp1d(
|
||||
data[:,0], data[:,1], bounds_error=False,fill_value=np.any(E_eV))
|
||||
factor = np.where(E_eV<data[0,0],0,1)
|
||||
factor *= np.where(E_eV>data[-1,0],0,1)
|
||||
return interpolation(E_eV) * factor
|
||||
|
||||
def Janev_eT2_Ionization_ndiss(E_eV):
|
||||
deltaE_eV = 15.42
|
||||
|
||||
x = E_eV/deltaE_eV
|
||||
C0 = 2.05*deltaE_eV
|
||||
|
||||
return np.abs(np.where(
|
||||
E_eV<deltaE_eV,
|
||||
0.,
|
||||
1.828/x*pow(1-pow(x,-0.92),2.19)*np.log(C0*x)*1e-20))
|
||||
|
||||
def Janev_eT2_Ionization_diss_g(E_eV):
|
||||
deltaE_eV = 18.15
|
||||
x = E_eV/deltaE_eV
|
||||
|
||||
return np.abs(np.where(
|
||||
E_eV<deltaE_eV,
|
||||
0.,
|
||||
0.02905*pow(x,-1.25)*pow(1-pow(x,-2.78),1.886)*1e-20))
|
||||
|
||||
def Janev_eT2_Ionization_diss_u(E_eV):
|
||||
deltaE_eV = 30.6
|
||||
x = E_eV/deltaE_eV
|
||||
|
||||
return np.abs(np.where(
|
||||
E_eV<deltaE_eV,
|
||||
0.,
|
||||
0.5927*pow(x,-1.2)*pow(1-pow(x,-1.22),3.375)*1e-20))
|
||||
|
||||
def JanevIonizationTotal(E_eV):
|
||||
return electronCrossSection.Janev_eT2_Ionization_ndiss(E_eV)\
|
||||
+ electronCrossSection.Janev_eT2_Ionization_diss_g(E_eV)\
|
||||
+ electronCrossSection.Janev_eT2_Ionization_diss_u(E_eV)
|
||||
|
||||
def JanevElectricExcitationNu(E_eV,n):
|
||||
if n=='B1Sigmau':
|
||||
deltaE_eV = 12.754
|
||||
alpha = 0.550
|
||||
A1 = 3.651e-2
|
||||
A2 = -0.8405
|
||||
A3 = 1.2365
|
||||
A4 = 2.5236
|
||||
if n=='Bp1Sigu':
|
||||
deltaE_eV = 14.85
|
||||
alpha = 0.550
|
||||
A1 = 6.827e-3
|
||||
A2 = -0.1572
|
||||
A3 = 0.23122
|
||||
A4 = 0.47191
|
||||
if n=='Bpp1Sigu':
|
||||
deltaE_eV = 15.47
|
||||
alpha = 0.550
|
||||
A1 = 2.446e-3
|
||||
A2 = -5.631e-2
|
||||
A3 = 6.2846e-2
|
||||
A4 = 0.16908
|
||||
if n=='C1Piu':
|
||||
deltaE_eV = 13.29
|
||||
alpha = 0.552
|
||||
A1 = 3.653e-2
|
||||
A2 = -0.8398
|
||||
A3 = 1.2368
|
||||
A4 = 2.8740
|
||||
if n=='D1Piu':
|
||||
deltaE_eV = 14.996
|
||||
alpha = 0.552
|
||||
A1 = 8.913e-3
|
||||
A2 = -0.2049
|
||||
A3 = 0.30178
|
||||
A4 = 0.70126
|
||||
if n=='Dp1Piu':
|
||||
deltaE_eV = 15.555
|
||||
alpha = 0.552
|
||||
A1 = 3.872e-3
|
||||
A2 = -8.902e-2
|
||||
A3 = 0.13110
|
||||
A4 = 0.30464
|
||||
|
||||
x = E_eV/deltaE_eV
|
||||
fac1 = 5.984/deltaE_eV/x*pow(1-1/x,alpha)
|
||||
fac2 = (A1 + A2/x + A3/x/x + A4*np.log(x))
|
||||
|
||||
return np.abs(np.where(
|
||||
E_eV<deltaE_eV,
|
||||
0.,
|
||||
fac1 * fac2 * 1e-20))
|
||||
|
||||
def JanevElectricExcitationNuTotal(E_eV):
|
||||
return electronCrossSection.JanevElectricExcitationNu(E_eV,'B1Sigmau')\
|
||||
+ electronCrossSection.JanevElectricExcitationNu(E_eV,'Bp1Sigu')\
|
||||
+ electronCrossSection.JanevElectricExcitationNu(E_eV,'Bpp1Sigu')\
|
||||
+ electronCrossSection.JanevElectricExcitationNu(E_eV,'C1Piu')\
|
||||
+ electronCrossSection.JanevElectricExcitationNu(E_eV,'D1Piu')\
|
||||
+ electronCrossSection.JanevElectricExcitationNu(E_eV,'Dp1Piu')
|
||||
|
||||
def JanevElectricExcitationNg(E_eV, n):
|
||||
if n=='EF1Sigpg':
|
||||
deltaE_eV = 13.13
|
||||
alpha = 2.71
|
||||
A1 = 0.8322
|
||||
if n=='HHb1Sigpg':
|
||||
deltaE_eV = 14.98
|
||||
alpha = 2.71
|
||||
A1 = 2.913e-2
|
||||
if n=='GK1Sigpg':
|
||||
deltaE_eV = 14.816
|
||||
alpha = 2.75
|
||||
A1 = 1.43e-2
|
||||
if n=='I1Pig':
|
||||
deltaE_eV = 14.824
|
||||
alpha = 2.80
|
||||
A1 = 5.409e-2
|
||||
|
||||
x = E_eV/deltaE_eV
|
||||
return np.abs(np.where(
|
||||
E_eV<deltaE_eV,
|
||||
0.,
|
||||
5.984*A1/deltaE_eV/x*pow(1-1/x,alpha) * 1e-20))
|
||||
|
||||
def JanevElectricExcitationNgTotal(E_eV):
|
||||
return electronCrossSection.JanevElectricExcitationNg(E_eV,'EF1Sigpg')\
|
||||
+ electronCrossSection.JanevElectricExcitationNg(E_eV,'HHb1Sigpg')\
|
||||
+ electronCrossSection.JanevElectricExcitationNg(E_eV,'GK1Sigpg')\
|
||||
+ electronCrossSection.JanevElectricExcitationNg(E_eV,'I1Pig')
|
||||
|
||||
def JanevElectricExcitationN(E_eV, n):
|
||||
if n=='a3Sigpg':
|
||||
deltaE_eV = 11.72
|
||||
beta = 4.5
|
||||
gamma = 1.55
|
||||
A = 0.544
|
||||
if n=='b3Sigpu':
|
||||
deltaE_eV = 7.93
|
||||
beta = 2.33
|
||||
gamma = 3.78
|
||||
A = 11.16
|
||||
if n=='c3Piu':
|
||||
deltaE_eV = 11.72
|
||||
beta = 5.5
|
||||
gamma = 1.65
|
||||
A = 1.43
|
||||
if n=='e3Sigpu' :
|
||||
deltaE_eV = 13.0
|
||||
beta = 4.5
|
||||
gamma = 1.60
|
||||
A = 0.190
|
||||
if n=='d3Piu':
|
||||
deltaE_eV = 13.6
|
||||
beta = 5.5
|
||||
gamma = 1.75
|
||||
A = 0.375
|
||||
|
||||
x = E_eV/deltaE_eV
|
||||
return np.abs(np.where(
|
||||
E_eV<deltaE_eV,
|
||||
0.,
|
||||
A*pow(x,-3)*pow(1-pow(x,-beta),gamma) * 1e-20))
|
||||
|
||||
def JanevElectricExcitationNTotal(E_eV):
|
||||
return electronCrossSection.JanevElectricExcitationN(E_eV,'a3Sigpg')\
|
||||
+ electronCrossSection.JanevElectricExcitationN(E_eV,'b3Sigpu')\
|
||||
+ electronCrossSection.JanevElectricExcitationN(E_eV,'c3Piu')\
|
||||
+ electronCrossSection.JanevElectricExcitationN(E_eV,'e3Sigpu')\
|
||||
+ electronCrossSection.JanevElectricExcitationN(E_eV,'d3Piu')
|
||||
|
||||
def JanevElectricExcitationTotal(E_eV):
|
||||
return electronCrossSection.JanevElectricExcitationNTotal(E_eV)\
|
||||
+ electronCrossSection.JanevElectricExcitationNgTotal(E_eV)\
|
||||
+ electronCrossSection.JanevElectricExcitationNuTotal(E_eV)
|
||||
|
||||
def radiativeRecombinationH(E_eV):
|
||||
alpha = 1./137
|
||||
a_bohr = 5.29E-11 #m
|
||||
Jz = (4.8E-10)**4*9.1E-28/(2*(1.05E-27)**2)
|
||||
nu = (Jz/(E_eV*1.6021E-12))**(1/2)
|
||||
|
||||
factor = nu**6 * np.exp(-4*nu*np.arctan(1/nu)) / ((1-np.exp(-2*np.pi*nu))*(nu**2+1)**2)
|
||||
|
||||
sig0 = 2**8*np.pi**2/3 * factor * alpha**3 * a_bohr**2
|
||||
sig_factor = (1.202+0.5782*np.log(nu**2+1)+0.2148*np.log(nu**2+1)**2)/(1+0.3425*np.log(nu**2+1))
|
||||
return sig_factor * sig0
|
||||
|
||||
def dissociativeRecombinationH2(E_eV):
|
||||
const1 = ( (E_eV)**0.665 * (1 + 1.1*(E_eV)**0.512 + 0.011*(E_eV)**3.10))**(-1)
|
||||
const2 = 0.133 * np.exp(-0.35*(E_eV-6.05)**2)
|
||||
return 17.3e-20 * (const1+const2)
|
||||
|
||||
def dissociativeExcitationH3(E_eV):
|
||||
delta_E = 14.75
|
||||
expc = np.exp(- 50.32*(E_eV)**-1.177/(1+1.019e-14*(E_eV)**7.462))
|
||||
cross_section = 82.56e-20*(E_eV)**-0.521*(1-(15.0/E_eV)**5.15) * expc
|
||||
|
||||
return np.where(E_eV < delta_E, 0, cross_section)
|
||||
|
||||
def dissociativeRecombinationH3(E_eV):
|
||||
sigLDR = 3e-20*(E_eV)**(-0.725)/(1+4.45*(E_eV)**1.2)
|
||||
sig_small = 0.0646e-20 * (E_eV)**1.478
|
||||
sig_big = 634.22e-20 * (E_eV)**(-2.605)
|
||||
sigHDR = 1/(1/sig_small + 1/sig_big)
|
||||
return sigLDR + sigHDR;
|
||||
|
||||
def dissociatveRecombinationH5(E_eV):
|
||||
# Pettersson
|
||||
return np.where(
|
||||
(E_eV<0.017),
|
||||
pow(10,-18.87) * pow(E_eV, -1.2),
|
||||
np.where(
|
||||
(E_eV < 0.159),
|
||||
pow(10,-19.93) * pow(E_eV, -1.78),
|
||||
pow(10,-21.5) * pow(E_eV, -3.75))
|
||||
)
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
#!/bin/python3
|
||||
import numpy as np
|
||||
import os
|
||||
import sys
|
||||
from astropy import units as u
|
||||
from astropy import constants as const
|
||||
import matplotlib
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
# Specific includes
|
||||
# =======================
|
||||
|
||||
homebase = os.getenv('HOMEBASE')
|
||||
if homebase == None:
|
||||
homebase = "/home/jonas/new_workspace/Coding/ACRONYM/acronym"
|
||||
|
||||
includes = homebase + "/src/grpic/boundaries_3d"
|
||||
|
||||
sys.path.append(includes)
|
||||
|
||||
import precalculation.functions.plasmaFunctions as plasmaFuncs
|
||||
import analysis.plotDataFromAcronym.plot_standards as pltStd
|
||||
|
||||
|
||||
from electronCrossSections import electronCrossSection as ecs
|
||||
|
||||
# inputs
|
||||
# =====================
|
||||
|
||||
paper_path = "/home/jonas/new_workspace/notes/paper/docs/paper/monte-carlo-electron-spectrum/"
|
||||
output_folder = paper_path+"/figures/"
|
||||
|
||||
|
||||
# calculation
|
||||
# ======================
|
||||
|
||||
energies_eV = np.logspace(1,4,100)
|
||||
|
||||
b1 = ecs.JanevElectricExcitationNu(energies_eV, 'B1Sigmau')*1E4
|
||||
bp1 = ecs.JanevElectricExcitationNu(energies_eV, 'Bp1Sigu')*1E4
|
||||
bpp1 = ecs.JanevElectricExcitationNu(energies_eV, 'Bpp1Sigu')*1E4
|
||||
c1 = ecs.JanevElectricExcitationNu(energies_eV, 'C1Piu')*1E4
|
||||
d1 = ecs.JanevElectricExcitationNu(energies_eV, 'D1Piu')*1E4
|
||||
dp = ecs.JanevElectricExcitationNu(energies_eV, 'Dp1Piu')*1E4
|
||||
|
||||
|
||||
# plots
|
||||
# ======================
|
||||
|
||||
pltStd.setRcParams()
|
||||
prop_cycle = plt.rcParams['axes.prop_cycle']
|
||||
colors = prop_cycle.by_key()['color']
|
||||
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
fig, ax = plt.subplots(1, 1, figsize=(width, height*0.7),sharex=True)
|
||||
|
||||
ax.set_facecolor('#e7e7e7ff')
|
||||
ax.grid(color='white')
|
||||
ax.set_axisbelow(True)
|
||||
|
||||
ax.plot(energies_eV, b1, '-', label='B')
|
||||
ax.plot(energies_eV, bp1, '--', label='B$^\prime$')
|
||||
ax.plot(energies_eV, bpp1, '--', label='B$^{\prime\prime}$')
|
||||
ax.plot(energies_eV, c1, '-.', label='C')
|
||||
ax.plot(energies_eV, d1, ':', label='D')
|
||||
ax.plot(energies_eV, dp, ':', label='D$^\prime$')
|
||||
|
||||
|
||||
ax.set_yscale('log')
|
||||
ax.set_xscale('log')
|
||||
ax.legend()
|
||||
|
||||
ax.set_xlabel(r'Energy $E$ (eV)')
|
||||
ax.set_ylabel(r'Cross section $\sigma$ (cm$^{2}$)')
|
||||
|
||||
|
||||
#plt.savefig(output_folder+"eT2_ela.pdf",bbox_inches='tight')
|
||||
plt.show()
|
||||
|
||||
|
||||
+125
@@ -0,0 +1,125 @@
|
||||
#!/bin/python3
|
||||
import numpy as np
|
||||
import os
|
||||
import sys
|
||||
from astropy import units as u
|
||||
from astropy import constants as const
|
||||
import matplotlib
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
# Specific includes
|
||||
# =======================
|
||||
|
||||
homebase = os.getenv('HOMEBASE')
|
||||
if homebase == None:
|
||||
homebase = "/home/jonas/new_workspace/Coding/ACRONYM/acronym"
|
||||
|
||||
includes = homebase + "/src/grpic/boundaries_3d"
|
||||
|
||||
sys.path.append(includes)
|
||||
|
||||
import precalculation.functions.plasmaFunctions as plasmaFuncs
|
||||
import analysis.plotDataFromAcronym.plot_standards as pltStd
|
||||
|
||||
|
||||
import electronCrossSections as ecs
|
||||
|
||||
# inputs
|
||||
# =====================
|
||||
|
||||
paper_path = "/home/jonas/new_workspace/notes/paper/docs/paper/monte-carlo-electron-spectrum/"
|
||||
output_folder = paper_path+"/figures/"
|
||||
|
||||
|
||||
# calculation
|
||||
# ======================
|
||||
|
||||
energies_eV = np.logspace(-3,4,100)
|
||||
|
||||
energy_elastic_extrapolation = np.logspace(-3, np.log10(0.019), 50)
|
||||
energy_elastic_experiment = np.logspace(np.log10(0.019), 2, 50)
|
||||
energy_elastic_calculated = np.logspace(2, 4, 50)
|
||||
|
||||
elastic_extrapolation = ecs.electronCrossSection.elastic(energy_elastic_extrapolation)*1E4
|
||||
elastic_experiment = ecs.electronCrossSection.elastic(energy_elastic_experiment)*1E4
|
||||
elastic_calculated = ecs.electronCrossSection.elastic(energy_elastic_calculated)*1E4
|
||||
|
||||
data_elastic = np.genfromtxt(
|
||||
"./TCS_concatenated.txt",
|
||||
dtype=float,
|
||||
delimiter=" ",
|
||||
skip_header=1)
|
||||
|
||||
energy_extrapolation = data_elastic[:,0]
|
||||
sigma_extraploation = data_elastic[:,1]
|
||||
|
||||
E_plot = energy_extrapolation[energy_extrapolation >= 0.02]
|
||||
sigmal_plot = sigma_extraploation[energy_extrapolation >= 0.02]
|
||||
|
||||
sigmal_plot = sigmal_plot[E_plot < 1]
|
||||
E_plot = E_plot[E_plot < 1]
|
||||
|
||||
def lin_fit(x):
|
||||
expo = 0.12530538432192462
|
||||
fact = 1.2082514958458152e-19
|
||||
return fact*x**expo
|
||||
|
||||
x_fit = np.linspace(1e-2,1, 100)
|
||||
y_fit = lin_fit(x_fit)
|
||||
|
||||
# plots
|
||||
# ======================
|
||||
|
||||
pltStd.setRcParams()
|
||||
prop_cycle = plt.rcParams['axes.prop_cycle']
|
||||
colors = prop_cycle.by_key()['color']
|
||||
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
fig, ax = plt.subplots(1, 1, figsize=(width, height*0.7),sharex=True)
|
||||
|
||||
ax.set_facecolor('#e7e7e7ff')
|
||||
ax.grid(color='white')
|
||||
ax.set_axisbelow(True)
|
||||
|
||||
ax.plot(energy_elastic_extrapolation, elastic_extrapolation, '--', label='extrapolated')
|
||||
ax.plot(energy_elastic_experiment, elastic_experiment, '-', label='experiment')
|
||||
ax.plot(energy_elastic_calculated, elastic_calculated, '-.', label='calculated')
|
||||
|
||||
|
||||
ax.set_yscale('log')
|
||||
ax.set_xscale('log')
|
||||
ax.legend()
|
||||
|
||||
ax.set_xlabel(r'Energy $E$ (eV)')
|
||||
ax.set_ylabel(r'Cross section $\sigma$ (cm$^{2}$)')
|
||||
|
||||
|
||||
plt.savefig(output_folder+"eT2_ela.pdf",bbox_inches='tight')
|
||||
#plt.show()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
fig, ax = plt.subplots(1, 1, figsize=(width, height*0.7),sharex=True)
|
||||
|
||||
ax.set_facecolor('#e7e7e7ff')
|
||||
ax.grid(color='white')
|
||||
|
||||
ax.plot(x_fit, y_fit, '--', label='fit')
|
||||
ax.plot(E_plot, sigmal_plot, 'x', label='exp. data')
|
||||
|
||||
|
||||
#ax.set_xlim((1E-3, 2E-2))
|
||||
|
||||
#ax.set_yscale('log')
|
||||
ax.set_xscale('log')
|
||||
ax.legend()
|
||||
|
||||
ax.set_xlabel(r'Energy $E$ (eV)')
|
||||
ax.set_ylabel(r'Cross section $\sigma$ (cm$^{2}$)')
|
||||
|
||||
|
||||
plt.savefig(output_folder+"eT2_ela_fit.pdf",bbox_inches='tight')
|
||||
#plt.show()
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
#!/bin/python3
|
||||
import numpy as np
|
||||
import os
|
||||
import sys
|
||||
from astropy import units as u
|
||||
from astropy import constants as const
|
||||
import matplotlib
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
# Specific includes
|
||||
# =======================
|
||||
|
||||
homebase = os.getenv('HOMEBASE')
|
||||
if homebase == None:
|
||||
homebase = "/home/jonas/new_workspace/Coding/ACRONYM/acronym"
|
||||
|
||||
includes = homebase + "/src/grpic/boundaries_3d"
|
||||
|
||||
sys.path.append(includes)
|
||||
|
||||
import precalculation.functions.plasmaFunctions as plasmaFuncs
|
||||
import analysis.plotDataFromAcronym.plot_standards as pltStd
|
||||
|
||||
|
||||
import electronCrossSections as ecs
|
||||
|
||||
# inputs
|
||||
# =====================
|
||||
|
||||
paper_path = "/home/jonas/new_workspace/notes/paper/docs/paper/monte-carlo-electron-spectrum/"
|
||||
output_folder = paper_path+"/figures/"
|
||||
|
||||
|
||||
# calculation
|
||||
# ======================
|
||||
|
||||
energies_eV = np.logspace(1,4,100)
|
||||
|
||||
|
||||
diss_ion_g = ecs.electronCrossSection.Janev_eT2_Ionization_diss_u(energies_eV)*1E4
|
||||
diss_ion_u = ecs.electronCrossSection.Janev_eT2_Ionization_diss_g(energies_eV)*1E4
|
||||
non_diss_ion = ecs.electronCrossSection.Janev_eT2_Ionization_ndiss(energies_eV)*1E4
|
||||
|
||||
# plots
|
||||
# ======================
|
||||
|
||||
pltStd.setRcParams()
|
||||
prop_cycle = plt.rcParams['axes.prop_cycle']
|
||||
colors = prop_cycle.by_key()['color']
|
||||
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
fig, ax = plt.subplots(1, 1, figsize=(width, height*0.7),sharex=True)
|
||||
|
||||
ax.set_facecolor('#e7e7e7ff')
|
||||
ax.grid(color='white')
|
||||
ax.set_axisbelow(True)
|
||||
|
||||
ax.plot(energies_eV, diss_ion_g, '--', label='diss. to gr.')
|
||||
ax.plot(energies_eV, diss_ion_u, '-', label='diss. to ex.')
|
||||
ax.plot(energies_eV, non_diss_ion, '-.', label='non diss.')
|
||||
|
||||
ax.set_ylim(1E-19, 2E-16)
|
||||
|
||||
ax.set_yscale('log')
|
||||
ax.set_xscale('log')
|
||||
ax.legend()
|
||||
|
||||
|
||||
ax.set_xlabel(r'Energy $E$ (eV)')
|
||||
ax.set_ylabel(r'Cross section $\sigma$ (cm$^{2}$)')
|
||||
|
||||
|
||||
plt.savefig(output_folder+"eT2_ion.pdf",bbox_inches='tight')
|
||||
plt.show()
|
||||
|
||||
|
||||
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
#!/bin/python3
|
||||
import numpy as np
|
||||
import os
|
||||
import sys
|
||||
from astropy import units as u
|
||||
from astropy import constants as const
|
||||
import matplotlib
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
# Specific includes
|
||||
# =======================
|
||||
|
||||
homebase = os.getenv('HOMEBASE')
|
||||
if homebase == None:
|
||||
homebase = "/home/jonas/new_workspace/Coding/ACRONYM/acronym"
|
||||
|
||||
includes = homebase + "/src/grpic/boundaries_3d"
|
||||
|
||||
sys.path.append(includes)
|
||||
|
||||
import precalculation.functions.plasmaFunctions as plasmaFuncs
|
||||
import analysis.plotDataFromAcronym.plot_standards as pltStd
|
||||
|
||||
|
||||
from electronCrossSections import electronCrossSection as ecs
|
||||
|
||||
# inputs
|
||||
# =====================
|
||||
|
||||
paper_path = "/home/jonas/new_workspace/notes/paper/docs/paper/monte-carlo-electron-spectrum/"
|
||||
output_folder = paper_path+"/figures/"
|
||||
|
||||
|
||||
# calculation
|
||||
# ======================
|
||||
|
||||
energies_eV = np.logspace(-3,3,100)
|
||||
|
||||
rec_T = ecs.radiativeRecombinationH(energies_eV)*1E4
|
||||
rec_T2 = ecs.dissociativeRecombinationH2(energies_eV)*1E4
|
||||
rec_T3 = ecs.dissociativeRecombinationH3(energies_eV)*1E4
|
||||
rec_T5 = ecs.dissociatveRecombinationH5(energies_eV)*1E4
|
||||
|
||||
|
||||
# plots
|
||||
# ======================
|
||||
|
||||
pltStd.setRcParams()
|
||||
prop_cycle = plt.rcParams['axes.prop_cycle']
|
||||
colors = prop_cycle.by_key()['color']
|
||||
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
fig, ax = plt.subplots(1, 1, figsize=(width, height*0.7),sharex=True)
|
||||
|
||||
ax.set_facecolor('#e7e7e7ff')
|
||||
ax.grid(color='white')
|
||||
ax.set_axisbelow(True)
|
||||
|
||||
ax.plot(energies_eV, rec_T, '-', label='T$^+$')
|
||||
ax.plot(energies_eV, rec_T2, '--', label='T$^+_2$')
|
||||
ax.plot(energies_eV, rec_T3, '-.', label='T$^+_3$')
|
||||
|
||||
|
||||
ax.set_yscale('log')
|
||||
ax.set_xscale('log')
|
||||
ax.legend()
|
||||
|
||||
ax.set_ylim(1E-19, 1E-12)
|
||||
|
||||
ax.set_xlabel(r'Energy $E$ (eV)')
|
||||
ax.set_ylabel(r'Cross section $\sigma$ (cm$^{2}$)')
|
||||
|
||||
|
||||
plt.savefig(output_folder+"eTI_overview.pdf",bbox_inches='tight')
|
||||
plt.show()
|
||||
|
||||
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
# Rotational Excitation J = 0->2 by Yoon:2008aa
|
||||
# E sig_tot
|
||||
4.410E-02 0.000E+00
|
||||
4.700E-02 1.850E-22
|
||||
5.000E-02 2.700E-22
|
||||
5.500E-02 3.500E-22
|
||||
6.000E-02 4.200E-22
|
||||
6.500E-02 4.800E-22
|
||||
7.000E-02 5.300E-22
|
||||
8.000E-02 6.200E-22
|
||||
9.000E-02 6.800E-22
|
||||
1.000E-01 7.400E-22
|
||||
1.100E-01 7.900E-22
|
||||
1.300E-01 8.800E-22
|
||||
1.500E-01 9.700E-22
|
||||
2.000E-01 1.150E-21
|
||||
2.500E-01 1.320E-21
|
||||
3.000E-01 1.520E-21
|
||||
3.500E-01 1.750E-21
|
||||
4.000E-01 2.000E-21
|
||||
4.500E-01 2.280E-21
|
||||
5.000E-01 2.600E-21
|
||||
6.000E-01 3.230E-21
|
||||
7.000E-01 3.940E-21
|
||||
8.000E-01 4.690E-21
|
||||
9.000E-01 5.550E-21
|
||||
1.000E+00 6.380E-21
|
||||
1.200E+00 7.960E-21
|
||||
1.500E+00 1.036E-20
|
||||
2.000E+00 1.370E-20
|
||||
2.500E+00 1.585E-20
|
||||
3.000E+00 1.704E-20
|
||||
3.500E+00 1.755E-20
|
||||
4.000E+00 1.758E-20
|
||||
4.500E+00 1.732E-20
|
||||
5.000E+00 1.689E-20
|
||||
6.000E+00 1.579E-20
|
||||
7.000E+00 1.462E-20
|
||||
8.000E+00 1.350E-20
|
||||
9.000E+00 1.248E-20
|
||||
1.000E+01 1.156E-20
|
||||
1.500E+01 7.300E-21
|
||||
1.600E+01 0.000E+00
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
# Vibration Excitation v = 0->1 by Yoon:2008aa
|
||||
# E sig_tot
|
||||
5.160E-01 0.000E+00
|
||||
5.500E-01 1.000E-22
|
||||
6.000E-01 1.700E-22
|
||||
6.600E-01 2.700E-22
|
||||
7.400E-01 3.800E-22
|
||||
8.000E-01 4.700E-22
|
||||
8.500E-01 5.900E-22
|
||||
1.000E+00 9.400E-22
|
||||
1.250E+00 1.720E-21
|
||||
1.480E+00 2.400E-21
|
||||
2.000E+00 3.670E-21
|
||||
2.460E+00 4.420E-21
|
||||
3.000E+00 4.860E-21
|
||||
3.800E+00 4.610E-21
|
||||
4.600E+00 3.800E-21
|
||||
5.000E+00 3.430E-21
|
||||
5.300E+00 3.240E-21
|
||||
5.600E+00 3.020E-21
|
||||
6.100E+00 2.700E-21
|
||||
7.000E+00 2.100E-21
|
||||
1.500E+01 5.650E-22
|
||||
2.000E+01 3.320E-22
|
||||
2.500E+01 2.420E-22
|
||||
3.000E+01 1.700E-22
|
||||
4.000E+01 1.120E-22
|
||||
5.000E+01 9.680E-23
|
||||
6.000E+01 8.170E-23
|
||||
8.000E+01 6.090E-23
|
||||
1.000E+02 4.510E-23
|
||||
1.100E+02 0.000E+00
|
||||
Reference in New Issue
Block a user