Chapter 1-2 ready. Chapter3 under construction
This commit is contained in:
@@ -30,6 +30,9 @@ output_folder = thesis_path+"/fig/Chapter3_Classification/LengthScales/"
|
||||
density_min = 1E0
|
||||
density_max = 1E8
|
||||
|
||||
density_min_log = 0
|
||||
density_max_log = 8
|
||||
|
||||
B_total = 2.5*u.T
|
||||
|
||||
temp1 = 30*u.K
|
||||
@@ -38,30 +41,43 @@ temp2 = 80*u.K
|
||||
density_neutrals_center = 6.337599E14/u.cm**3
|
||||
density_neutrals_rw = 1E12/u.cm**3
|
||||
|
||||
length_wgts = 1500
|
||||
length_wgts = 1000
|
||||
diameter_wgts = 9
|
||||
|
||||
cross_section_total_H3_ion = 5.9E-14*u.cm**2
|
||||
cross_section_total_electron = 6.4E-16*u.cm**2
|
||||
|
||||
cross_section_recombination = 1E-13*u.cm**2
|
||||
|
||||
cross_section_ternary_H3 = 3.8E-19*u.cm**2
|
||||
cross_section_ternary_H = 2.4E-19*u.cm**2
|
||||
|
||||
mass_Hion = 3*const.m_p
|
||||
mass_H2ion = 2*mass_Hion
|
||||
mass_H3ion = 3*mass_Hion
|
||||
|
||||
|
||||
# Calculation
|
||||
# =======================
|
||||
num_points = 100
|
||||
num_points = 1000
|
||||
|
||||
densities = np.linspace(density_min,density_max,num_points)
|
||||
densities = np.logspace(density_min_log,density_max_log,num_points)
|
||||
debyle_length1 = np.zeros_like(densities)
|
||||
debyle_length2 = np.zeros_like(densities)
|
||||
|
||||
gyro_radius_electrons = plasmaFuncs.gyroRadiusElectron(B_total, temp2).value
|
||||
gyro_radius_ions = plasmaFuncs.gyroRadiusIon(B_total, temp2, mass=6*const.m_p ).value
|
||||
gyro_radius_ions = plasmaFuncs.gyroRadiusIon(B_total, temp2, mass=mass_H3ion ).value
|
||||
|
||||
inertial_length_electron = plasmaFuncs.electronInertialLength(densities/u.cm**3)
|
||||
mean_distance_electrons = plasmaFuncs.meanDistance(densities/u.cm**3)
|
||||
|
||||
|
||||
mfp_electronic_interaction = plasmaFuncs.meanFreePathElectronicInteraction(densities/u.cm**3, temp2)
|
||||
mfp_electrons_neutrals_center = plasmaFuncs.meanFreePath(density_neutrals_center, 1E-15*u.cm**2).value
|
||||
mfp_electrons_neutrals_rw = plasmaFuncs.meanFreePath(density_neutrals_rw, 1E-15*u.cm**2).value
|
||||
mfp_electrons_neutrals_center = plasmaFuncs.meanFreePath(density_neutrals_center, cross_section_total_electron).value
|
||||
mfp_electrons_neutrals_rw = plasmaFuncs.meanFreePath(density_neutrals_rw, cross_section_total_electron).value
|
||||
|
||||
mfp_H3ions_neutrals_center = plasmaFuncs.meanFreePath(density_neutrals_center, 1E-13*u.cm**2).value
|
||||
mfp_H3ions_neutrals_rw = plasmaFuncs.meanFreePath(density_neutrals_rw, 1E-13*u.cm**2).value
|
||||
mfp_H3ions_neutrals_center = plasmaFuncs.meanFreePath(density_neutrals_center, cross_section_total_H3_ion).value
|
||||
mfp_H3ions_neutrals_rw = plasmaFuncs.meanFreePath(density_neutrals_rw, cross_section_total_H3_ion).value
|
||||
|
||||
|
||||
landau_length = plasmaFuncs.landauLength(temp2*u.K).value
|
||||
@@ -77,7 +93,7 @@ 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*2.))
|
||||
fig, ax = plt.subplots(1, 1, figsize=(width, height*2.3))
|
||||
|
||||
ax.plot(densities, debyle_length2, '-', label=r'$\lambda_D$',color=colors[0])
|
||||
ax.plot(densities, inertial_length_electron, '-.', color=colors[1],label=r'$l_{skin}$')
|
||||
@@ -139,9 +155,10 @@ ax2.set_yticklabels(yticks.values())
|
||||
|
||||
|
||||
|
||||
#plt.savefig(output_folder+"comparison_l.pdf",bbox_inches='tight')
|
||||
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))
|
||||
@@ -193,4 +210,23 @@ ax2.set_xticklabels(xtick_labels)
|
||||
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("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-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))
|
||||
|
||||
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]))
|
||||
Reference in New Issue
Block a user