diff --git a/Examples/Tests/point_of_contact_EB/inputs_3d b/Examples/Tests/point_of_contact_EB/inputs_3d index 64f8b520161..005733487e5 100644 --- a/Examples/Tests/point_of_contact_EB/inputs_3d +++ b/Examples/Tests/point_of_contact_EB/inputs_3d @@ -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 diff --git a/Examples/Tests/point_of_contact_EB/inputs_rz b/Examples/Tests/point_of_contact_EB/inputs_rz new file mode 100644 index 00000000000..a492c1f705a --- /dev/null +++ b/Examples/Tests/point_of_contact_EB/inputs_rz @@ -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 diff --git a/Regression/Checksum/benchmarks_json/Point_of_contact_EB_rz.json b/Regression/Checksum/benchmarks_json/Point_of_contact_EB_rz.json new file mode 100644 index 00000000000..422f31548d2 --- /dev/null +++ b/Regression/Checksum/benchmarks_json/Point_of_contact_EB_rz.json @@ -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 + } +} + diff --git a/Regression/WarpX-tests.ini b/Regression/WarpX-tests.ini index 066faadc0a8..9fb763b683e 100644 --- a/Regression/WarpX-tests.ini +++ b/Regression/WarpX-tests.ini @@ -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