Package xal.model.elem
Class IdealMagSolenoid
java.lang.Object
xal.model.elem.Element
xal.model.elem.ThickElement
xal.model.elem.ThickElectromagnet
xal.model.elem.IdealMagSolenoid
- All Implemented Interfaces:
IElectromagnet
,IComponent
,IElement
Models an ideal solenoid magnet. I don't know who implemented this class or when he or she did so. I can't really comment on details yet.
- Since:
- Apr 19, 2011
- Author:
- Christopher K. Allen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Parameters for XAL MODEL LATTICE dtdstatic final String
string type identifier for all IdealMagSolenoid objectsFields inherited from class xal.model.elem.ThickElectromagnet
dblField, enmOrient
Fields inherited from class xal.model.elem.Element
dblNodeLen, dblNodePos
Fields inherited from interface xal.model.elem.sync.IElectromagnet
ORIENT_HOR, ORIENT_NONE, ORIENT_VER
Fields inherited from interface xal.model.IElement
LIGHT_SPEED, PERMEABILITY, PERMITTIVITY, UNIT_CHARGE
-
Constructor Summary
ConstructorsConstructorDescriptionJavaBean constructor - creates a new uninitialized instance of IdealMagSolenoid BE CAREFULIdealMagSolenoid
(String strId, double dblFld, double dblLen) Creates a new instance of IdealMagSolenoid -
Method Summary
Modifier and TypeMethodDescriptiondouble
elapsedTime
(IProbe probe, double dblLen) Returns the time taken for the probe to drift through part of the element.double
energyGain
(IProbe probe, double dblLen) Return the energy gain imparted to a particular probe.void
print
(PrintWriter os) Dump current state and content to output stream.transferMap
(IProbe probe, double length) Compute the partial transfer map of an ideal solenoid for the particular probe.Methods inherited from class xal.model.elem.ThickElectromagnet
getMagField, getOrientation, initializeFrom, setMagField, setOrientation
Methods inherited from class xal.model.elem.ThickElement
applyErrors, getLength, isFirstSubslice, isLastSubslice, longitudinalPhaseAdvance, 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, propagate, propagate, setAlign, setAlignX, setAlignY, setAlignZ, setHardwareNodeId, setId, setParent, setPhiX, setPhiY, setPhiZ, setPosition, toString
-
Field Details
-
TYPE
string type identifier for all IdealMagSolenoid objects- See Also:
-
PARAM_FIELD
Parameters for XAL MODEL LATTICE dtd- See Also:
-
-
Constructor Details
-
IdealMagSolenoid
Creates a new instance of IdealMagSolenoid- Parameters:
strId
- identifier for this IdealMagSolenoid objectdblFld
- field gradient strength (in Tesla)dblLen
- length of the solenoid
-
IdealMagSolenoid
public IdealMagSolenoid()JavaBean constructor - creates a new uninitialized instance of IdealMagSolenoid BE CAREFUL
-
-
Method Details
-
elapsedTime
Returns the time taken for the probe to drift through part of the element.- Specified by:
elapsedTime
in interfaceIElement
- Specified by:
elapsedTime
in classThickElement
- Parameters:
probe
- propagating probedblLen
- length of subsection to propagate through meters- Returns:
- the elapsed time through sectionUnits: seconds
-
energyGain
Return the energy gain imparted to a particular probe. For an ideal solenoid magnet this value is always zero.- Specified by:
energyGain
in interfaceIElement
- Specified by:
energyGain
in classThickElement
- Parameters:
probe
- dummy argumentdblLen
- dummy argument- Returns:
- returns a zero value
-
transferMap
Compute the partial transfer map of an ideal solenoid for the particular probe. Computes transfer map for a section of solenoiddblLen
meters in length.- Specified by:
transferMap
in interfaceIElement
- Specified by:
transferMap
in classThickElement
- Parameters:
probe
- supplies the charge, rest and kinetic energy parameterslength
- compute transfer matrix for section of this length- Returns:
- transfer map of ideal quadrupole for particular probe
- See Also:
-
print
Dump current state and content to output stream.
-