Changes in plotting scripts
This commit is contained in:
parent
3cbb0763ab
commit
c0c10c9cb1
2 changed files with 18 additions and 19 deletions
|
|
@ -8,25 +8,25 @@ from scipy.constants import e, k
|
|||
|
||||
# paths = ['../quasiNeutral_fullAblation/','../2024-09-26_11.48.04/']
|
||||
# paths = ['../2024-09-26_12.47.11/']
|
||||
# paths = ['../quasiNeutral_partialAblation/','../2024-09-26_13.58.24/']
|
||||
# paths = ['../quasiNeutral_partialAblation/','../Poisson_partialAblation/']
|
||||
# paths = ['../2024-10-02_14.30.44/']
|
||||
# paths = ['../quasiNeutral_fullAblation/','../Poisson_fullAblation/']
|
||||
paths = ['../2024-10-03_19.28.22/']
|
||||
paths = ['../2024-11-18_08.57.04/']
|
||||
labels = [path[3:-1] for path in paths]
|
||||
|
||||
for path, label in zip(paths, labels):
|
||||
filesPhi = sorted(glob.glob(path+'time_*_phi.csv'))
|
||||
filesMom_i = sorted(glob.glob(path+'time_*_mom_i.csv'))
|
||||
start = 100
|
||||
start = 500
|
||||
end = len(filesMom_i)
|
||||
every = 100
|
||||
every = 200
|
||||
fig, ax = plt.subplots(4, sharex='all')
|
||||
for fileMom_i, filePhi in zip(filesMom_i[start:end+1:every], filesPhi[start:end+1:every]):
|
||||
time, r, phi, E, n_e = readPhi.read(filePhi)
|
||||
time, r, n_i, u_i, T_i, Zave = readMom.read(fileMom_i)
|
||||
|
||||
ax[0].plot(r, phi, label='t = {:.1f} ns'.format(time*1e9))
|
||||
# ax[0].plot(r, E, label='t = {:.1f} ns'.format(time*1e9))
|
||||
# ax[0].plot(r, phi, label='t = {:.1f} ns'.format(time*1e9))
|
||||
ax[0].plot(r, E, label='t = {:.1f} ns'.format(time*1e9))
|
||||
# ax[0].plot(r, (Zave*n_i - n_e)/n_e, label='t = {:.1f} ns'.format(time*1e9))
|
||||
ax[1].set_yscale('log')
|
||||
ax[1].set_ylim([1e20,2e25])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue