Skip to content

Commit

Permalink
Update run_linac_segment.py
Browse files Browse the repository at this point in the history
Reduce resolution for reduced runtime
  • Loading branch information
cemitch99 authored Dec 17, 2024
1 parent 5898bf6 commit bd5bfc8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/linac_segment/run_linac_segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

# set numerical parameters for space charge
sim.max_level = 0
sim.n_cell = [64, 64, 64]
#sim.n_cell = [64, 64, 64] #use this for high-resolution runs
sim.n_cell = [32, 32, 32]
sim.particle_shape = 2 # B-spline order
sim.space_charge = True
sim.poisson_solver = "fft"
Expand All @@ -28,7 +29,8 @@
sim.init_grids()

# npart = 2 # number of macro particles
npart = 1000000
#npart = 1000000 #use this for high-resolution runs
npart = 10000
ns = 25 # default number of slices per element

# beam reference parameters
Expand Down

0 comments on commit bd5bfc8

Please sign in to comment.