Skip to content

Commit

Permalink
update namelist
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Massimo authored and Francesco Massimo committed Nov 25, 2023
1 parent 6a59b4f commit 52be326
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions InputNamelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
#)

4 changes: 2 additions & 2 deletions Postprocessing_Scripts/Save_VTK.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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()
Expand Down

0 comments on commit 52be326

Please sign in to comment.