-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
272 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Set-up to test the PMC Boundary condition for the fields | ||
# Constructive interference between the incident and reflected wave result in a | ||
# standing wave. | ||
|
||
# max step | ||
max_step = 134 | ||
|
||
# number of grid points | ||
amr.n_cell = 32 32 256 | ||
|
||
# Maximum allowable size of each subdomain | ||
amr.max_grid_size = 1024 | ||
amr.blocking_factor = 32 | ||
|
||
amr.max_level = 0 | ||
|
||
# Geometry | ||
geometry.dims = 3 | ||
geometry.prob_lo = -8.e-6 -8.e-6 -4.e-6 | ||
geometry.prob_hi = 8.e-6 8.e-6 4.e-6 | ||
|
||
# Boundary condition | ||
boundary.field_lo = periodic periodic pmc | ||
boundary.field_hi = periodic periodic pmc | ||
|
||
warpx.serialize_initial_conditions = 1 | ||
|
||
# Verbosity | ||
warpx.verbose = 1 | ||
|
||
# Algorithms | ||
algo.current_deposition = esirkepov | ||
# CFL | ||
warpx.cfl = 0.9 | ||
|
||
|
||
my_constants.z1 = -2.e-6 | ||
my_constants.z2 = 2.e-6 | ||
my_constants.wavelength = 1.e-6 | ||
warpx.E_ext_grid_init_style = parse_E_ext_grid_function | ||
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) = "((1.e5*sin(2*pi*(z)/wavelength)) * (z<z2) * (z>z1))" | ||
|
||
warpx.B_ext_grid_init_style = parse_B_ext_grid_function | ||
warpx.Bx_external_grid_function(x,y,z)= "(((-1.e5*sin(2*pi*(z)/wavelength))/clight))*(z<z2) * (z>z1) " | ||
warpx.By_external_grid_function(x,y,z)= "0." | ||
warpx.Bz_external_grid_function(x,y,z) = "0." | ||
|
||
# Diagnostics | ||
diagnostics.diags_names = diag1 | ||
diag1.intervals = 134 | ||
diag1.diag_type = Full | ||
diag1.fields_to_plot = Ey Bx |
30 changes: 15 additions & 15 deletions
30
Regression/Checksum/benchmarks_json/test_3d_magnetostatic_eb.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
{ | ||
"lev=0": { | ||
"Az": 11.358663326449284, | ||
"Bx": 111.55929407644248, | ||
"By": 111.55929407644244, | ||
"Ex": 31257180402.55472, | ||
"Ey": 31257180402.55473, | ||
"jz": 1034841325.9848926, | ||
"phi": 3143521213.0157924, | ||
"rho": 3.449203918900721 | ||
"Az": 11.358663299932457, | ||
"Bx": 111.55929615203162, | ||
"By": 111.55929615203165, | ||
"Ex": 31463410849.74626, | ||
"Ey": 31463410849.746258, | ||
"jz": 1034841323.6861029, | ||
"phi": 3164328318.15416, | ||
"rho": 3.4565836983918676 | ||
}, | ||
"beam": { | ||
"particle_momentum_x": 1.3604657334742729e-21, | ||
"particle_momentum_y": 1.3604657334742772e-21, | ||
"particle_momentum_z": 7.150873450281544e-16, | ||
"particle_position_x": 11163.99997371537, | ||
"particle_position_y": 11163.999973715368, | ||
"particle_position_z": 131662.50031035842, | ||
"particle_momentum_x": 1.3829464728617761e-21, | ||
"particle_momentum_y": 1.3829464728617792e-21, | ||
"particle_momentum_z": 7.150871807235339e-16, | ||
"particle_position_x": 11163.99997715059, | ||
"particle_position_y": 11163.999977150592, | ||
"particle_position_z": 131662.5003102683, | ||
"particle_weight": 20895107655113.465 | ||
} | ||
} | ||
} |
46 changes: 23 additions & 23 deletions
46
Regression/Checksum/benchmarks_json/test_3d_magnetostatic_eb_picmi.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
{ | ||
"lev=0": { | ||
"Ax": 1.40889223759456e-05, | ||
"Ay": 1.4088922375945606e-05, | ||
"Az": 11.423480450267745, | ||
"Bx": 112.23826705481486, | ||
"By": 112.23826705481484, | ||
"Bz": 0.00019199345672949735, | ||
"Ex": 31557746267.686367, | ||
"Ey": 31557746267.686363, | ||
"Ez": 3339526660.3539834, | ||
"jx": 1980.6549408566577, | ||
"jy": 1980.6549408566577, | ||
"jz": 1038931605.1197203, | ||
"phi": 3171976204.251914, | ||
"rho": 3.4840085919357926 | ||
}, | ||
"beam": { | ||
"particle_momentum_x": 1.3878812158350944e-21, | ||
"particle_momentum_y": 1.387881215835094e-21, | ||
"particle_momentum_z": 7.150872953138685e-16, | ||
"particle_position_x": 11163.999973134894, | ||
"particle_position_y": 11163.999973134896, | ||
"particle_position_z": 131662.5003103311, | ||
"particle_momentum_x": 1.4011190163358655e-21, | ||
"particle_momentum_y": 1.401119016335865e-21, | ||
"particle_momentum_z": 7.15087179293042e-16, | ||
"particle_position_x": 11163.99997543546, | ||
"particle_position_y": 11163.999975435456, | ||
"particle_position_z": 131662.50031026747, | ||
"particle_weight": 20895107655113.465 | ||
}, | ||
"lev=0": { | ||
"Ax": 1.408892468360627e-05, | ||
"Ay": 1.4088924683606269e-05, | ||
"Az": 11.423480469161868, | ||
"Bx": 112.23826555908032, | ||
"By": 112.2382655590803, | ||
"Bz": 0.00019186770330025167, | ||
"Ex": 31418238386.183773, | ||
"Ey": 31418238386.183773, | ||
"Ez": 3461330433.5026026, | ||
"jx": 1961.0003914783667, | ||
"jy": 1961.0003914783663, | ||
"jz": 1038931606.7573991, | ||
"phi": 3157908107.1102533, | ||
"rho": 3.46977258905983 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"lev=0": { | ||
"Bx": 4.1354151621557795, | ||
"Ey": 8373879983.480644 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.