diff options
author | 2022-10-24 09:42:58 -0700 | |
---|---|---|
committer | 2022-10-24 09:42:58 -0700 | |
commit | b96e6a95f83e095e364c06e4416e81c0fbcf0ec0 (patch) | |
tree | 55df8e8191108098fae2ce69101fb054df0d8def /Examples/Modules/embedded_boundary_cube/inputs_2d | |
parent | c27b85db2b606f4474e5b331e4f9aeebaaf2da30 (diff) | |
download | WarpX-b96e6a95f83e095e364c06e4416e81c0fbcf0ec0.tar.gz WarpX-b96e6a95f83e095e364c06e4416e81c0fbcf0ec0.tar.zst WarpX-b96e6a95f83e095e364c06e4416e81c0fbcf0ec0.zip |
Fix stair-case solver in 2D Cartesian (#2942)
* Fix stair-case solver in 2D Cartesian
* Generalization for the macroscropic solver
* Update automated test
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update benchmark
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to 'Examples/Modules/embedded_boundary_cube/inputs_2d')
-rw-r--r-- | Examples/Modules/embedded_boundary_cube/inputs_2d | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Examples/Modules/embedded_boundary_cube/inputs_2d b/Examples/Modules/embedded_boundary_cube/inputs_2d index 2b3348582..476992b36 100644 --- a/Examples/Modules/embedded_boundary_cube/inputs_2d +++ b/Examples/Modules/embedded_boundary_cube/inputs_2d @@ -20,6 +20,7 @@ my_constants.zmax = 0.5 warpx.eb_implicit_function = "max(max(x+xmin,-(x+xmax)), max(z+zmin,-(z+zmax)))" warpx.B_ext_grid_init_style = parse_B_ext_grid_function +warpx.E_ext_grid_init_style = parse_E_ext_grid_function my_constants.m = 0 my_constants.p = 1 @@ -30,6 +31,10 @@ warpx.Bz_external_grid_function(x,y,z) = 0 warpx.Bx_external_grid_function(x,y,z) = 0 warpx.By_external_grid_function(x,y,z) = cos(m * pi / Lx * (x - Lx / 2)) * cos(p * pi / Lz * (z - Lz / 2))*mu0 +warpx.Ez_external_grid_function(x,y,z) = 0 +warpx.Ex_external_grid_function(x,y,z) = 0 +warpx.Ey_external_grid_function(x,y,z) = cos(m * pi / Lx * (x - Lx / 2)) * cos(p * pi / Lz * (z - Lz / 2))*mu0*clight + diagnostics.diags_names = diag1 diag1.intervals = 1 diag1.diag_type = Full |