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 months ago

dtabell commented 2 months 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 months ago

Comments:

DavidSagan commented 1 week ago

Missing is:

mattsignorelli commented 1 week ago

This should this be in #23

DavidSagan commented 1 week ago

Actually this is needed independent of OpenPMD.