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 StringParameters for XAL MODEL LATTICE dtdstatic final Stringstring type identifier for all IdealMagSolenoid objectsFields inherited from class xal.model.elem.ThickElectromagnet
dblField, enmOrientFields inherited from class xal.model.elem.Element
dblNodeLen, dblNodePosFields inherited from interface xal.model.elem.sync.IElectromagnet
ORIENT_HOR, ORIENT_NONE, ORIENT_VERFields 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 TypeMethodDescriptiondoubleelapsedTime(IProbe probe, double dblLen) Returns the time taken for the probe to drift through part of the element.doubleenergyGain(IProbe probe, double dblLen) Return the energy gain imparted to a particular probe.voidprint(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, setOrientationMethods inherited from class xal.model.elem.ThickElement
applyErrors, getLength, isFirstSubslice, isLastSubslice, longitudinalPhaseAdvance, setLengthMethods 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:
elapsedTimein interfaceIElement- Specified by:
elapsedTimein 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:
energyGainin interfaceIElement- Specified by:
energyGainin 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 solenoiddblLenmeters in length.- Specified by:
transferMapin interfaceIElement- Specified by:
transferMapin 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.
-