I'm stupid and I deleted the previous repository...
So, code is working, this case reproduce a Diko's peak with Poisson equation by changing the boundary conditions over time.
This commit is contained in:
commit
8eab3b5610
13 changed files with 821 additions and 0 deletions
17
scripts_python/readMom.py
Normal file
17
scripts_python/readMom.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import pandas
|
||||
|
||||
def read(filename):
|
||||
# Get time
|
||||
df = pandas.read_csv(filename,skiprows=0,nrows=1)
|
||||
time = df['t (s)'].to_numpy()[0]
|
||||
|
||||
df = pandas.read_csv(filename,skiprows=2)
|
||||
x = df['r (m)'].to_numpy()
|
||||
n_i = df['n_i (m^-3)'].to_numpy()
|
||||
u_i = df['u_i (m s^-1)'].to_numpy()
|
||||
T_i = df['T_i (eV)'].to_numpy()
|
||||
Z = df['Zave'].to_numpy()
|
||||
|
||||
return time, x, n_i, u_i, T_i, Z
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue