n_e as boundary condition

Now n_e is given as the density at the boundary and n_i at the boundary
is calculated once Z is known.

This aims to eliminate the iterative process.
This commit is contained in:
Jorge Gonzalez 2025-04-10 08:49:01 +02:00
commit 0c27b98e2e
6 changed files with 38 additions and 38 deletions

View file

@ -12,15 +12,15 @@ from scipy.constants import e, k
# paths = ['../quasiNeutral_partialAblation/','../Poisson_partialAblation/']
# paths = ['../2024-10-02_14.30.44/']
# paths = ['../quasiNeutral_fullAblation/','../Poisson_fullAblation/']
paths = ['../2025-04-08_09.36.52/']
paths = ['../2025-04-09_16.45.52/']
labels = [path[3:-1] for path in paths]
for path, label in zip(paths, labels):
Zlist = readZlist.read(path+'ZList.csv')
filesPhi = sorted(glob.glob(path+'time_*_phi.csv'))
start = 0
end = 20#len(filesPhi)
every = 5
start = 80
end = 85#len(filesPhi)
every = 1
fig, ax = plt.subplots(4, sharex='all')
ax[1].set_yscale('log')
ax[1].set_ylim(bottom=1e10, top=1e24)
@ -30,7 +30,8 @@ for path, label in zip(paths, labels):
ave_ui = np.zeros(len(r))
ave_Ti = np.zeros(len(r))
for Z in Zlist:
filesMom_i = sorted(glob.glob(path+'time_*_Z{:.0f}000_mom_i.csv'.format(Z)))
filename='time_*_Z_{:.1f}_mom_i.csv'.format(Z)
filesMom_i = sorted(glob.glob(path+filename))
fileMom_i = filesMom_i[t]
time, r, n_i, u_i, T_i, Zave = readMom.read(fileMom_i)
sum_Zni += Zave*n_i