backup save
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
import numpy as np
|
||||
import os
|
||||
import sys
|
||||
from astropy import units as u
|
||||
import matplotlib
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
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
|
||||
|
||||
density_min = 1E2
|
||||
density_max = 1E8
|
||||
temp1 = 30
|
||||
temp2 = 80
|
||||
|
||||
num_points = 1E2
|
||||
|
||||
densities = np.arange(density_min,density_max,num_points)
|
||||
debyle_length1 = np.zeros_like(densities)
|
||||
debyle_length2 = np.zeros_like(densities)
|
||||
|
||||
debyle_length1 = plasmaFuncs.debyeLength(densities/u.cm**3, temp1*u.K).value
|
||||
debyle_length2 = plasmaFuncs.debyeLength(densities/u.cm**3, temp2*u.K).value
|
||||
|
||||
pltStd.setRcParams()
|
||||
|
||||
fig, ax = plt.subplots(1, 1, figsize=pltStd.set_size('thesis'))
|
||||
|
||||
ax.plot(densities, debyle_length1,'--',label=r'$T$ = 30K')
|
||||
ax.plot(densities, debyle_length2,label=r'$T$ = 80K')
|
||||
|
||||
ax.set_yscale("log")
|
||||
ax.set_xscale("log")
|
||||
ax.set_xlim((1E3,1E7))
|
||||
ax.set_ylim((1E-2,1E1))
|
||||
ax.set_ylabel(r'Debye length $\lambda_D$ [cm]')
|
||||
ax.set_xlabel(r'Electron density $n_e$ [cm$^{-3}$]')
|
||||
ax.legend()
|
||||
plt.grid(True, which='both')
|
||||
plt.show()
|
||||
Reference in New Issue
Block a user