Skip to content

Commit

Permalink
CI: Add BTD Tests
Browse files Browse the repository at this point in the history
Add tests for the new BTD diagnostics, so that parallely working
developers can easier test this.

Currently covered features:
- field BTD (particles are still WIP)
- openPMD & plotfiles
  • Loading branch information
ax3l committed May 20, 2021
1 parent 5208f4e commit e06021e
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 11 deletions.
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

0 comments on commit e06021e

Please sign in to comment.