192 lines
7.8 KiB
Python
192 lines
7.8 KiB
Python
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
|
|
import subprocess
|
|
|
|
import matplotlib.colors
|
|
|
|
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
|
|
|
|
# Input
|
|
# =======================
|
|
|
|
|
|
thesis_path = "/home/jonas/new_workspace/notes/katrin-plasma/docs/phd/jkellerer"
|
|
output_folder = thesis_path+"/fig/Chapter2_KATRIN/ParticleInteractions/"
|
|
|
|
|
|
# Calculation
|
|
# =======================
|
|
|
|
def targetFrameSwitch(energy_eV, m1_eV, m2_eV):
|
|
return (energies_eV + m1_eV)*m2_eV/m1_eV - m2_eV
|
|
|
|
def energyToVelocity(E_eV, mass_eV):
|
|
return (2*E_eV/mass_eV)**(1/2)*const.c.value
|
|
|
|
class TritiumIon:
|
|
def crossSectionElastic_m2(E_eV):
|
|
sig0c1 = 5.74e-20
|
|
c2 = -5.765e-1
|
|
c3 = 2.79e-2
|
|
c2c4 = -5.765e-1 + 1.737
|
|
ERyd_eV = 13.605693009
|
|
|
|
return sig0c1*(E_eV/ERyd_eV)**c2 /(1 + (E_eV*1E-3/c3)**c2c4)
|
|
|
|
def crossSectionRadAsc_m2(E_eV):
|
|
mass_eV = 938.27208816E6 # mass proton
|
|
v_ms = energyToVelocity(E_eV, mass_eV)
|
|
return 1.3E-22 / v_ms
|
|
|
|
def crossSectionTerAsc_m2(E_eV, n_T2_m3):
|
|
mass_eV = 938.27208816E6
|
|
v_ms = energyToVelocity(E_eV, mass_eV)
|
|
return 5.4E-41 * n_T2_m3 /v_ms
|
|
|
|
def crossSectionProtonChargeTransfer(E_eV, nu):
|
|
E0nu = [2.67, 1.74, 1.17, 0.48, 0.0, 0.0, 0.0, 0.0, 0.0]
|
|
|
|
a1 = [18.6, 2.51, 3.01, 4.5, 24.0, 11.75, 11.58, 0., 0.]
|
|
a2 = [-1.66, -0.56, -0.63, -0.57, -0.32, 0.092, 0.091, 0., 0.]
|
|
a3 = [2.53, 4.21, 7.04, 5.0, 0.0, 0.0, 0.0, 0.0, 0.0]
|
|
a4 = [1.93, 4.07, 10.74, 14.62, 0.0, 0.0, 0., 0., 0.]
|
|
a5 = [0., 1E-5, 1E-5, 0.145, 3.86E-3, 3.84E-3, 0., 0.]
|
|
a6 = [0., 1., 1., 1., 1.84, 2.86, 2.87, 0., 0.]
|
|
|
|
|
|
|
|
b1 = [17.3, 58., 26.53, 39.50, 10.8, 20., 20.04, 33., 30.]
|
|
b2 = [105., 11.28, 25.20, 9.35, 0., 0., 0., 0., 0.]
|
|
b3 = [2., 0.246, 0.65, 0.51, 0., 0., 0., 0., 0.]
|
|
b4 = [1E4, 1., 1., 1., 1., 1., 1., 1., 1., 1.]
|
|
b5 = [-1.12, 0.0, 0.0, 0.0, -0.297, -0.193, -0.192, -0.022, -0.017]
|
|
b6 = [3.64E-4, 3.92E-5, 1.56E-6, 5.32E-7, 2.92E-4, 1.36E-5, 1.34E-5, 1.22E-2, 1.87E-2]
|
|
b7 = [0.9, 1.11, 1.45, 1.60, 0.76, 1.15, 1.15, 0.36, 0.375]
|
|
b8 = [5.03E-19, 4.95E-17, 5.5E-19, 3.52E-20, 4.93E-11, 4.46E-12, 4.46E-12, 6.51E-8, 9.0E-10]
|
|
b9 = [4.0, 3.65, 4.0, 4.25, 2.35, 2.61, 2.61, 1.78, 2.18]
|
|
b10 = [5.87E-28, 3.88E-26, 8.5E-27, 3.5E-27, 2.62E-27, 4.31E-27, 4.31E-27, 3.25E-23, 1.85E-25]
|
|
b11 = [5.5, 5.2, 5.3, 5.4, 5.5, 5.5, 5.5, 4.86, 5.25]
|
|
|
|
i = nu
|
|
sigsmall = a1[i]*E_eV**a2[i] * (1-(E0nu[i]/E_eV)**a3[i])**a4[i] * np.exp(-a5[i]*E_eV**a6[i])*1E-20
|
|
sigbig = b1[i]*np.exp(-b2[i]/E_eV**b3[i])/(b4[i]*E_eV**b5[i] + b6[i]*E_eV**b7[i] + b8[i]*E_eV**b9[i] + b10[i]*E_eV**b11[i]) * 1E-20
|
|
|
|
return sigsmall + sigbig;
|
|
|
|
#data_E = [0.1, 0.1334, 0.1778, 0.237, 0.316, 0.422, 0.562, 0.750, 1.0, 1.334, 1778, 2.37, 3.16, 4.22, 5.62, 7.50, 10., 13.3, 17.78, 23.7, 31.6, 42.2, 56.2., 75.0, 100., 133.4, 177.8, 237., 316., 421., 562., 750., 1000., 1334., 1778., 2371., 3162., 4217., 5623., 7499., 10000.]
|
|
|
|
def crossSectionH2Production(E_eV):
|
|
|
|
data_E = np.array([3.16, 4.22, 5.62, 7.50, 10., 13.3, 17.78, 23.7, 31.6, 42.2, 56.2, 75.0, 100., 133.4, 177.8, 237., 316., 421., 562., 750., 1000., 1334., 1778., 2371., 3162., 4217., 5623., 7499., 10000.])
|
|
data_sigma = np.array([0.59, 0.75, 0.71, 0.615, 0.54, 0.48, 0.435, 0.397, 0.365, 0.34, 0.333, 0.34, 0.37, 0.43, 0.54, 0.73, 1.03, 1.54, 2.3, 3.35, 4.5, 5.7, 6.8, 7.6, 8.2, 8.4, 8.4, 8.3, 8.1])
|
|
return np.where(E_eV < data_E[0], 0, np.interp(E_eV, data_E, data_sigma*1E-20))
|
|
|
|
def crossSectionRadiativeRecombinationLow(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)
|
|
zeta = 1.202
|
|
|
|
return 128*np.pi*zeta/3 * nu**5 * alpha**3 * a_bohr**2
|
|
|
|
def crossSectionRadiativeRecombinationHigh(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)
|
|
|
|
#return 32*np.pi/(3*np.sqrt(3))*alpha**3 * a_bohr**2 * nu**2 * np.log(nu)
|
|
|
|
return 16*np.pi/(3*np.sqrt(3)) * nu**2 * np.log(1+nu**2) * alpha**3 * a_bohr**2
|
|
|
|
def crossSectionRecombination1(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)
|
|
|
|
return 2**8*np.pi**2/3 * factor * alpha**3 * a_bohr**2
|
|
def crossSectionRadiativeRecombinationFull(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 = (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 TritiumIon.crossSectionRecombination1(E_eV) * factor
|
|
|
|
density_T2 = 6.3E14*1E6
|
|
|
|
energies_eV = np.logspace(-3,4,100)
|
|
|
|
sigma_Ti_elastic = TritiumIon.crossSectionElastic_m2(energies_eV)*1E4
|
|
sigma_Ti_radasc = TritiumIon.crossSectionRadAsc_m2(energies_eV)*1E4
|
|
sigma_Ti_terasc = TritiumIon.crossSectionTerAsc_m2(energies_eV,density_T2)*1E4
|
|
sigma_Ti_ctrans = TritiumIon.crossSectionProtonChargeTransfer(energies_eV, 0)*1E4
|
|
sigma_Ti_ctrans7 = TritiumIon.crossSectionProtonChargeTransfer(energies_eV, 7)*1E4
|
|
|
|
sigma_Ti_h2production = TritiumIon.crossSectionH2Production(energies_eV)*1E4
|
|
|
|
energies_eV_target = targetFrameSwitch(energies_eV, 511E3, 1*938.272)
|
|
|
|
#sigma_Ti_radiative_recombination_low = TritiumIon.crossSectionRadiativeRecombinationLow(energies_eV_target)*1E4
|
|
#sigma_Ti_radiative_recombination_high = TritiumIon.crossSectionRadiativeRecombinationHigh(energies_eV_target)*1E4
|
|
#sigma_Ti_radiative_recombination_full = TritiumIon.crossSectionRadiativeRecombinationFull(energies_eV_target)*1E4
|
|
|
|
sigma_Ti_radiative_recombination_low = TritiumIon.crossSectionRadiativeRecombinationLow(energies_eV)*1E4
|
|
sigma_Ti_radiative_recombination_high = TritiumIon.crossSectionRadiativeRecombinationHigh(energies_eV)*1E4
|
|
sigma_Ti_radiative_recombination_full = TritiumIon.crossSectionRadiativeRecombinationFull(energies_eV)*1E4
|
|
|
|
# Plot
|
|
# =======================
|
|
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))
|
|
|
|
ax.plot(energies_eV, sigma_Ti_elastic, '-',label=r'elastic scattering')
|
|
ax.plot(energies_eV, sigma_Ti_radasc, '--',label=r'radiative association')
|
|
ax.plot(energies_eV, sigma_Ti_terasc, '--', label=r'ternary association')
|
|
ax.plot(energies_eV, sigma_Ti_ctrans, ':', label=r'charge. trans $\nu =0$')
|
|
ax.plot(energies_eV, sigma_Ti_ctrans7, ':', label=r'charge. trans $\nu =7$')
|
|
#ax.plot(energies_eV, sigma_Ti_h2production, ':', label=r'H$_2^+$ and fast H')
|
|
|
|
#ax.plot(energies_eV, sigma_Ti_radiative_recombination_low, label="low")
|
|
#ax.plot(energies_eV, sigma_Ti_radiative_recombination_high, label="high")
|
|
ax.plot(energies_eV, sigma_Ti_radiative_recombination_full, '-.', label=r'recombination (e$^-$)')
|
|
|
|
ax.set_xscale('log')
|
|
ax.set_yscale('log')
|
|
ax.set_ylabel(r'Cross section $\sigma$ (cm$^{2}$)')
|
|
ax.set_xlabel(r'Energy $E$ (eV)')
|
|
ax.set_ylim((1E-23, 2E-13))
|
|
ax.set_xlim((1E-3, 2E3))
|
|
|
|
ax.set_facecolor('#e7e7e7ff')
|
|
ax.grid(color='white')
|
|
|
|
#matplotlib.rcParams['axes.grid'] = True
|
|
#matplotlib.rcParams['grid.color'] = 'white'
|
|
|
|
ax.legend(loc='lower right')
|
|
plt.savefig(output_folder+"TIintercactions.pdf",bbox_inches='tight')
|
|
plt.show() |