Skip to content

Commit

Permalink
Update all Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Feb 21, 2025
1 parent 6e65816 commit b23c9af
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function(add_impactx_test name input is_mpi analysis_script plot_script)
amrex.throw_exception = 1
amrex.signal_handling = 0
impactx.always_warn_immediately=1
#impactx.abort_on_warning_threshold=low
impactx.abort_on_warning_threshold=low
${INPUTS_ARGS}
WORKING_DIRECTORY ${THIS_WORKING_DIR}
)
Expand Down
2 changes: 1 addition & 1 deletion examples/cfchannel/input_cfchannel_10nC_fft.in
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ constf1.kt = 1.0
# Algorithms
###############################################################################
algo.particle_shape = 2
algo.space_charge = true
algo.space_charge = 3D
algo.poisson_solver = "fft"

amr.n_cell = 48 48 40
Expand Down
2 changes: 1 addition & 1 deletion examples/cfchannel/input_cfchannel_10nC_mlmg.in
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ constf1.kt = 1.0
# Algorithms
###############################################################################
algo.particle_shape = 2
algo.space_charge = true
algo.space_charge = 3D

amr.n_cell = 48 48 40
#amr.n_cell = 72 72 64 # optional for increased precision
Expand Down
2 changes: 1 addition & 1 deletion examples/cfchannel/run_cfchannel_10nC_fft.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# set numerical parameters and IO control
sim.n_cell = [48, 48, 40] # [72, 72, 64] for increased precision
sim.particle_shape = 2 # B-spline order
sim.space_charge = True
sim.space_charge = "3D"
sim.poisson_solver = "fft"
sim.prob_relative = [1.1]
# sim.diagnostics = False # benchmarking
Expand Down
2 changes: 1 addition & 1 deletion examples/cfchannel/run_cfchannel_10nC_mlmg.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# set numerical parameters and IO control
sim.n_cell = [48, 48, 40] # [72, 72, 64] for increased precision
sim.particle_shape = 2 # B-spline order
sim.space_charge = True
sim.space_charge = "3D"
sim.prob_relative = [3.0]
# sim.diagnostics = False # benchmarking
sim.slice_step_diagnostics = True
Expand Down
2 changes: 1 addition & 1 deletion examples/epac2004_benchmarks/input_bithermal.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ constf1.nslice = 50
# Algorithms
###############################################################################
algo.particle_shape = 2
algo.space_charge = true
algo.space_charge = 3D

#amr.n_cell = 128 128 128 #full resolution
amr.n_cell = 64 64 64
Expand Down
2 changes: 1 addition & 1 deletion examples/epac2004_benchmarks/input_fodo_rf_SC.in
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ gapb1.sin_coefficients = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \
# Algorithms
###############################################################################
algo.particle_shape = 2
algo.space_charge = true
algo.space_charge = 3D

amr.n_cell = 56 56 64
geometry.prob_relative = 4.0
Expand Down
2 changes: 1 addition & 1 deletion examples/epac2004_benchmarks/input_thermal.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ constf1.nslice = 400 #full resolution
# Algorithms
###############################################################################
algo.particle_shape = 2
algo.space_charge = true
algo.space_charge = 3D

#amr.n_cell = 128 128 128 #full resolution
amr.n_cell = 64 64 64
Expand Down
2 changes: 1 addition & 1 deletion examples/epac2004_benchmarks/run_bithermal.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# sim.n_cell = [128, 128, 128] # full resolution
sim.n_cell = [64, 64, 64]
sim.particle_shape = 2 # B-spline order
sim.space_charge = True
sim.space_charge = "3D"
sim.dynamic_size = True
sim.prob_relative = [3.0]

Expand Down
2 changes: 1 addition & 1 deletion examples/epac2004_benchmarks/run_fodo_rf_SC.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# set numerical parameters and IO control
sim.n_cell = [56, 56, 64]
sim.particle_shape = 2 # B-spline order
sim.space_charge = True
sim.space_charge = "3D"
sim.dynamic_size = True
sim.prob_relative = [4.0]

Expand Down
2 changes: 1 addition & 1 deletion examples/epac2004_benchmarks/run_thermal.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# set numerical parameters and IO control
sim.n_cell = [56, 56, 64]
sim.particle_shape = 2 # B-spline order
sim.space_charge = True
sim.space_charge = "3D"
sim.dynamic_size = True
sim.prob_relative = [4.0]

Expand Down
2 changes: 1 addition & 1 deletion examples/expanding_beam/input_expanding_fft.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ monitor.backend = h5
# Algorithms
###############################################################################
algo.particle_shape = 2
algo.space_charge = true
algo.space_charge = 3D
algo.poisson_solver = "fft"

# Space charge solver with one MR level
Expand Down
2 changes: 1 addition & 1 deletion examples/expanding_beam/input_expanding_mlmg.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ monitor.backend = h5
# Algorithms
###############################################################################
algo.particle_shape = 2
algo.space_charge = true
algo.space_charge = 3D

# Space charge solver with one MR level
amr.max_level = 1
Expand Down
2 changes: 1 addition & 1 deletion examples/expanding_beam/run_expanding_fft.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
sim.blocking_factor_z = [4]

sim.particle_shape = 2 # B-spline order
sim.space_charge = True
sim.space_charge = "3D"
sim.poisson_solver = "fft"
sim.dynamic_size = True
sim.prob_relative = [1.2, 1.1]
Expand Down
2 changes: 1 addition & 1 deletion examples/expanding_beam/run_expanding_mlmg.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
sim.blocking_factor_z = [4]

sim.particle_shape = 2 # B-spline order
sim.space_charge = True
sim.space_charge = "3D"
sim.dynamic_size = True
sim.prob_relative = [3.0, 1.1]

Expand Down
2 changes: 1 addition & 1 deletion examples/kurth/input_kurth_10nC_periodic.in
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ constf1.kt = 0.7
# Algorithms
###############################################################################
algo.particle_shape = 2
algo.space_charge = true
algo.space_charge = 3D

amr.n_cell = 48 48 40
#amr.n_cell = 72 72 72 # optional for increased precision
Expand Down
2 changes: 1 addition & 1 deletion examples/kurth/run_kurth_10nC_periodic.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# set numerical parameters and IO control
sim.n_cell = [48, 48, 40] # use [72, 72, 72] for increased precision
sim.particle_shape = 2 # B-spline order
sim.space_charge = True
sim.space_charge = "3D"
# sim.diagnostics = False # benchmarking
sim.slice_step_diagnostics = True

Expand Down
2 changes: 1 addition & 1 deletion examples/linac_segment/input_linac_segment.in
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ RF1b.sin_coefficients = \
# Algorithms
###############################################################################
algo.particle_shape = 2
algo.space_charge = true
algo.space_charge = 3D

# Space charge using IGF solver
algo.poisson_solver = "fft"
Expand Down
2 changes: 1 addition & 1 deletion examples/linac_segment/run_linac_segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# sim.n_cell = [64, 64, 64] #use this for high-resolution runs
sim.n_cell = [32, 32, 32]
sim.particle_shape = 2 # B-spline order
sim.space_charge = True
sim.space_charge = "3D"
sim.poisson_solver = "fft"
sim.dynamic_size = True
sim.prob_relative = [1.1, 1.1]
Expand Down

0 comments on commit b23c9af

Please sign in to comment.