blob: 13ad42da070c575ecc34ba3ef53badf7200611a5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
max_step = 1
amr.n_cell = 64 64 64
amr.max_level = 0
amr.blocking_factor = 8
amr.max_grid_size = 128
geometry.dims = 3
boundary.field_lo = pec pec pec
boundary.field_hi = pec pec pec
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
geometry.prob_lo = -0.5 -0.5 -0.5
geometry.prob_hi = 0.5 0.5 0.5
warpx.const_dt = 1e-6
warpx.do_electrostatic = labframe
warpx.eb_implicit_function = "-(x**2+y**2+z**2-0.1**2)"
warpx.eb_potential(x,y,z,t) = "1."
warpx.self_fields_required_precision = 1.e-7
algo.field_gathering = momentum-conserving
diagnostics.diags_names = diag1
diag1.intervals = 1
diag1.diag_type = Full
diag1.fields_to_plot = Ex Ey Ez rho phi
warpx.reduced_diags_names = eb_charge eb_charge_one_eighth
eb_charge.type = ChargeOnEB
eb_charge.intervals = 1
eb_charge_one_eighth.type = ChargeOnEB
eb_charge_one_eighth.intervals = 1
# Select only one eighth of the sphere
eb_charge_one_eighth.weighting_function(x,y,z) = (x>0)*(y<0)*(z>0)
|