Add Zlist output
This commit is contained in:
parent
d13146a31c
commit
20b0547cb5
2 changed files with 28 additions and 0 deletions
|
|
@ -222,6 +222,24 @@ module output
|
|||
|
||||
end subroutine writeOutputTime
|
||||
|
||||
subroutine writeOutputZList(nz, Z_list)
|
||||
integer, intent(in):: nz
|
||||
real(dp), intent(in):: Z_list(1:nz)
|
||||
character(:), allocatable:: filename
|
||||
integer:: i
|
||||
|
||||
filename = 'ZList.csv'
|
||||
write (*, '(A, A)') 'Writing: ', filename
|
||||
open(unit=dataPhi_id, file=pathOutput//filename)
|
||||
write(dataPhi_id, '(A)') "Z_list"
|
||||
do i = 1, nz
|
||||
write(dataPhi_id, '('//formatFloat//')') Z_list(i)
|
||||
|
||||
end do
|
||||
close(unit=dataPhi_id)
|
||||
|
||||
end subroutine writeOutputZList
|
||||
|
||||
subroutine writeOutputRef()
|
||||
use referenceValues, only: t_ref, L_ref, n_ref, u_ref, Temp_ref, phi_ref
|
||||
use constantParameters, only: eV_to_K
|
||||
|
|
|
|||
10
scripts_python/readZlist.py
Normal file
10
scripts_python/readZlist.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import pandas
|
||||
|
||||
def read(filename):
|
||||
# Get time
|
||||
df = pandas.read_csv(filename)
|
||||
Zlist = df['Z_list'].to_numpy()
|
||||
|
||||
return Zlist
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue