Chapter 1-2 ready. Chapter3 under construction

This commit is contained in:
Jonas Kellerer
2021-04-12 17:18:03 +02:00
parent 310de94f66
commit aa36b34534
88 changed files with 72626 additions and 704 deletions
@@ -56,6 +56,11 @@ def k3(k3_given, T_given, T_new):
a = k3_given*T_given
return a/T_new
def kf_min(kf_gerlich, kf_paul, T):
m = (kf_gerlich - kf_paul)/15
n = kf_gerlich - m*25
return m * T + n
# gerlich
h3_gerlich = np.array([9E-1, 8.63E-1, 8.33E-1, 8E-1])
@@ -130,16 +135,21 @@ kf_gerlich_25 = np.array([f_5, f_7, f_9])
# calculations
############################################
binding_energy = np.array([260, 17, 108, 11, 11, 10, 10, 10, 9, 9])*1E-3
kf_paul_25 = kf(kf_paul_10, 10, 25, binding_energy)
#kf_paul_25 = kf(kf_paul_10, 10, 25, 9E-3)
#kf_paul_25_errobar = kf(kf_paul_10_error, 10, 25, 9E-3)
kf_paul_25_errobar = kf(kf_paul_10_error, 10, 25, binding_energy)
kf_paul_25 = kf(kf_paul_10, 10, 25, 9E-3)
kf_paul_25_errobar = kf(kf_paul_10_error, 10, 25, 9E-3)
kf_paul_80 = kf(kf_paul_10, 10, 80, 9E-3)
kf_paul_80_errorbar = kf(kf_paul_10_error, 10, 80, 9E-3)
#kf_paul_80 = kf(kf_paul_10, 10, 80, 9E-3)
kf_paul_80 = kf(kf_paul_10, 10, 80, binding_energy)
#kf_paul_80_errorbar = kf(kf_paul_10_error, 10, 80, 9E-3)
kf_paul_80_errorbar = kf(kf_paul_10_error, 10, 80, binding_energy)
H2_paul = 1E14
H2_gerlich = 3.7E13
H2_katrin = 1E15
H2_katrin = 6.337599E14
k3_paul_25 = k3(k3_paul_10, 10, 25)
k3_paul_25_errorbar = k3(k3_paul_10_error, 10, 25)
@@ -147,6 +157,9 @@ k3_paul_25_errorbar = k3(k3_paul_10_error, 10, 25)
k3_paul_80 = k3(k3_paul_10, 10, 80)
k3_paul_80_errorbar = k3(k3_paul_10_error, 10, 80)
kf_paul_min80 = kf_min(k3_gerlich[1:4]*H2_gerlich, kf_paul_10[0:3], 80)
kf_paul_min80_errorbar_min = kf_min(k3_gerlich[1:4]*H2_gerlich, kf_paul_10_error[0:3], 80)
# plots
############################################
pltStd.setRcParams()
@@ -158,19 +171,21 @@ fig, (ax,ax1) = plt.subplots(2, 1, figsize=(width, height*1.5))
# k3
ax.errorbar(h_i, k3_paul_10, yerr=k3_paul_10_error, linestyle='--', label=r'Paul et al. $(T=10K)$', capsize=3, fmt='.')
ax.errorbar(h_i, k3_paul_25, yerr=k3_paul_25_errorbar, linestyle='--',label=r'Paul et al., scaled $(T=25K)$ ', capsize=3, fmt='.')
ax.plot(h_i[0:4], k3_gerlich, 'x--', label=r'Gerlich et al. $(T=25K)$')
ax.errorbar(h_i, k3_paul_10, yerr=k3_paul_10_error, linestyle='--', label=r'Paul $(T=10K)$', capsize=3, fmt='.', ecolor=colors[0])
ax.errorbar(h_i, k3_paul_25, yerr=k3_paul_25_errorbar, linestyle='--',label=r'Paul, scaled $(T=25K)$ ', capsize=3, fmt='.', ecolor=colors[1])
ax.plot(h_i[0:4], k3_gerlich, 'x-.', label=r'Gerlich $(T=25K)$', color=colors[2])
ax.set_ylabel(r'Rate constant $k_3$ [cm$^{6}$s$^{-1}$]')
ax.set_yscale('log')
ax.legend(loc="lower right")
ax.set_xticks(h_i)
ax.set_facecolor('#e7e7e7ff')
ax.grid(color='white')
#kf
ax1.errorbar(h_i, kf_paul_10, yerr=kf_paul_10_error, linestyle='--', label=r'Paul et al. $(T=10K)$', capsize=3, fmt='.')
ax1.errorbar(h_i, kf_paul_25, yerr=kf_paul_25_errobar, linestyle='--', label=r'Paul et al., scaled $(T=25K)$ ', capsize=3, fmt='.')
ax1.plot(h_i[0:3], kf_gerlich_25, 'x--', label=r'Gerlich et al. extrapolated $(T=25K)$')
#ax1.errorbar(h_i, kf_paul_25, yerr=kf_paul_25_errobar, linestyle='--', label=r'Paul et al., scaled $(T=25K)$ ', capsize=3, fmt='.')
ax1.plot(h_i[0:3], k3_gerlich[1:4]*H2_gerlich, 'x-.', label=r'Gerlich, lower limit $(T=25K)$', color=colors[2])
#ax1.plot(h_i[0:3], kf_gerlich_25, 'x--', label=r'Gerlich et al. extrapolated $(T=25K)$')
ax1.set_yscale('log')
ax1.legend(loc="upper right")
@@ -178,8 +193,13 @@ ax1.set_ylabel(r'Rate constant $k_f$ [cm$^{3}$s$^{-1}$]')
ax1.set_xlabel(r'Cluster size H$_i$')
ax1.legend(loc="lower right")
ax1.set_xticks(h_i)
ax1.set_facecolor('#e7e7e7ff')
ax1.grid(color='white')
#ax1.set_ylim((2.6E-16, 2.0E-8))
plt.savefig(output_folder + "clustering_25k.pdf",bbox_inches='tight')
plt.show()
@@ -188,13 +208,36 @@ fig, ax = plt.subplots(1, 1, figsize=(width, height))
# k3
ax.errorbar(h_i, k3_paul_10*H2_katrin, yerr=k3_paul_10_error*H2_katrin, linestyle='--', label=r'$k_3 \cdot [H2]$, $(T=10K)$', capsize=3, fmt='.')
ax.errorbar(h_i, k3_paul_80*H2_katrin, yerr=k3_paul_80_errorbar*H2_katrin, linestyle='-.',label=r'$k_3 \cdot [H2]$, $(T=80K)$', capsize=3, fmt='.')
#ax.errorbar(h_i, k3_paul_10*H2_katrin, yerr=k3_paul_10_error*H2_katrin, linestyle='--', label=r'$k_3 \cdot [H2]$, $(T=10K)$', capsize=3, fmt='.')
ax.errorbar(h_i, k3_paul_80*H2_katrin, yerr=k3_paul_80_errorbar*H2_katrin, linestyle='--',label=r'$k_3(T=80K) \cdot [H2]$, scaled, Paul', capsize=3, fmt='.', ecolor=colors[0])
ax.errorbar(h_i, kf_paul_10, yerr=kf_paul_10_error, linestyle='--', label=r'$k_f$, $(T=10K)$', capsize=3, fmt='.')
ax.errorbar(h_i, kf_paul_80, yerr=kf_paul_80_errorbar, linestyle='-.',label=r'$k_f$, $(T=80K)$', capsize=3, fmt='.')
ax.plot(h_i[0:3], kf_gerlich_25, '+:', label=r'$k_f$, Gerlich $(T=25K)$')
ax.errorbar(h_i, kf_paul_10, yerr=kf_paul_10_error, linestyle='--', label=r'$k_f(T=10K)$, Paul', capsize=3, fmt='.', ecolor=colors[1])
#ax.errorbar(h_i[3:], kf_paul_80[3:], yerr=kf_paul_80_errorbar[3:], linestyle='-.',label=r'$k_f$, $(T=80K)$', capsize=3, fmt='.')
ax.plot(h_i[0:3], k3_gerlich[1:4]*H2_gerlich, 'x-.', label=r'$k_f(T=25K)$, lower limit, Gerlich',color=colors[2])
ax.plot(h_i[0:3], kf_paul_min80, linestyle=':', marker='+', markersize=9, label=r'$k_f(T=80K)$, linear scaled',color=colors[3])
ax.set_ylabel(r'Rate constant $k$ [cm$^{3}$s$^{-1}$]')
ax.set_xlabel(r'Cluster size H$_i$')
ax.set_yscale('log')
#ax.set_ylim((2.6E-16, 4.0E-8))
ax.legend(loc="lower right")
ax.set_xticks(h_i)
ax.set_facecolor('#e7e7e7ff')
ax.grid(color='white')
plt.savefig(output_folder + "clustering_80k.pdf",bbox_inches='tight')
plt.show()
(width, height) = pltStd.set_size('thesis')
fig, ax = plt.subplots(1, 1, figsize=(width, height))
ax.errorbar(h_i, k3_paul_10*H2_paul, yerr=k3_paul_10_error*H2_paul, linestyle='--', label=r'$k_3 \cdot [H2]$', capsize=3, fmt='.')
ax.errorbar(h_i, kf_paul_10, yerr=kf_paul_10_error, linestyle='-.', label=r'$k_f$', capsize=3, fmt='.')
ax.set_ylabel(r'Rate constant $k$ [cm$^{3}$s$^{-1}$]')
ax.set_xlabel(r'Cluster size H$_i$')
@@ -205,6 +248,11 @@ ax.legend(loc="lower right")
ax.set_xticks(h_i)
plt.savefig(output_folder + "clustering_80k.pdf",bbox_inches='tight')
ax.set_facecolor('#e7e7e7ff')
ax.grid(color='white')
plt.savefig(output_folder + "clustering_10k_paul.pdf",bbox_inches='tight')
plt.show()
print(k3_paul_80*H2_katrin*H2_katrin)
print(kf_paul_25)
@@ -278,6 +278,12 @@ 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_xlim((1E-3, 2E3))
ax.set_facecolor('#e7e7e7ff')
ax.grid(color='white')
ax.legend(loc='center left')
plt.savefig(output_folder + "eT2_overview.pdf",bbox_inches='tight')
plt.show()
@@ -339,5 +339,11 @@ ax.set_yscale('log')
ax.set_ylabel(r'Cross section $\sigma$ [cm$^{2}$]')
ax.set_xlabel(r'Energy $E$ [eV]')
ax.legend(loc='upper right',ncol=2)
ax.set_xlim((1E-3, 2E3))
ax.set_facecolor('#e7e7e7ff')
ax.grid(color='white')
plt.savefig(output_folder + "eTI_overview.pdf",bbox_inches='tight')
plt.show()
@@ -132,7 +132,7 @@ class TritiumIon:
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 = 1E21
density_T2 = 6.3E14*1E6
energies_eV = np.logspace(-3,4,100)
@@ -179,6 +179,14 @@ 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()
@@ -136,6 +136,12 @@ ax.set_yscale('log')
ax.set_ylabel(r'Cross section $\sigma$ [cm$^{2}$]')
ax.set_xlabel(r'Energy $E$ [eV]')
ax.set_ylim((1E-17, 3E-13))
ax.set_xlim((1E-3, 2E3))
ax.set_facecolor('#e7e7e7ff')
ax.grid(color='white')
ax.legend()
plt.savefig(output_folder + "T2Iintercactions.pdf",bbox_inches='tight')
plt.show()
@@ -93,7 +93,7 @@ class TritiumIon3:
density_T2 = 1E21
density_T2 = 6.3E14*1E6
energies_eV = np.logspace(-3,4,100)
@@ -127,8 +127,8 @@ ax.plot(energies_eV, sigma_Ti3_radasc, '--', label=r'radiative ass.')
ax.plot(energies_eV, sigma_Ti3_terasc, '--', label=r'ternary ass.')
ax.plot(energies_eV, sigma_Ti3_CID_T, linestyle=(0, (3, 1, 1, 1, 1, 1)), label=r'CID to H$^+$')
ax.plot(energies_eV, sigma_Ti3_CID_T2, linestyle=(0, (3, 1, 1, 1, 1, 1)), label=r'CID to H$^+_2$')
ax.plot(energies_eV, sigma_Ti3_disc, ':', label=r'dissociative exc. (e$^-$)')
ax.plot(energies_eV, sigma_Ti3_discrec, '-.', label=r'dissociative rec. (e$^-$)')
ax.plot(energies_eV, sigma_Ti3_disc, ':', label=r'diss. exc. (e$^-$)')
ax.plot(energies_eV, sigma_Ti3_discrec, '-.', label=r'diss. rec. (e$^-$)')
ax.set_xscale('log')
@@ -136,6 +136,11 @@ 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, 1E-12))
ax.legend(loc='lower left')
ax.set_xlim((1E-3, 2E3))
ax.set_facecolor('#e7e7e7ff')
ax.grid(color='white')
ax.legend(loc='upper right', ncol=3)
plt.savefig(output_folder+"T3Iintercactions.pdf",bbox_inches='tight')
plt.show()