Package xal.model.elem
Class ThickElectromagnet
java.lang.Object
xal.model.elem.Element
xal.model.elem.ThickElement
xal.model.elem.ThickElectromagnet
- All Implemented Interfaces:
IElectromagnet
,IComponent
,IElement
- Direct Known Subclasses:
IdealMagQuad
,IdealMagSectorDipole
,IdealMagSectorDipole
,IdealMagSectorDipole2
,IdealMagSkewQuad3
,IdealMagSolenoid
,IdealPermMagQuad
,ThickDipole
,ThickMagFieldMap
This class implements IElectromagnet interface for thick magnets.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected double
Field strength of the dipole magnetprotected int
bending plane of dipoleFields 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
ConstructorsModifierConstructorDescriptionprotected
ThickElectromagnet
(String strType) protected
ThickElectromagnet
(String strType, String strId) protected
ThickElectromagnet
(String strType, String strId, double dblLen) -
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the magnetic field strength of the electromagnetint
Return the orientation enumeration code.void
initializeFrom
(LatticeElement latticeElement) Conversion method to be provided by the uservoid
setMagField
(double dblField) Set the magnetic field strength of the electromagnet.void
setOrientation
(int enmOrient) Set the dipole bending plane orientationMethods inherited from class xal.model.elem.ThickElement
applyErrors, elapsedTime, energyGain, getLength, isFirstSubslice, isLastSubslice, longitudinalPhaseAdvance, setLength, transferMap
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, toString
-
Field Details
-
enmOrient
protected int enmOrientbending plane of dipole -
dblField
protected double dblFieldField strength of the dipole magnet
-
-
Constructor Details
-
ThickElectromagnet
-
ThickElectromagnet
-
ThickElectromagnet
-
-
Method Details
-
getOrientation
public int getOrientation()Return the orientation enumeration code. Return the orientation enumeration code for the bending plane of the associated dipole magnet / focusing plane of quadrupole.- Specified by:
getOrientation
in interfaceIElectromagnet
- Returns:
- ORIENT_HOR - quadrupole focuses in x (horizontal) plane dipole has steering action in x (horizontal) plane ORIENT_VER - quadrupole focuses in y ( vertical ) plane dipole has steering action in y (vertical) plane ORIENT_NONE - error
-
getMagField
public double getMagField()Get the magnetic field strength of the electromagnet- Specified by:
getMagField
in interfaceIElectromagnet
- Returns:
- magnetic field (in Tesla/meter for quads, Tesla for dipoles).
-
setOrientation
public void setOrientation(int enmOrient) Set the dipole bending plane orientation- Specified by:
setOrientation
in interfaceIElectromagnet
- Parameters:
enmOrient
- magnet orientation enumeration code- See Also:
-
setMagField
public void setMagField(double dblField) Set the magnetic field strength of the electromagnet.- Specified by:
setMagField
in interfaceIElectromagnet
- Parameters:
dblField
- magnetic field (in Tesla/meter for quads, Tesla for dipoles).
-
initializeFrom
Conversion method to be provided by the user- Specified by:
initializeFrom
in interfaceIComponent
- Overrides:
initializeFrom
in classThickElement
- Parameters:
latticeElement
- the SMF node to convert
-