public class IdealMagWedgeDipole extends ElectromagnetSeq
Represents a bending dipole magnet with arbitrary pole face angles.
This is a composite element constructed from three sub-elements - one
IdealMagSectorDipole
sandwiched between two
IdealDipoleFace
elements that provided the thin lens
dynamics of the tilted pole faces.
xal.model.elem
,
xal.model.elem
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
s_strType
string type identifier for all IdealMagSectorDipole objects
|
static int |
s_szReserve
storage to reserve for child components
|
s_szDefReserve
ORIENT_HOR, ORIENT_NONE, ORIENT_VER
Constructor and Description |
---|
IdealMagWedgeDipole()
Default constructor - creates a new unitialized instance of
IdealMagWedgeDipole . |
IdealMagWedgeDipole(java.lang.String strId)
Create new
IdealMagWedgeDipole object and specify its
instance identifier string. |
Modifier and Type | Method and Description |
---|---|
double |
compCurvature(IProbe probe)
Compute the path curvature within the dipole for the given probe.
|
IdealMagDipoleFace |
getEntrFace()
Return the entrance dipole face object of the wedge dipole.
|
IdealMagDipoleFace |
getExitFace()
Return the exit dipole face object of this wedge dipole magnet.
|
double |
getFieldIndex()
Return the magnetic field index of the magnet evaluated at the design
orbit.
|
double |
getGapHeight()
Return the gap size between the dipole magnet poles.
|
IdealMagSectorDipole |
getMagBody()
Return the dipole magnet body object of this wedge dipole magnet.
|
double |
getMagField()
Get the magnetic field strength of the dipole electromagnet
|
int |
getOrientation()
Return the orientation enumeration code specifying the bending plane.
|
void |
initializeFrom(LatticeElement element)
Conversion method to be provided by the user
|
void |
setEntrFringeIntegral(double dblFldInt)
Set the entrance fringe integral (a la D.C.
|
void |
setEntrPoleAngle(double dblAngPole)
Set the entrance pole face angle with respect to the design trajectory
|
void |
setExitFringeIntegral(double dblFldInt)
Set the exit fringe integral (a la D.C.
|
void |
setExitPoleAngle(double dblAngPole)
Set the exit pole face angle with respect to the design trajectory
|
void |
setFieldIndex(double dblFldInd)
Set the magnetic field index of the magnet evaluated at the design
orbit.
|
void |
setGapSize(double dblGap)
Set the gap size between the dipole magnet poles.
|
void |
setLength(double dblLen)
Set the path length of the bending dipole along the design trajectory.
|
void |
setMagField(double dblField)
Set the magnetic field strength of the dipole electromagnet.
|
void |
setOrientation(int enmOrient)
Set the dipole magnet bending orientation
|
addChild, backPropagate, backPropagate, childIterator, concatenateEquals, getAllElements, getChild, getChildCount, getComments, getCompList, getElementList, getHardwareNodeId, getId, getLeafCount, getLength, getReverseCompList, getType, globalBackIterator, globalIterator, localBackIterator, localIterator, print, propagate, propagate, remove, setComments, setCompList, setHardwareNodeId, setId, toString
public static final java.lang.String s_strType
public static final int s_szReserve
public IdealMagWedgeDipole()
IdealMagWedgeDipole
.public IdealMagWedgeDipole(java.lang.String strId)
IdealMagWedgeDipole
object and specify its
instance identifier string.strId
- instance identifier stringpublic void setLength(double dblLen)
dblLen
- design path length through bend in meterspublic void setFieldIndex(double dblFldInd)
dblFldInd
- field index of the magnet (unitless)public void setGapSize(double dblGap)
dblGap
- gap size in meterspublic void setEntrPoleAngle(double dblAngPole)
dblAngPole
- pole face angle in radianspublic void setExitPoleAngle(double dblAngPole)
dblAngPole
- pole face angle in radianspublic void setEntrFringeIntegral(double dblFldInt)
dblFldInt
- fringe field integral (unitless)IdealMagDipoleFace.setFringeIntegral(double)
public void setExitFringeIntegral(double dblFldInt)
dblFldInt
- fringe field integral (unitless)IdealMagDipoleFace.setFringeIntegral(double)
public IdealMagDipoleFace getEntrFace()
public IdealMagDipoleFace getExitFace()
public IdealMagSectorDipole getMagBody()
IdealMagSectorDipole
which has
no end effects.public double getFieldIndex()
public double getGapHeight()
public double compCurvature(IProbe probe)
probe
- probe object to be deflectedpublic int getOrientation()
public double getMagField()
public void setOrientation(int enmOrient)
enmOrient
- magnet orientation enumeration codegetOrientation()
public void setMagField(double dblField)
dblField
- magnetic field (in public void initializeFrom(LatticeElement element)
initializeFrom
in interface IComponent
initializeFrom
in class ElectromagnetSeq
latticeElement
- the SMF node to convert