Skip to content

Commit

Permalink
clean input files in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Aug 11, 2021
1 parent 52e3aaf commit ada9f94
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
hi = [25e-6, 25e-6, 200.e-6])

solver = picmi.ElectromagneticSolver(grid=grid, cfl=1,
warpx_do_pml = True,
warpx_pml_ncell = 10)

beam_distribution = picmi.UniformDistribution(density = 1.e23,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
moving_window_zvelocity = 0.,
warpx_max_grid_size=64)

solver = picmi.ElectromagneticSolver(grid=grid, cfl=1., warpx_do_pml=False)
solver = picmi.ElectromagneticSolver(grid=grid, cfl=1.)

##########################
# diagnostics
Expand Down
1 change: 0 additions & 1 deletion Examples/Tests/SilverMueller/inputs_2d_x
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ warpx.verbose = 1

# Algorithms
warpx.cfl = 1.0
warpx.do_pml = 0
warpx.use_filter = 0

warpx.do_moving_window = 0
Expand Down
1 change: 0 additions & 1 deletion Examples/Tests/SilverMueller/inputs_2d_z
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ warpx.verbose = 1

# Algorithms
warpx.cfl = 1.0
warpx.do_pml = 0
warpx.use_filter = 0

warpx.do_moving_window = 0
Expand Down
1 change: 0 additions & 1 deletion Examples/Tests/SilverMueller/inputs_rz_z
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ warpx.n_rz_azimuthal_modes = 2

# Algorithms
warpx.cfl = 1.0
warpx.do_pml = 0
warpx.use_filter = 0

warpx.do_moving_window = 0
Expand Down
2 changes: 0 additions & 2 deletions Examples/Tests/boundaries/inputs_3d
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ boundary.field_hi = pec pec periodic
boundary.particle_lo = reflecting absorbing periodic
boundary.particle_hi = reflecting absorbing periodic

warpx.do_pml = 0

# Algorithms
algo.particle_shape = 1

Expand Down
1 change: 0 additions & 1 deletion Examples/Tests/galilean/inputs_rz
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ particles.species_names = electrons ions

warpx.do_nodal = 1
warpx.use_filter = 1
warpx.do_pml = 0

psatd.nox = 16
psatd.noy = 16
Expand Down
1 change: 0 additions & 1 deletion Examples/Tests/multi_J/inputs_rz
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ algo.particle_shape = 3

# Numerics
warpx.do_moving_window = 1
warpx.do_pml = 0
warpx.moving_window_dir = z
warpx.moving_window_v = 1.
warpx.n_rz_azimuthal_modes = 1
Expand Down
4 changes: 2 additions & 2 deletions Examples/Tests/photon_pusher/analysis_photon_pusher.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ def generate():
f.write("amr.max_grid_size = 8\n")
f.write("amr.plot_int = 1\n")
f.write("geometry.coord_sys = 0\n")
f.write("geometry.is_periodic = 1 1 1\n")
f.write("boundary.field_lo = periodic periodic periodic\n")
f.write("boundary.field_hi = periodic periodic periodic\n")
f.write("geometry.prob_lo = -0.5e-6 -0.5e-6 -0.5e-6\n")
f.write("geometry.prob_hi = 0.5e-6 0.5e-6 0.5e-6\n")
f.write("warpx.do_pml = 0\n")
f.write("algo.charge_deposition = standard\n")
f.write("algo.field_gathering = energy-conserving\n")
f.write("warpx.cfl = 1.0\n")
Expand Down
1 change: 0 additions & 1 deletion Examples/Tests/plasma_lens/inputs_3d
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ boundary.field_hi = pec pec pec
boundary.particle_lo = absorbing absorbing absorbing
boundary.particle_hi = absorbing absorbing absorbing

warpx.do_pml = 0
warpx.const_dt = 1.e-7
warpx.do_electrostatic = labframe

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ def generate():
f.write("amr.blocking_factor = 32\n")
f.write("amr.max_grid_size = 64\n")
f.write("geometry.coord_sys = 0\n")
f.write("geometry.is_periodic = 1 1 1\n")
f.write("boundary.field_lo = periodic periodic periodic\n")
f.write("boundary.field_hi = periodic periodic periodic\n")
f.write("geometry.prob_lo = {} {} {}\n".format(-sim_size, -sim_size, -sim_size))
f.write("geometry.prob_hi = {} {} {}\n".format(sim_size, sim_size, sim_size))
f.write("warpx.do_pml = 0\n")
f.write("algo.charge_deposition = standard\n")
f.write("algo.field_gathering = energy-conserving\n")
f.write("warpx.cfl = 1.0\n")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ amr.max_grid_size = 64
geometry.coord_sys = 0
geometry.prob_lo = -8e-07 -8e-07 -8e-07
geometry.prob_hi = 8e-07 8e-07 8e-07
warpx.do_pml = 0
algo.charge_deposition = standard
algo.field_gathering = energy-conserving
warpx.cfl = 1.0
Expand Down
2 changes: 0 additions & 2 deletions Python/pywarpx/picmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,6 @@ class ElectromagneticSolver(picmistandard.PICMI_ElectromagneticSolver):
def init(self, kw):
assert self.method is None or self.method in ['Yee', 'CKC', 'PSATD'], Exception("Only 'Yee', 'CKC', and 'PSATD' are supported")

self.do_pml = kw.pop('warpx_do_pml', None)
self.pml_ncell = kw.pop('warpx_pml_ncell', None)

if self.method == 'PSATD':
Expand All @@ -539,7 +538,6 @@ def initialize_inputs(self):

self.grid.initialize_inputs()

pywarpx.warpx.do_pml = self.do_pml
pywarpx.warpx.pml_ncell = self.pml_ncell
pywarpx.warpx.do_nodal = self.l_nodal

Expand Down

0 comments on commit ada9f94

Please sign in to comment.