Skip to content

About

COSY INFINITY beam physics examples in FOX

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COSY INFINITY Examples

Textbook beam physics examples written in the COSY INFINITY FOX language. Each program is self-contained and demonstrates a specific concept in accelerator physics or differential algebra.

Examples

File Topic
da_basics.fox Differential algebra: Taylor polynomials, derivatives, composition
fodo_optics.fox FODO cell Twiss parameters and stability scan
transfer_maps.fox Transfer maps to various orders
dispersion.fox Off-momentum orbits and periodic dispersion
matching.fox Optics matching with FIT
chromaticity.fox Natural chromaticity of a FODO ring
orbit_correction.fox Closed orbit distortion from dipole errors
normal_form.fox Amplitude-dependent tune shifts via normal form
tracking.fox Multi-turn particle tracking
spin_tracking.fox Thomas-BMT spin dynamics
solenoid_focusing.fox Solenoid coupling between planes
edge_focusing.fox Edge angles in sector vs rectangular dipoles
combined_function.fox Combined-function magnets (MC)
parametric_maps.fox Transfer maps as functions of element parameters
rf_longitudinal.fox Synchrotron tune from 6D map with RF
electrostatic_deflector.fox Electrostatic vs magnetic bending
map_composition.fox Map concatenation and associativity
map_inversion.fox Nonlinear map inversion with POLVAL1
integration_demo.fox DA antiderivatives with INTEG

Running

Each example requires COSY INFINITY. Copy COSY.bin (compiled core library) to the working directory, then:

./cosy example.fox

License

MIT.

About

COSY INFINITY beam physics examples in FOX

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors