diff options
Diffstat (limited to 'Examples/Physics_applications')
9 files changed, 20 insertions, 26 deletions
diff --git a/Examples/Physics_applications/laser_acceleration/laser_acceleration_PICMI.py b/Examples/Physics_applications/laser_acceleration/PICMI_inputs_laser_acceleration.py index 3c86d6348..7568ac3e8 100644 --- a/Examples/Physics_applications/laser_acceleration/laser_acceleration_PICMI.py +++ b/Examples/Physics_applications/laser_acceleration/PICMI_inputs_laser_acceleration.py @@ -32,7 +32,7 @@ plasma_max = [ 20.e-6, 20.e-6, 1.e-3] # --- Nb time steps -max_steps = 1000 +max_steps = 10 # --- grid diff --git a/Examples/Physics_applications/laser_acceleration/inputs.2d b/Examples/Physics_applications/laser_acceleration/inputs.2d index 1a76feacf..8b2913f8c 100644 --- a/Examples/Physics_applications/laser_acceleration/inputs.2d +++ b/Examples/Physics_applications/laser_acceleration/inputs.2d @@ -11,8 +11,8 @@ geometry.is_periodic = 0 0 # Is periodic? geometry.prob_lo = -30.e-6 -56.e-6 # physical domain geometry.prob_hi = 30.e-6 12.e-6 amr.max_level = 0 # Maximum level in hierarchy (1 might be unstable, >1 is not supported) -warpx.fine_tag_lo = -5.e-6 -35.e-6 -warpx.fine_tag_hi = 5.e-6 -25.e-6 +# warpx.fine_tag_lo = -5.e-6 -35.e-6 +# warpx.fine_tag_hi = 5.e-6 -25.e-6 ################################# ############ NUMERICS ########### @@ -24,8 +24,8 @@ warpx.verbose = 1 warpx.do_dive_cleaning = 0 warpx.plot_raw_fields = 1 warpx.plot_raw_fields_guards = 1 -warpx.plot_finepatch = 1 -warpx.plot_crsepatch = 1 +# warpx.plot_finepatch = 1 +# warpx.plot_crsepatch = 1 warpx.use_filter = 1 warpx.cfl = 1. # if 1., the time step is set to its CFL limit warpx.do_pml = 1 # use Perfectly Matched Layer as boundary condition @@ -62,8 +62,6 @@ beam.y_m = 0. beam.z_m = -28.e-6 beam.npart = 100 beam.q_tot = -1.e-12 -beam.profile = "constant" -beam.density = 8.e23 # not used in case of a gaussian beam beam.momentum_distribution_type = "gaussian" beam.ux_m = 0.0 beam.uy_m = 0.0 diff --git a/Examples/Physics_applications/laser_acceleration/inputs.2d.boost b/Examples/Physics_applications/laser_acceleration/inputs.2d.boost index d90c75ada..8bf4b6076 100644 --- a/Examples/Physics_applications/laser_acceleration/inputs.2d.boost +++ b/Examples/Physics_applications/laser_acceleration/inputs.2d.boost @@ -1,8 +1,8 @@ ################################# ######### BOX PARAMETERS ######## ################################# -# max_step = 2700 -stop_time = 1.9e-12 +max_step = 2700 +# stop_time = 1.9e-12 amr.n_cell = 128 1024 amr.max_grid_size = 64 amr.blocking_factor = 32 @@ -21,7 +21,7 @@ warpx.verbose = 1 amrex.v = 1 algo.current_deposition = esirkepov algo.charge_deposition = standard -algo.field_gathering = standard +algo.field_gathering = energy-conserving algo.particle_pusher = vay algo.maxwell_fdtd_solver = ckc interpolation.nox = 3 @@ -41,7 +41,7 @@ warpx.serialize_ics = 1 ################################# warpx.gamma_boost = 10. warpx.boost_direction = z -warpx.do_boosted_frame_diagnostic = 1 +warpx.do_back_transformed_diagnostics = 1 warpx.num_snapshots_lab = 7 warpx.dt_snapshots_lab = 1.6678204759907604e-12 @@ -94,8 +94,6 @@ beam.y_m = 0. beam.z_m = -20.e-6 beam.npart = 1000 beam.q_tot = -1.e-14 -beam.profile = "constant" -beam.density = 8.e23 # number of particles per m^3 beam.momentum_distribution_type = "gaussian" beam.ux_m = 0.0 beam.uy_m = 0.0 diff --git a/Examples/Physics_applications/laser_acceleration/inputs.3d b/Examples/Physics_applications/laser_acceleration/inputs.3d index f055708d1..017b82962 100644 --- a/Examples/Physics_applications/laser_acceleration/inputs.3d +++ b/Examples/Physics_applications/laser_acceleration/inputs.3d @@ -11,8 +11,8 @@ geometry.is_periodic = 1 1 0 # Is periodic? geometry.prob_lo = -30.e-6 -30.e-6 -56.e-6 # physical domain geometry.prob_hi = 30.e-6 30.e-6 12.e-6 amr.max_level = 0 # Maximum level in hierarchy (1 might be unstable, >1 is not supported) -warpx.fine_tag_lo = -5.e-6 -5.e-6 -50.e-6 -warpx.fine_tag_hi = 5.e-6 5.e-6 -30.e-6 +# warpx.fine_tag_lo = -5.e-6 -5.e-6 -50.e-6 +# warpx.fine_tag_hi = 5.e-6 5.e-6 -30.e-6 ################################# ############ NUMERICS ########### @@ -24,8 +24,8 @@ warpx.verbose = 1 warpx.do_dive_cleaning = 0 warpx.plot_raw_fields = 1 warpx.plot_raw_fields_guards = 1 -warpx.plot_finepatch = 1 -warpx.plot_crsepatch = 1 +# warpx.plot_finepatch = 1 +# warpx.plot_crsepatch = 1 warpx.use_filter = 1 warpx.cfl = 1. # if 1., the time step is set to its CFL limit warpx.do_pml = 0 # use Perfectly Matched Layer as boundary condition diff --git a/Examples/Physics_applications/laser_acceleration/inputs.rz b/Examples/Physics_applications/laser_acceleration/inputs.rz index 83071834e..bdaa99319 100755 --- a/Examples/Physics_applications/laser_acceleration/inputs.rz +++ b/Examples/Physics_applications/laser_acceleration/inputs.rz @@ -60,8 +60,6 @@ beam.y_m = 0. beam.z_m = -28.e-6 beam.npart = 100 beam.q_tot = -1.e-12 -beam.profile = "constant" -beam.density = 8.e23 # not used in case of a gaussian beam beam.momentum_distribution_type = "gaussian" beam.ux_m = 0.0 beam.uy_m = 0.0 diff --git a/Examples/Physics_applications/plasma_acceleration/plasma_acceleration_PICMI.py b/Examples/Physics_applications/plasma_acceleration/PICMI_inputs_plasma_acceleration.py index 0cd713514..7b1f9ea5d 100644 --- a/Examples/Physics_applications/plasma_acceleration/plasma_acceleration_PICMI.py +++ b/Examples/Physics_applications/plasma_acceleration/PICMI_inputs_plasma_acceleration.py @@ -43,7 +43,7 @@ beam = picmi.Species(particle_type='electron', name='beam', initial_distribution plasma = picmi.Species(particle_type='electron', name='plasma', initial_distribution=plasma_distribution) sim = picmi.Simulation(solver = solver, - max_steps = 1000, + max_steps = 10, verbose = 1, warpx_plot_int = 2, warpx_current_deposition_algo = 'esirkepov') diff --git a/Examples/Physics_applications/plasma_acceleration/plasma_acceleration_PICMI.mr.py b/Examples/Physics_applications/plasma_acceleration/PICMI_inputs_plasma_acceleration_mr.py index 24b48d575..44049e244 100644 --- a/Examples/Physics_applications/plasma_acceleration/plasma_acceleration_PICMI.mr.py +++ b/Examples/Physics_applications/plasma_acceleration/PICMI_inputs_plasma_acceleration_mr.py @@ -52,7 +52,7 @@ beam = picmi.Species(particle_type='electron', name='beam', initial_distribution plasma = picmi.Species(particle_type='electron', name='plasma', initial_distribution=plasma_distribution) sim = picmi.Simulation(solver = solver, - max_steps = 1000, + max_steps = 10, verbose = 1, warpx_plot_int = 2, warpx_current_deposition_algo = 'esirkepov') diff --git a/Examples/Physics_applications/plasma_acceleration/inputs.2d.boost b/Examples/Physics_applications/plasma_acceleration/inputs.2d.boost index d711815eb..8010c98d6 100644 --- a/Examples/Physics_applications/plasma_acceleration/inputs.2d.boost +++ b/Examples/Physics_applications/plasma_acceleration/inputs.2d.boost @@ -1,8 +1,8 @@ ################################# ####### GENERAL PARAMETERS ###### ################################# -stop_time = 4.03658656286e-11 -amr.n_cell = 64 1280 +max_step = 2500 +amr.n_cell = 64 640 amr.max_grid_size = 128 amr.blocking_factor = 32 amr.max_level = 0 @@ -39,7 +39,7 @@ interpolation.noz = 3 ################################# warpx.gamma_boost = 10.0 warpx.boost_direction = z -warpx.do_boosted_frame_diagnostic = 1 +warpx.do_back_transformed_diagnostics = 1 warpx.num_snapshots_lab = 22 warpx.dt_snapshots_lab = 3.335640951981521e-11 diff --git a/Examples/Physics_applications/plasma_acceleration/inputs.3d.boost b/Examples/Physics_applications/plasma_acceleration/inputs.3d.boost index 42446a9ac..f65c9aa0a 100644 --- a/Examples/Physics_applications/plasma_acceleration/inputs.3d.boost +++ b/Examples/Physics_applications/plasma_acceleration/inputs.3d.boost @@ -2,7 +2,7 @@ ####### GENERAL PARAMETERS ###### ################################# stop_time = 3.93151387287e-11 -amr.n_cell = 32 32 320 +amr.n_cell = 32 32 256 amr.max_grid_size = 64 amr.blocking_factor = 32 amr.max_level = 0 @@ -38,7 +38,7 @@ interpolation.noz = 3 ################################# warpx.gamma_boost = 10.0 warpx.boost_direction = z -warpx.do_boosted_frame_diagnostic = 1 +warpx.do_back_transformed_diagnostics = 1 warpx.num_snapshots_lab = 22 warpx.dt_snapshots_lab = 3.335640951981521e-11 |