Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add BTD Tests #1973

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions Examples/Modules/RigidInjection/inputs_2d_BoostedFrame
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
warpx.zmax_plasma_to_compute_max_step = 50.e-6
warpx.gamma_boost = 5.
warpx.boost_direction = z
warpx.do_back_transformed_diagnostics = 1
warpx.num_snapshots_lab = 2
warpx.dt_snapshots_lab = 1.8679589331096515e-13

amr.n_cell = 256 512 # 32 64
amr.max_grid_size = 512
Expand Down Expand Up @@ -51,6 +48,27 @@ beam.projected = true
beam.focused = false

# Diagnostics
diagnostics.diags_names = diag1
diagnostics.diags_names = diag1 btd_openpmd btd_pltfile
diag1.intervals = 10000
diag1.diag_type = Full

btd_openpmd.diag_type = BackTransformed
btd_openpmd.do_back_transformed_fields = 1
btd_openpmd.num_snapshots_lab = 2
btd_openpmd.dt_snapshots_lab = 1.8679589331096515e-13
btd_openpmd.fields_to_plot = Ex Ey Ez Bx By Bz jx jy jz rho
btd_openpmd.format = openpmd
btd_openpmd.buffer_size = 32

btd_pltfile.diag_type = BackTransformed
btd_pltfile.do_back_transformed_fields = 1
btd_pltfile.num_snapshots_lab = 2
btd_pltfile.dt_snapshots_lab = 1.8679589331096515e-13
btd_pltfile.fields_to_plot = Ex Ey Ez Bx By Bz jx jy jz rho
btd_pltfile.format = openpmd
btd_pltfile.buffer_size = 32

# old BTD diagnostics
warpx.do_back_transformed_diagnostics = 1
warpx.num_snapshots_lab = 2
warpx.dt_snapshots_lab = 1.8679589331096515e-13
28 changes: 23 additions & 5 deletions Examples/Modules/boosted_diags/inputs_3d_slice
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ warpx.serialize_ics = 1

warpx.gamma_boost = 10.
warpx.boost_direction = z
warpx.do_back_transformed_diagnostics = 1
warpx.num_snapshots_lab = 4
warpx.dz_snapshots_lab = 0.001
warpx.back_transformed_diag_fields= Ex Ey Ez By rho

particles.species_names = electrons ions beam
particles.use_fdtd_nci_corr = 1
Expand Down Expand Up @@ -116,6 +112,28 @@ slice.dt_slice_snapshots_lab = 3.3356409519815207e-12
slice.particle_slice_width_lab = 2.e-6

# Diagnostics
diagnostics.diags_names = diag1
diagnostics.diags_names = diag1 btd_openpmd btd_pltfile
diag1.intervals = 10000
diag1.diag_type = Full

btd_openpmd.diag_type = BackTransformed
btd_openpmd.do_back_transformed_fields = 1
btd_openpmd.num_snapshots_lab = 4
btd_openpmd.dz_snapshots_lab = 0.001
btd_openpmd.fields_to_plot = Ex Ey Ez Bx By Bz jx jy jz rho
btd_openpmd.format = openpmd
btd_openpmd.buffer_size = 32

btd_pltfile.diag_type = BackTransformed
btd_pltfile.do_back_transformed_fields = 1
btd_pltfile.num_snapshots_lab = 4
btd_pltfile.dz_snapshots_lab = 0.001
btd_pltfile.fields_to_plot = Ex Ey Ez Bx By Bz jx jy jz rho
btd_pltfile.format = openpmd
btd_pltfile.buffer_size = 32

# old BTD diagnostics
warpx.do_back_transformed_diagnostics = 1
warpx.num_snapshots_lab = 4
warpx.dz_snapshots_lab = 0.001
warpx.back_transformed_diag_fields= Ex Ey Ez By rho
4 changes: 2 additions & 2 deletions Regression/WarpX-tests.ini
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ buildDir = .
inputFile = Examples/Modules/RigidInjection/inputs_2d_BoostedFrame
runtime_params =
dim = 2
addToCompileString =
addToCompileString = USE_OPENPMD=TRUE
restartTest = 0
useMPI = 1
numprocs = 2
Expand All @@ -213,7 +213,7 @@ buildDir = .
inputFile = Examples/Modules/boosted_diags/inputs_3d_slice
runtime_params =
dim = 3
addToCompileString =
addToCompileString = USE_OPENPMD=TRUE
restartTest = 0
useMPI = 1
numprocs = 2
Expand Down