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:
parent
af63194cb2
commit
0c27b98e2e
6 changed files with 38 additions and 38 deletions
|
|
@ -4,15 +4,17 @@ import numpy as np
|
|||
import readBC
|
||||
|
||||
|
||||
paths = ['../polytropic_80ns_T30/']
|
||||
time, n, u, T, Zinj = readBC.read(paths[0] + 'bc.csv')
|
||||
paths = ['../2025-04-10_08.40.09/']
|
||||
time, n_i, u_i, T_i, Zinj, Z_Tne = readBC.read(paths[0] + 'bc.csv')
|
||||
|
||||
fig, ax = plt.subplots()
|
||||
|
||||
n_e = n_i * Zinj
|
||||
|
||||
plt.plot(time, n / n[0], label = f"$n_i$ ($\\times {n[0] * 1e-6:.0e} \\; cm^{{-3}})$")
|
||||
plt.plot(time, T / T[0], label = f"$T \\; (\\times{T[0]:.1f} \\; eV)$")
|
||||
plt.plot(time, Zinj, label = "Injection species")
|
||||
plt.plot(time, n_e / n_e[0], label = f"$n_e$ ($\\times {n_e[0] * 1e-6:.0e} \\; cm^{{-3}})$")
|
||||
plt.plot(time, T_i / T_i[0], label = f"$T \\; (\\times{T_i[0]:.1f} \\; eV)$")
|
||||
plt.plot(time, Zinj, label = "Zinj")
|
||||
plt.plot(time, Z_Tne, label = "Z_Tne")
|
||||
plt.semilogy()
|
||||
plt.legend()
|
||||
plt.show()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue