Skip to content

Commit

Permalink
Update run_fieldplots_Ex.py
Browse files Browse the repository at this point in the history
Remove assignment of unused variables.
  • Loading branch information
cemitch99 authored Nov 27, 2024
1 parent 4503aec commit ce271d1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions examples/benchmark_fftx/run_fieldplots_Ex.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def run_and_plot(case, r, ax):
sigma_z = r * sigma_r
gamma = energy_MeV / mass_MeV
beta = (1.0 - (1.0 / gamma) ** 2) ** 0.5
c0 = 2.99792458e8 # speed of light in m/s
sigma_t = sigma_z / (beta * gamma) # recall t is implicitly scaled by c0
print(f"r={r} sigma_t={sigma_t}m")

Expand Down Expand Up @@ -97,7 +96,6 @@ def run_and_plot(case, r, ax):

gm = sim.Geom(lev=0)
dr = gm.data().CellSize()
dV = np.prod(dr)

half_x, half_y, half_z = [n // 2 for n in sim.n_cell] # order: x,y,z

Expand All @@ -107,7 +105,6 @@ def run_and_plot(case, r, ax):

# plot data slices
ng = F_x.n_grow_vect
q_e = -1.602176634e-19
for mfi in F_x:
bx = mfi.validbox()
rbx = amr.RealBox(bx, dr, gm.ProbLo())
Expand Down

0 comments on commit ce271d1

Please sign in to comment.