Class IdealRfCavityDrift
- All Implemented Interfaces:
IComponent
,IElement
Represents a drift region between RF cavity accelerating gaps. Extends the
IdealDrift
class to include a frequency parameter
f which is necessary in computing probe phase advance through the
drift.
- Since:
- Nov 28, 2014
- Author:
- Christopher K. Allen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
string type identifier for all IdealDrift objectsFields inherited from class xal.model.elem.IdealDrift
TYPE
Fields inherited from class xal.model.elem.Element
dblNodeLen, dblNodePos
Fields inherited from interface xal.model.IElement
LIGHT_SPEED, PERMEABILITY, PERMITTIVITY, UNIT_CHARGE
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for IdealRfCavityDrift.IdealRfCavityDrift
(String strId, double dblLen) Constructor for IdealRfCavityDrift.IdealRfCavityDrift
(String strId, double dblLen, double dblFreq, double dblModeConst) Fully initializing constructor forIdealRfCavityDrift
. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the operating mode constant λ for the RF cavity design.double
Get the frequency of the RF cavity containing this drift space.double
longitudinalPhaseAdvance
(IProbe probe, double dblLen) Computes and returns the phase advance of the probe while drifting through the given segment of this drift.void
setCavityModeConstant
(double dblModeConst) Set the operating mode constant λ for the RF cavity design.void
setFrequency
(double dblFreq) Set the frequency of the RF cavity containing this drift space.toString()
Methods inherited from class xal.model.elem.IdealDrift
elapsedTime, energyGain, getKDrift, prepareFringe, transferMap
Methods inherited from class xal.model.elem.ThickElement
applyErrors, getLength, initializeFrom, isFirstSubslice, isLastSubslice, setLength
Methods inherited from class xal.model.elem.Element
addCloseElements, backPropagate, backPropagate, compDriftingTime, compProbeLocation, getAlignX, getAlignY, getAlignZ, getCloseElements, getHardwareNodeId, getId, getLatticePosition, getNodeLen, getNodePos, getParent, getPhiX, getPhiY, getPhiZ, getPosition, getType, getUID, print, propagate, propagate, setAlign, setAlignX, setAlignY, setAlignZ, setHardwareNodeId, setId, setParent, setPhiX, setPhiY, setPhiZ, setPosition
-
Field Details
-
STR_TYPEID
string type identifier for all IdealDrift objects- See Also:
-
-
Constructor Details
-
IdealRfCavityDrift
Fully initializing constructor forIdealRfCavityDrift
. Constructor initializes all defining parameters of this RF cavity drift space.- Parameters:
strId
- string identifier of the driftdblLen
- length of the RF cavity driftdblFreq
- RF frequency of the enclosing RF CavitydblModeConst
- RF structure constant for the cavity operating mode- Since:
- Dec 3, 2014
-
IdealRfCavityDrift
Constructor for IdealRfCavityDrift.- Parameters:
strId
- the string identifier of the drift spacedblLen
- the length of the drift space- Since:
- Nov 28, 2014
-
IdealRfCavityDrift
public IdealRfCavityDrift()Constructor for IdealRfCavityDrift.- Since:
- Nov 28, 2014
-
-
Method Details
-
setFrequency
public void setFrequency(double dblFreq) Set the frequency of the RF cavity containing this drift space.- Parameters:
dblFreq
- fundamental RF frequency of the enclosing RF cavity
-
setCavityModeConstant
public void setCavityModeConstant(double dblModeConst) Set the operating mode constant λ for the RF cavity design. The constant is half of the mode number q. Specifically,
λ = 0 (q=0) ⇒ 0 mode cavity structure (e.g. DTL)
λ = 1/2 (q=1) ⇒ π/2 mode structure (bi-periodic structures, e.g., SideCC)
λ = 1 (q=2) ⇒ π-mode cavity (e.g. CCL, super-conducting)- Parameters:
dblModeConst
- the new mode constant λ for the cavity drift
-
getFrequency
public double getFrequency()Get the frequency of the RF cavity containing this drift space.- Returns:
- the fundamental mode frequency f0 of the enclosing RF cavity
-
getCavityModeConstant
public double getCavityModeConstant()Get the operating mode constant λ for the RF cavity design. The constant is half of the mode number q. Specifically,
λ = 0 (q=0) ⇒ 0 mode cavity structure (e.g. DTL)
λ = 1/2 (q=1) ⇒ π/2 mode structure (bi-periodic structures, e.g., SideCC)
λ = 1 (q=2) ⇒ π-mode cavity (e.g. CCL, super-conducting)- Returns:
- the operating mode constant λ for the cavity drift
-
longitudinalPhaseAdvance
Computes and returns the phase advance of the probe while drifting through the given segment of this drift.- Specified by:
longitudinalPhaseAdvance
in interfaceIElement
- Overrides:
longitudinalPhaseAdvance
in classThickElement
- Parameters:
probe
- the probe propagating through this elementdblLen
- distance the probe propagates through the element- Returns:
- longitudinal phase advance of the probe through given distance
- Since:
- Dec 2, 2014
- See Also:
-
toString
-