Corrections to tag v2.5
Small set of corrections to the tag v2.5. Includes changes to python scripts to plot data. Includes new 'fast' setup conditions that allow to output cases in an hour or so with still a good CFL condition and grid resolution.
This commit is contained in:
parent
deebbae229
commit
052a4dc05e
20 changed files with 790 additions and 107 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import readPhi
|
||||
import readF
|
||||
import readZlist
|
||||
import matplotlib.pyplot as plt
|
||||
import glob
|
||||
import numpy as np
|
||||
|
|
@ -13,21 +14,23 @@ m_i = 1.9712e-25
|
|||
# paths = ['../quasiNeutral_fullAblation/','../Poisson_fullAblation/', '../quasiNeutral_partialAblation/', '../Poisson_partialAblation/']
|
||||
# paths = ['../2024-12-02_21.07.52/', '../Poisson_50ns_T30Z11/']
|
||||
# paths = ['../2024-12-10_18.45.17/', '../Poisson_50ns_T30Z11/']
|
||||
paths = ['../2024-12-11_12.38.27/', '../Poisson_polytropic_fa_T30Z11/', '../Poisson_fa_T30Z11/']
|
||||
# paths = ['../2024-12-11_12.38.27/', '../Poisson_polytropic_fa_T30Z11/', '../Poisson_fa_T30Z11/']
|
||||
# paths = ['../Poisson_partialAblation/','../Poisson_partialAblation_lowerT/','../Poisson_partialAblation_lowT/','../Poisson_partialAblation_highT/']
|
||||
paths = ['../polytropic_80ns_T60/']
|
||||
labels = [path[3:-1] for path in paths]
|
||||
|
||||
for path, label in zip(paths, labels):
|
||||
Zlist = readZlist.read(path+'ZList.csv')
|
||||
filesCum_i = sorted(glob.glob(path+'time_*_fCum_i.csv'))
|
||||
# start = 0
|
||||
# end = len(filesCum_i)
|
||||
# every = 20
|
||||
# for fileCum_i in filesCum_i[start:end+1:every]:
|
||||
# time, x, v, f_i = readF.read(fileCum_i)
|
||||
# plt.plot(v**2*m_i*0.5/e, f_i[0]*e/m_i/v, label='t = {:.1f} ns'.format(time*1e9))
|
||||
_, _, v, _ = readF.read(filesCum_i[-1])
|
||||
sumF = np.zeros(len(v))
|
||||
|
||||
time, x, v, f_i = readF.read(filesCum_i[-1])
|
||||
plt.plot(v**2*m_i*0.5/e, f_i[0]*e/m_i/v, label=label)
|
||||
for Z in Zlist:
|
||||
filesCum_i = sorted(glob.glob(path+'time_*_Z{:.0f}000_fCum_i.csv'.format(Z)))
|
||||
time, x, v, f_i = readF.read(filesCum_i[-1])
|
||||
sumF += f_i[0]
|
||||
plt.plot(v**2*m_i*0.5/e, f_i[0]*e/m_i/v, label=Z)
|
||||
plt.plot(v**2*m_i*0.5/e, sumF*e/m_i/v, label='sum', color='k', linestyle='dashed')
|
||||
|
||||
plt.yscale('log')
|
||||
plt.ylim([1e16,5e27])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue