stop_time = 1.3342563807926085e-08 amr.n_cell = 48 48 48 amr.max_grid_size = 128 amr.max_level = 0 geometry.dims = 3 geometry.prob_lo = -0.8 -0.8 -0.8 geometry.prob_hi = 0.8 0.8 0.8 warpx.const_dt = 1e-6 warpx.cfl = 1 boundary.field_lo = pec pec pec boundary.field_hi = pec pec pec eb2.geom_type = box eb2.box_lo = -0.5 -0.5 -0.5 eb2.box_hi = 0.5 0.5 0.5 eb2.box_has_fluid_inside = true # Alternatively one could use parser to build EB # Note that for amrex EB implicit function, >0 is covered, =0 is boundary and <0 is regular. # warpx.eb_implicit_function = "max(max(max(x-0.5,-0.5-x), max(y-0.5,-0.5-y)), max(z-0.5,-0.5-z))" warpx.B_ext_grid_init_style = parse_B_ext_grid_function my_constants.m = 0 my_constants.n = 1 my_constants.p = 1 my_constants.Lx = 1 my_constants.Ly = 1 my_constants.Lz = 1 my_constants.h_2 = (m * pi / Lx) ** 2 + (n * pi / Ly) ** 2 + (p * pi / Lz) ** 2 warpx.By_external_grid_function(x,y,z) = -2/h_2 * (n * pi / Ly) * (p * pi / Lz) * cos(m * pi / Lx * (x - Lx / 2)) * sin(n * pi / Ly * (y - Ly / 2)) * cos(p * pi / Lz * (z - Lz / 2))*mu0*(x>-Lx/2)*(x-Ly/2)*(y-Lz/2)*(z-Lx/2)*(x-Ly/2)*(y-Lz/2)*(z-0.5)*(x<0.5)*(y>-0.5)*(y<0.5)*(z>-0.5)*(z<0.5) diagnostics.diags_names = diag1 diag1.intervals = 1000 diag1.diag_type = Full diag1.fields_to_plot = Ex Ey Ez Bx By Bz