Chapter 1-2, revised, parenthesis change
This commit is contained in:
@@ -119,15 +119,15 @@ ax.hlines(length_wgts, density_min, density_max, linestyles=':',color='grey')
|
||||
ax.set_yscale("log")
|
||||
ax.set_xscale("log")
|
||||
|
||||
ax.set_xlim((1E4,1E8))
|
||||
ax.set_xlim((1E3,1E7))
|
||||
ax.set_ylim((1E-9,1E4))
|
||||
|
||||
ax.set_yticks(np.logspace(-9, 3, num=13))
|
||||
|
||||
|
||||
#ax.set_ylim((1E-2,1E4))
|
||||
ax.set_ylabel(r'Characteristic length [cm]')
|
||||
ax.set_xlabel(r'Electron density $n_e$ [cm$^{-3}$]')
|
||||
ax.set_ylabel(r'Characteristic length (cm)')
|
||||
ax.set_xlabel(r'Electron density $n_e$ (cm$^{-3}$)')
|
||||
ax.legend(loc='lower left')
|
||||
|
||||
ax.set_facecolor('#e7e7e7ff')
|
||||
@@ -155,72 +155,20 @@ ax2.set_yticklabels(yticks.values())
|
||||
|
||||
|
||||
|
||||
plt.savefig(output_folder+"comparison_l.pdf",bbox_inches='tight')
|
||||
|
||||
plt.show()
|
||||
|
||||
"""
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
fig, ax = plt.subplots(1, 1, figsize=(width, height*0.6))
|
||||
ax.plot(debyle_length2,densities, '-', label=r'$\lambda_D$',color=colors[0])
|
||||
ax.plot(inertial_length_electron, densities, '-.', color=colors[1],label=r'$l_{skin}$')
|
||||
ax.plot(mfp_electronic_interaction, densities,'--', label=r'$\lambda_{ee}$', color=colors[2])
|
||||
ax.plot(mean_distance_electrons, densities, ':', label=r'$a$', color=colors[3])
|
||||
|
||||
|
||||
ax.vlines(gyro_radius_electrons, density_min, density_max, linestyles=':',color=colors[6])
|
||||
ax.vlines(gyro_radius_ions, density_min, density_max, linestyles=':',color=colors[6])
|
||||
ax.vlines(landau_length, density_min, density_max, linestyles=':',color=colors[6])
|
||||
ax.vlines(mfp_electrons_neutrals_center, density_min, density_max, linestyles=':',color=colors[6])
|
||||
#ax.vlines(mfp_electrons_neutrals_rw, density_min, density_max, linestyles=':',color=colors[6])
|
||||
|
||||
|
||||
ax.set_yscale("log")
|
||||
ax.set_xscale("log")
|
||||
ax.set_ylim((1E3,5E6))
|
||||
ax.set_xlim((1E-9,1E4))
|
||||
ax.set_xlabel(r'Length [cm]')
|
||||
ax.set_ylabel(r'Electron density $n_e$ [cm$^{-3}$]')
|
||||
ax.legend(loc=(0.05,0.1))
|
||||
plt.grid(True)
|
||||
|
||||
|
||||
ax2 = ax.twiny()
|
||||
xticks = np.log10(np.array([\
|
||||
landau_length,
|
||||
gyro_radius_electrons,
|
||||
gyro_radius_ions,
|
||||
mfp_electrons_neutrals_center]))
|
||||
#mfp_electrons_neutrals_rw]))
|
||||
xtick_labels = [
|
||||
r'$l_L$',
|
||||
r'$R_{g,e}$',
|
||||
r'$R_{g,i}$',
|
||||
r'$\lambda_{center}$']
|
||||
#r'$\lambda_{rw}$']
|
||||
ax2.set_xticks(xticks)
|
||||
ax2.set_xlim((-9,4))
|
||||
ax2.set_xticklabels(xtick_labels)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#plt.savefig(output_folder+"comparison_l.pdf",bbox_inches='tight')
|
||||
plt.show()
|
||||
|
||||
plt.show()
|
||||
"""
|
||||
|
||||
print("Debye length(ne=1E4): {}".format(debyle_length2[densities>1E4][0]))
|
||||
print("Debye length(ne=1E7): {}".format(debyle_length2[densities>1E7][0]))
|
||||
|
||||
print("Debye length(ne=1E3): {}".format(debyle_length2[densities>1E3][0]))
|
||||
print("Debye length(ne=1E6): {}".format(debyle_length2[densities>1E6][0]))
|
||||
print("Landaul length: {}".format(landau_length))
|
||||
|
||||
print("Gyro radius e: {}".format(gyro_radius_electrons))
|
||||
print("Gyro radius T3: {}".format(gyro_radius_ions))
|
||||
|
||||
print("mfp e-e, center: {}".format(plasmaFuncs.meanFreePathElectronicInteraction(1E7/u.cm**3, temp2)))
|
||||
print("mfp e-e, rearwall: {}".format(plasmaFuncs.meanFreePathElectronicInteraction(1E4/u.cm**3, temp2)))
|
||||
print("mfp e-e, center: {}".format(plasmaFuncs.meanFreePathElectronicInteraction(1E6/u.cm**3, temp2)))
|
||||
print("mfp e-e, rearwall: {}".format(plasmaFuncs.meanFreePathElectronicInteraction(1E3/u.cm**3, temp2)))
|
||||
|
||||
print("mfp e-T2, center: {}".format(plasmaFuncs.meanFreePath(1E15/u.cm**3, cross_section_total_electron).value))
|
||||
print("mfp e-T2, rearwall: {}".format(plasmaFuncs.meanFreePath(1E12/u.cm**3, cross_section_total_electron).value))
|
||||
@@ -228,5 +176,5 @@ print("mfp e-T2, rearwall: {}".format(plasmaFuncs.meanFreePath(1E12/u.cm**3, cro
|
||||
print("mfp T3+-T2, center: {}".format(plasmaFuncs.meanFreePath(1E15/u.cm**3, cross_section_total_H3_ion).value))
|
||||
print("mfp T3-T2, rearwall: {}".format(plasmaFuncs.meanFreePath(1E12/u.cm**3, cross_section_total_H3_ion).value))
|
||||
|
||||
print("Inertial length(ne=1E4): {}".format(inertial_length_electron[densities>1E4][0]))
|
||||
print("Inertial length(ne=1E7): {}".format(inertial_length_electron[densities>1E7][0]))
|
||||
print("Inertial length(ne=1E3): {}".format(inertial_length_electron[densities>1E3][0]))
|
||||
print("Inertial length(ne=1E6): {}".format(inertial_length_electron[densities>1E6][0]))
|
||||
Reference in New Issue
Block a user