label: CRABCAVITY, L=real,VOLT=real,LAG=real,FREQ=real,
rv1=integer, rv2=integer, rv3=integer, rv4=integer,
rph1=integer, rph2=integer,lagf=real;
An CRABCAVITY has ten real attributes and seven integer attributes:
delta(px) = VOLT * sin( PHI - OMEGA * t)
delta(E) = - VOLT * OMEGA * x * cos( PHI - OMEGA * t
)
where PHI = 2 π * (LAG - HARMON * f0 t),
and OMEGA = 2 π * FREQ / c
Example:
BEAM, PARTICLE=PROTON, ENERGY=7000.0; CAVITY: CRABCAVITY, L=10.0, VOLT=5.0, LAG=0.0, FREQ=400, rv1=0, rv2=50, rv3=1000, rv4=50, rph1=100, rph2=500,lagf=0.125;The straight reference system for a cavity is a cartesian coordinate system.
R. Calaga, September 2010; A. Latina, June 2013