Changes after KATRIN review
This commit is contained in:
+19
-10
@@ -27,7 +27,7 @@ paper_path = "/home/jonas/new_workspace/notes/paper/docs/paper/monte-carlo-elect
|
||||
output_folder = paper_path+"/figures/"
|
||||
|
||||
filename_Nastoyashchii = paper_path + "/calculations/ComparisonNastoyashchii/data_Nastoyashchii.txt"
|
||||
folder_karl = "/home/jonas/new_workspace/Coding/Output/LRZ/SCRATCH/KARL/ComparisonNastoyashchii/parameter_20210509_1/"
|
||||
folder_karl = "/home/jonas/new_workspace/Coding/Output/LRZ/SCRATCH/KARL/ComparisonNastoyashchii36/parameter_20210716_1/"
|
||||
filename_karl = folder_karl + "mc_electron_out_1391.h5"
|
||||
|
||||
z_pos_1 = 8
|
||||
@@ -45,16 +45,25 @@ zmaxs = getZBinsMax(filename_karl, key)
|
||||
Emins = getEBinsMin(filename_karl, key)
|
||||
Emaxs = getEBinsMax(filename_karl, key)
|
||||
|
||||
|
||||
particles = getParticlesPerBin(filename_karl, key)
|
||||
volumes = getVolumes(filename_karl, key)
|
||||
volumes_longitudinal = np.sum(volumes, axis=(1,2)) # z, r, phi
|
||||
|
||||
z_index_1 = np.where(zmins <= z_pos_1)[-1][-1]
|
||||
|
||||
|
||||
density_karl_plot_1 = np.mean(density_karl[z_index_1,0,:,:],0) / 1E6
|
||||
particles_at_z_1 = np.sum(particles[z_index_1,:,:,:], axis=(0,1)) # z, r, phi, E
|
||||
dndE_1 = particles_at_z_1/volumes_longitudinal[z_index_1] / 1E6
|
||||
plot_bins = np.dstack((Emins,Emaxs)).flatten()
|
||||
plot_datas_1 = np.dstack((density_karl_plot_1,density_karl_plot_1)).flatten()
|
||||
plot_datas_1 = np.dstack((dndE_1,dndE_1)).flatten()
|
||||
|
||||
|
||||
|
||||
z_index_2 = np.where(zmins <= z_pos_2)[-1][-1]
|
||||
density_karl_plot_2 = np.mean(density_karl[z_index_2,0,:,:],0) / 1E6
|
||||
plot_datas_2 = np.dstack((density_karl_plot_2,density_karl_plot_2)).flatten()
|
||||
particles_at_z_2 = np.sum(particles[z_index_2,:,:,:], axis=(0,1)) # z, r, phi, E
|
||||
dndE_2 = particles_at_z_2/volumes_longitudinal[z_index_2] / 1E6
|
||||
plot_bins = np.dstack((Emins,Emaxs)).flatten()
|
||||
plot_datas_2 = np.dstack((dndE_2,dndE_2)).flatten()
|
||||
|
||||
|
||||
# data from Nastoyashchii
|
||||
data_Nastoyashchii = np.genfromtxt(filename_Nastoyashchii)
|
||||
@@ -81,7 +90,7 @@ ax.plot(plot_bins, plot_datas_2, '--', label="KARL, rear wall")
|
||||
|
||||
ax.plot(energy_Nastoyashchii[1:], denisty_Nastoyashchii[1:], '-.', label='Nastoyashchii')
|
||||
|
||||
ax.set_ylim(1E-3, density_karl_plot_1.max()*1.2)
|
||||
ax.set_ylim(1E-3, dndE_1.max()*1.2)
|
||||
ax.set_xlim(1E-5, 18.3E3)
|
||||
|
||||
ax.set_yscale('log')
|
||||
@@ -89,8 +98,8 @@ ax.set_xscale('log')
|
||||
ax.legend()
|
||||
|
||||
|
||||
ax.set_xlabel(r'Energy $E$ [eV]')
|
||||
ax.set_ylabel(r'Density $n$ [1/cm$^{3}$]')
|
||||
ax.set_xlabel(r'Energy $E$ (eV)')
|
||||
ax.set_ylabel(r"Diff. Density $\frac{\mathrm{d}n_e}{\mathrm{d}\log_{10}E}$ $\left(\frac{1}{\mathrm{cm}^{3} \log_{10}(\mathrm{eV})}\right)$")
|
||||
|
||||
|
||||
plt.savefig(output_folder+"comprarison_ndE_Nastoyashchii.pdf",bbox_inches='tight')
|
||||
|
||||
@@ -109,8 +109,8 @@ ax.vlines((z_pump4_right)/100, ylim[0], ylim[1], linestyle=':', color='gray')
|
||||
ax.set_yscale('log')
|
||||
ax.legend()
|
||||
|
||||
ax.set_ylabel(r'Density $n$ [cm$^{-3}$]')
|
||||
ax.set_xlabel(r'Distance to rear wall $z$ [m]')
|
||||
ax.set_ylabel(r'Density $n$ (cm$^{-3}$)')
|
||||
ax.set_xlabel(r'Distance to rear wall $z$ (m)')
|
||||
|
||||
ax.set_xlim((0,16) )
|
||||
ax.set_ylim(ylim)
|
||||
|
||||
+2
-2
@@ -70,8 +70,8 @@ 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}$]')
|
||||
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')
|
||||
|
||||
+4
-4
@@ -90,8 +90,8 @@ 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}$]')
|
||||
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')
|
||||
@@ -117,8 +117,8 @@ ax.plot(E_plot, sigmal_plot, 'x', label='exp. data')
|
||||
ax.set_xscale('log')
|
||||
ax.legend()
|
||||
|
||||
ax.set_xlabel(r'Energy $E$ [eV]')
|
||||
ax.set_ylabel(r'Cross section $\sigma$ [cm$^{2}$]')
|
||||
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')
|
||||
|
||||
+2
-2
@@ -66,8 +66,8 @@ ax.set_xscale('log')
|
||||
ax.legend()
|
||||
|
||||
|
||||
ax.set_xlabel(r'Energy $E$ [eV]')
|
||||
ax.set_ylabel(r'Cross section $\sigma$ [cm$^{2}$]')
|
||||
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')
|
||||
|
||||
+2
-2
@@ -67,8 +67,8 @@ 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}$]')
|
||||
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')
|
||||
|
||||
Reference in New Issue
Block a user