|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gov.sns.xal.model.elem.Element
|
+--gov.sns.xal.model.elem.ThinElement
|
+--gov.sns.xal.model.elem.IdealRfGap
Represents the action of an ideal RF gap. Gap is modeled as a thin element whose accelerating action is given by the Panofsky formula.
The gap provides acceleration to the propagation probe as well as longitudinal focusing and radial defocusing. These mechanisms are implemented according to that provided by an ideal gap where the effects can be described analytically.
| Field Summary | |
static java.lang.String |
s_strParamETL
Parameters for XAL MODEL LATTICE dtd |
static java.lang.String |
s_strParamFreq
|
static java.lang.String |
s_strParamPhase
|
static java.lang.String |
s_strType
the string type identifier for all IdealRfGap objects |
| Fields inherited from interface gov.sns.xal.model.IElement |
LightSpeed, Permeability, Permittivity, UnitCharge |
| Constructor Summary | |
IdealRfGap()
JavaBean constructor - creates a new unitialized instance of IdealRfGap BE CAREFUL |
|
IdealRfGap(java.lang.String strId,
double dblETL,
double dblPhase,
double dblFreq)
Creates a new instance of IdealRfGap |
|
| Method Summary | |
double |
compLongFocusing(IProbe probe)
Get the longitudinal focusing constant for a particular probe. |
double |
compTransFocusing(IProbe probe)
Get the transverse focusing constant for a particular probe. |
double |
elapsedTime(IProbe probe)
Returns the time taken for the probe to propagate through element. |
double |
energyGain(IProbe probe)
Compute the energy gain of the RF gap for a probe including the effects of calculating the phase advance. |
double |
getCellLength()
return the cell length (m) |
double |
getE0()
Get the on accelerating field (V/m) |
double |
getETL()
Return the ETL product of the gap, where E is the longitudinal electric field, T is the transit time factor, and L is the gap length. |
double |
getFrequency()
Get the operating frequency of the RF gap. |
double |
getPhase()
Return the RF phase delay of the gap with respect to the synchonous particle. |
void |
initializeFrom(IModelDataSource source)
Initializes this element from the supplied data source. |
boolean |
isFirstGap()
return wheteher this gap is the initial gap of a cavity |
void |
print(java.io.PrintWriter os)
Dump current state and content to output stream. |
void |
setE0(double E)
Set the on accelerating field |
void |
setETL(double dblETL)
Set the ETL product of the RF gap where E is the longitudinal electric field of the gap, T is the transit time factor of the gap, L is the length of the gap. |
void |
setFrequency(double dblFreq)
Set the operating frequency of the RF gap. |
void |
setPhase(double dblPhase)
Set the phase delay of the RF in gap with respect to the synchronous particle. |
double |
simpleEnergyGain(IProbe probe)
Compute the energy gain of the RF gap for a probe assuming a fixed default phase at the gap center. |
protected PhaseMap |
transferMap(IProbe probe)
Compute the tranfer map for an ideal RF gap. |
| Methods inherited from class gov.sns.xal.model.elem.ThinElement |
elapsedTime, energyGain, getLength, transferMap |
| Methods inherited from class gov.sns.xal.model.elem.Element |
compDriftingTime, getId, getType, getUID, propagate, setId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String s_strType
public static final java.lang.String s_strParamETL
public static final java.lang.String s_strParamPhase
public static final java.lang.String s_strParamFreq
| Constructor Detail |
public IdealRfGap(java.lang.String strId,
double dblETL,
double dblPhase,
double dblFreq)
strId - instance identifier of elementdblETL - field/transit time/length factor for gap (in volts)dblPhase - operating phase of gap (in radians)dblFreq - operating RF frequency of gap (in Hertz)public IdealRfGap()
| Method Detail |
public double getETL()
getETL in interface IRfGappublic double getPhase()
getPhase in interface IRfGappublic double getFrequency()
getFrequency in interface IRfGappublic boolean isFirstGap()
public void setETL(double dblETL)
The maximum energy gain from the gap is given by qETL where q is the charge (in coulombs) of the species particle.
setETL in interface IRfGapdblETL - ETL product of gap (in public void setPhase(double dblPhase)
setPhase in interface IRfGapdblPhase - phase delay of the RF w.r.t. synchonouse particle (in public void setFrequency(double dblFreq)
setFrequency in interface IRfGapdblFreq - frequency of RF gap (in public void setE0(double E)
setE0 in interface IRfGappublic double getE0()
getE0 in interface IRfGappublic double getCellLength()
public void initializeFrom(IModelDataSource source)
throws ModelException
initializeFrom in interface IElementinitializeFrom in class Elementsource - an instance of RfGapDataSource
java.lang.IllegalArgumentException - if source not of expected type
ModelException - if error initializing from sourcepublic double elapsedTime(IProbe probe)
elapsedTime in class ThinElementprobe - propagating probe
public double energyGain(IProbe probe)
energyGain in class ThinElementprobe - uses the particle species charge
protected PhaseMap transferMap(IProbe probe)
throws ModelException
transferMap in class ThinElementprobe - compute tranfer map using paramters from this probe
ModelException - this should not occurpublic double simpleEnergyGain(IProbe probe)
probe - uses the particle species charge
public double compTransFocusing(IProbe probe)
The value represents the thin lens focusing constant for an ideal RF gap (this is the inverse of the focal length). To compute the focusing action for the lens we must include beam energy, which is changing through the gap. We use the value of beta for which the beam has received half the total energy gain.
probe - beam energy and particle charge are taken from the probe
public double compLongFocusing(IProbe probe)
The value represents the thin lens focusing constant for an ideal RF gap (this is the inverse of the focal length). To compute the focusing action for the lens we must include beam energy, which is changing through the gap. We use the value of beta for which the beam has received half the total energy gain.
probe - beam energy and particle charge are taken from the probe
public void print(java.io.PrintWriter os)
print in class Elementos - output stream object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||