Skip to content

Commit

Permalink
Use higher resolution for the flux injection from eb test
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Jan 9, 2025
1 parent 1dd3d5a commit 93cd459
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
12 changes: 6 additions & 6 deletions Examples/Tests/flux_injection/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ add_warpx_test(
3 # dims
2 # nprocs
inputs_test_3d_flux_injection_from_eb # inputs
"analysis_flux_injection_from_eb.py diags/diag1000010" # analysis
"analysis_default_regression.py --path diags/diag1000010" # checksum
"analysis_flux_injection_from_eb.py diags/diag1000020" # analysis
"analysis_default_regression.py --path diags/diag1000020" # checksum
OFF # dependency
)

Expand All @@ -36,8 +36,8 @@ add_warpx_test(
RZ # dims
2 # nprocs
inputs_test_rz_flux_injection_from_eb # inputs
"analysis_flux_injection_from_eb.py diags/diag1000010" # analysis
"analysis_default_regression.py --path diags/diag1000010" # checksum
"analysis_flux_injection_from_eb.py diags/diag1000020" # analysis
"analysis_default_regression.py --path diags/diag1000020" # checksum
OFF # dependency
)

Expand All @@ -46,7 +46,7 @@ add_warpx_test(
2 # dims
2 # nprocs
inputs_test_2d_flux_injection_from_eb # inputs
"analysis_flux_injection_from_eb.py diags/diag1000010" # analysis
"analysis_default_regression.py --path diags/diag1000010" # checksum
"analysis_flux_injection_from_eb.py diags/diag1000020" # analysis
"analysis_default_regression.py --path diags/diag1000020" # checksum
OFF # dependency
)
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ def compare_gaussian_flux(u, w, u_th, u_m, label=""):
wy = nz * vx - nx * vz
wz = nx * vy - ny * vx
u_perp2 = ux * wx + uy * wy + uz * wz
compare_gaussian(u_perp2, w, u_th=0.01, label="u_perp")
compare_gaussian(u_perp2, w, u_th=0.01, label="u_perp2")

plt.legend()
plt.tight_layout()
plt.savefig("Distribution.png")
4 changes: 2 additions & 2 deletions Examples/Tests/flux_injection/inputs_base_from_eb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Maximum number of time steps
max_step = 10
max_step = 20

# The lo and hi ends of grids are multipliers of blocking factor
amr.blocking_factor = 8
Expand All @@ -13,7 +13,7 @@ amr.max_level = 0

# Deactivate Maxwell solver
algo.maxwell_solver = none
warpx.const_dt = 1e-9
warpx.const_dt = 0.5e-9

# Embedded boundary
warpx.eb_implicit_function = "-(x**2+y**2+z**2-2**2)"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FILE = inputs_base_from_eb

# number of grid points
amr.n_cell = 16 16
amr.n_cell = 32 32

# Geometry
geometry.dims = 2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FILE = inputs_base_from_eb

# number of grid points
amr.n_cell = 16 16 16
amr.n_cell = 32 32 32

# Geometry
geometry.dims = 3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FILE = inputs_base_from_eb

# number of grid points
amr.n_cell = 8 16
amr.n_cell = 16 32

# Geometry
geometry.dims = RZ
Expand Down

0 comments on commit 93cd459

Please sign in to comment.