Trying to implement floating potential
These things are never easy.
This commit is contained in:
parent
8eab3b5610
commit
c39e9ab3fc
5 changed files with 38 additions and 27 deletions
|
|
@ -8,23 +8,24 @@ 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/','../2024-09-26_13.58.24/']
|
||||
# path = '../quasiNeutral_fullAblation/'
|
||||
# path = '../quasiNeutral_partialAblatio/'
|
||||
|
||||
paths = ['../2024-09-27_17.41.21/']
|
||||
|
||||
for path in paths:
|
||||
filesPhi = sorted(glob.glob(path+'time_*_phi.csv'))
|
||||
filesMom_i = sorted(glob.glob(path+'time_*_mom_i.csv'))
|
||||
start = 0
|
||||
end = len(filesMom_i)
|
||||
every = 100
|
||||
every = 50
|
||||
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, n_e = readPhi.read(filePhi)
|
||||
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 = {:.3f} ns'.format(time*1e9))
|
||||
# ax[0].plot(r, phi, label='t = {:.3f} ns'.format(time*1e9))
|
||||
ax[0].plot(r, E, label='t = {:.3f} ns'.format(time*1e9))
|
||||
ax[1].set_yscale('log')
|
||||
ax[1].set_ylim([1e14,2e25])
|
||||
ax[1].plot(r, Zave*n_i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue