Skip to content

Commit

Permalink
Add benchmark example input file.
Browse files Browse the repository at this point in the history
  • Loading branch information
cemitch99 committed Nov 21, 2023
1 parent 451a2b0 commit 046bfbf
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
18 changes: 18 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -639,3 +639,21 @@ add_impactx_test(hvkicker_madx.py
examples/kicker/analysis_kicker.py
OFF # no plot script yet
)

# Thin dipole ########################################################
#
# w/o space charge
add_impactx_test(thin_dipole
examples/thin_dipole/input_thin_dipole.in
ON # ImpactX MPI-parallel
OFF # ImpactX Python interface
examples/thin_dipole/analysis_thin_dipole.py
OFF # no plot script yet
)
add_impactx_test(thin_dipole.py
examples/thin_dipole/run_thin_dipole.py
OFF # ImpactX MPI-parallel
ON # ImpactX Python interface
examples/thin_dipole/analysis_thin_dipole.py
OFF # no plot script yet
)
57 changes: 57 additions & 0 deletions examples/thin_dipole/input_thin_dipole.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
###############################################################################
# Particle Beam(s)
###############################################################################
beam.npart = 10000
beam.units = static
beam.kin_energy = 4.0e-3
beam.charge = 1.0e-9
beam.particle = proton
beam.distribution = waterbag
beam.sigmaX = 1.0e-3
beam.sigmaY = 1.0e-3
beam.sigmaT = 0.3
beam.sigmaPx = 2.0e-4
beam.sigmaPy = 2.0e-4
beam.sigmaPt = 2.0e-5
beam.muxpx = 0.0
beam.muypy = 0.0
beam.mutpt = 0.0


###############################################################################
# Beamline: lattice elements and segments
###############################################################################
lattice.elements = monitor bend monitor
lattice.nslice = 1

monitor.type = beam_monitor
monitor.backend = h5

#a 360 deg sbend using drift-kick-drift:
bend.type = line
bend.elements = dr kick dr
bend.repeat = 100

dr.type = drift
dr.ds = 0.0314159265358979

kick.type = thin_dipole
kick.theta = 3.6
kick.rc = 1.0

#a 360 sbend using exact nonlinear map:
#bend.type = sbend_exact
#bend.ds = 6.283185307179586
#bend.phi = 360.0

###############################################################################
# Algorithms
###############################################################################
algo.particle_shape = 2
algo.space_charge = false


###############################################################################
# Diagnostics
###############################################################################
diag.slice_step_diagnostics = true

0 comments on commit 046bfbf

Please sign in to comment.