bmad-sim / BeamTracking.jl

Julia routines for tracking particle beams through accelerators
Other
0 stars 2 forks source link

define particle data structure #2

Open dtabell opened 2 weeks ago

dtabell commented 2 weeks ago

The obvious start is

mutable struct Particle
    string name
    PScoord orbit
    Quaternion spin
end

with

mutable struct PScoord
    x
    px
    y
    py
    z
    pz
end

and

mutable struct Quaternion
    w
    x
    y
    z
end

What's missing (besides comments)?

DavidSagan commented 2 weeks ago

Comments: