Skip to content

Commit

Permalink
Update input script
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiLehe committed Mar 6, 2024
1 parent 01946c4 commit 5087485
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Examples/Tests/embedded_boundary_cube/inputs_rz
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ warpx.B_ext_grid_init_style = parse_B_ext_grid_function

my_constants.m = 2.40482556 # First zero of the Bessel function J0
my_constants.p = 1
my_constants.Lx = 1
my_constants.Lr = 1
my_constants.Lz = 1

warpx.Bx_external_grid_function(x,y,z) = - (p * pi * Lx) / (m * 2 * Lz) * jn(1,
m * 2 / Lx * x) * cos(p * pi / Lz * (z - Lz / 2))
warpx.By_external_grid_function(x,y,z) = 0
warpx.Bz_external_grid_function(x,y,z) = jn(0,m * 2 / Lx * x) * sin(p * pi / Lz * (z - Lz / 2))
warpx.Br_external_grid_function(r,z) = - (p * pi * Lr) / (m * 2 * Lz) * jn(1, m * 2 / Lr * r) * cos(p * pi / Lz * (z - Lz / 2))
warpx.Bt_external_grid_function(r,z) = 0
warpx.Bz_external_grid_function(r,z) = jn(0,m * 2 / Lr * r) * sin(p * pi / Lz * (z - Lz / 2))

diagnostics.diags_names = diag1
diag1.intervals = 1
diag1.diag_type = Full
diag1.fields_to_plot = Ex Ey Ez Bx By Bz
diag1.fields_to_plot = Er Et Ez Br Bt Bz

0 comments on commit 5087485

Please sign in to comment.