Add Zlist output

This commit is contained in:
JHendrikx 2025-02-19 12:42:06 +01:00
commit 20b0547cb5
2 changed files with 28 additions and 0 deletions

View file

@ -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

View 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