From 52be326ac65f80309b8f614fd6b3d5c3f98c8385 Mon Sep 17 00:00:00 2001 From: Francesco Massimo Date: Sat, 25 Nov 2023 17:15:16 +0100 Subject: [PATCH] update namelist --- InputNamelist.py | 20 ++++++++++---------- Postprocessing_Scripts/Save_VTK.py | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/InputNamelist.py b/InputNamelist.py index 90fe017..ff8254e 100755 --- a/InputNamelist.py +++ b/InputNamelist.py @@ -245,18 +245,18 @@ ) ##### Field diagnostics, used for 3D export -# DiagFields( -# every = 1000, -# fields = ["Env_A_abs","Env_E_abs"], -# ) -# -# DiagFields( -# every = 1000, -# fields = ["Rho","Rho_plasmaelectrons"], -# ) +#DiagFields( +# every = 50, +# fields = ["Env_E_abs"], +#) + +#DiagFields( +# every = 50, +# fields = ["Rho","Rho_plasmaelectrons"], +#) #DiagFields( -# every = 1000, +# every = 50, # fields = ["Rho_electronbunch"], #) diff --git a/Postprocessing_Scripts/Save_VTK.py b/Postprocessing_Scripts/Save_VTK.py index c6db132..8eb4871 100644 --- a/Postprocessing_Scripts/Save_VTK.py +++ b/Postprocessing_Scripts/Save_VTK.py @@ -24,7 +24,7 @@ build3d_interval_Rho = [[0.,S.namelist.Lx,S.namelist.dx],[-S.namelist.Lr,-S.namelist.Lr,-S.namelist.dr],[-S.namelist.Lr,-S.namelist.Lr,-S.namelist.dr]] build3d_interval_E = build3d_interval_Rho -if iteration not in timesteps: +if float(iteration) not in timesteps: print("Selected iteration not available") print("Available iterations:") print(timesteps) @@ -34,7 +34,7 @@ os.chdir(vtk_folder) # export laser field -for timestep in mytimesteps: +for timestep in timesteps: print("Reading iteration ",timesteps.index(timestep)," of ",len(timesteps)) E = S.Field.Field0("Env_E_abs",timesteps=timestep,build3d=build3d_interval_E) E.toVTK()