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

Adding a RZ version for the test "Point_of_contact_EB" #4699

Merged
merged 3 commits into from
Feb 16, 2024
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
2 changes: 1 addition & 1 deletion Examples/Tests/point_of_contact_EB/inputs_3d
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ boundary.potential_hi_y = 0
boundary.potential_lo_z = 0
boundary.potential_hi_z = 0

warpx.const_dt = 1.216119097e-10
warpx.const_dt = 1e-10
warpx.eb_implicit_function = "-(x**2+y**2+z**2-0.2**2)"

# Do not evolve the E and B fields
Expand Down
48 changes: 48 additions & 0 deletions Examples/Tests/point_of_contact_EB/inputs_rz
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
amr.max_level = 0

max_step = 3

amr.n_cell = 64 64
amr.blocking_factor = 8
amr.max_grid_size = 128

geometry.dims = RZ
geometry.prob_lo = 0.0 -0.26
geometry.prob_hi = 0.26 0.26

boundary.field_lo = none periodic
boundary.field_hi = pec periodic
boundary.potential_lo_x = 0
boundary.potential_hi_x = 0
boundary.potential_lo_y = 0
boundary.potential_hi_y = 0
boundary.potential_lo_z = 0
boundary.potential_hi_z = 0

warpx.const_dt = 1e-10
warpx.eb_implicit_function = "-(x**2 -0.2**2)"

# Do not evolve the E and B fields
algo.maxwell_solver = none
algo.field_gathering = momentum-conserving
algo.particle_shape = 1

particles.species_names = electron
electron.charge = -q_e
electron.mass = m_e
electron.injection_style = "SingleParticle"
electron.single_particle_pos = -0.25 0 0
electron.single_particle_u = 1 0.5 0.0
electron.single_particle_weight = 1

electron.save_particles_at_eb = 1

diagnostics.diags_names = diag1 diag2

diag1.intervals = 1
diag1.diag_type = Full
diag1.fields_to_plot = Er
diag1.format = openpmd

diag2.diag_type = BoundaryScraping
diag2.format = openpmd
15 changes: 15 additions & 0 deletions Regression/Checksum/benchmarks_json/Point_of_contact_EB_rz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"lev=0": {
"Er": 0.0
},
"electron": {
"particle_position_x": 0.0,
"particle_position_y": 0.0,
"particle_position_z": 0.0,
"particle_momentum_x": 0.0,
"particle_momentum_y": 0.0,
"particle_momentum_z": 0.0,
"particle_weight": 0.0
}
}

19 changes: 19 additions & 0 deletions Regression/WarpX-tests.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4539,6 +4539,25 @@ particleTypes = electrons
outputFile = Point_of_contact_EB_3d_plt
analysisRoutine = Examples/Tests/point_of_contact_EB/analysis.py

[Point_of_contact_EB_rz]
buildDir = .
inputFile = Examples/Tests/point_of_contact_EB/inputs_rz
runtime_params =
dim = 2
addToCompileString = USE_RZ=TRUE USE_EB=TRUE
cmakeSetupOpts = -DWarpX_DIMS=RZ -DWarpX_EB=ON
restartTest = 0
useMPI = 1
numprocs = 2
useOMP = 0
numthreads = 1
compileTest = 0
doVis = 0
compareParticles = 0
particleTypes = electrons
outputFile = Point_of_contact_EB_rz_plt
analysisRoutine = Examples/Tests/point_of_contact_EB/analysis.py

[ImplicitPicard_1d]
buildDir = .
inputFile = Examples/Tests/Implicit/inputs_1d
Expand Down
Loading