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 7e5af50
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
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 7e5af50

Please sign in to comment.