Class Bend
- java.lang.Object
-
- cern.accsoft.steering.jmad.domain.elem.impl.AbstractElement
-
- cern.accsoft.steering.jmad.domain.elem.impl.Bend
-
- All Implemented Interfaces:
Element
public class Bend extends AbstractElement
Represents a bending-magnet of a general type. This is the substitute in JMad for both MadX elements, RBEND and SBEND.possible attributes:
L=real,ANGLE=real,TILT=real,K0=real,K0S=real,K1=real,E1=real,E2=real, FINT=real,FINTX=real,HGAP=real,K2=real,H1=real,H2=real,K3=real;
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_ANGLEthe bending angle.static java.lang.StringATTR_E1the rotation angle for the entrance pole face (default: 0 rad).static java.lang.StringATTR_E2the rotation angle for the exit pole face (default: 0 rad).static java.lang.StringATTR_FINTThe field integral whose default value is 0.static java.lang.StringATTR_FINTXAllows (FINTX > 0)to set FINT at the element exit different from its entry value.static java.lang.StringATTR_H1the curvature of the entrance pole face (default: 0 m-1).static java.lang.StringATTR_H2the curvature of the exit pole face (default: 0 m-1).static java.lang.StringATTR_HGAPthe half gap of the magnet (default: 0 m).static java.lang.StringATTR_K0the dipole coeff.static java.lang.StringATTR_K0Sthe skewed dipole coeff.static java.lang.StringATTR_K1the quadrupole coeff.static java.lang.StringATTR_K2the sextupole coefficient K2 = (1 / B rho) (del2 By / del x2).static java.lang.StringATTR_K3the octupole coefficientstatic java.lang.StringATTR_TILTthe tilt of the element-
Fields inherited from class cern.accsoft.steering.jmad.domain.elem.impl.AbstractElement
ATTR_LENGTH
-
Fields inherited from interface cern.accsoft.steering.jmad.domain.elem.Element
ATTR_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description Bend(MadxElementType madxElementType, java.lang.String name)the constructor, which enforces that the element has a MadX element type and a name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetAngle()doublegetE1()doublegetE2()doublegetFint()doublegetFintX()doublegetH1()doublegetH2()doublegetHGap()doublegetK0()doublegetK0S()doublegetK1()doublegetK2()doublegetK3()doublegetTilt()voidsetAngle(double angle)voidsetE1(double e1)voidsetE2(double e2)voidsetFint(double fint)voidsetFintX(double fintx)voidsetH1(double h1)voidsetH2(double h2)voidsetHGap(double hgap)voidsetK0(double k0)voidsetK0S(double k0s)voidsetK1(double k1)voidsetK2(double k2)voidsetK3(double k3)voidsetTilt(double tilt)-
Methods inherited from class cern.accsoft.steering.jmad.domain.elem.impl.AbstractElement
addAttribute, addListener, getAttribute, getAttributeNames, getAttributesReader, getLength, getMadxElementType, getName, getPosition, removeListener, setAttribute, setAttributesInitialized, setAttributesReader, setLength, setListenersEnabled, setPosition, setPosition, toString
-
-
-
-
Field Detail
-
ATTR_ANGLE
public static final java.lang.String ATTR_ANGLE
the bending angle.- See Also:
- Constant Field Values
-
ATTR_TILT
public static final java.lang.String ATTR_TILT
the tilt of the element- See Also:
- Constant Field Values
-
ATTR_K0
public static final java.lang.String ATTR_K0
the dipole coeff. Should only be used to define relative field errors.- See Also:
- Constant Field Values
-
ATTR_K0S
public static final java.lang.String ATTR_K0S
the skewed dipole coeff. Should only be used to define relative field errors.- See Also:
- Constant Field Values
-
ATTR_K1
public static final java.lang.String ATTR_K1
the quadrupole coeff.- See Also:
- Constant Field Values
-
ATTR_E1
public static final java.lang.String ATTR_E1
the rotation angle for the entrance pole face (default: 0 rad).- See Also:
- Constant Field Values
-
ATTR_E2
public static final java.lang.String ATTR_E2
the rotation angle for the exit pole face (default: 0 rad).- See Also:
- Constant Field Values
-
ATTR_FINT
public static final java.lang.String ATTR_FINT
The field integral whose default value is 0.- See Also:
- Constant Field Values
-
ATTR_FINTX
public static final java.lang.String ATTR_FINTX
Allows (FINTX > 0)to set FINT at the element exit different from its entry value. In particular useful to switch it off (FINTX=0).- See Also:
- Constant Field Values
-
ATTR_HGAP
public static final java.lang.String ATTR_HGAP
the half gap of the magnet (default: 0 m).- See Also:
- Constant Field Values
-
ATTR_K2
public static final java.lang.String ATTR_K2
the sextupole coefficient K2 = (1 / B rho) (del2 By / del x2).- See Also:
- Constant Field Values
-
ATTR_H1
public static final java.lang.String ATTR_H1
the curvature of the entrance pole face (default: 0 m-1).- See Also:
- Constant Field Values
-
ATTR_H2
public static final java.lang.String ATTR_H2
the curvature of the exit pole face (default: 0 m-1). A positive pole face curvature induces a negative sextupole component; i.e. for positive H1 and H2 the centres of curvature of the pole faces are placed inside the magnet.- See Also:
- Constant Field Values
-
ATTR_K3
public static final java.lang.String ATTR_K3
the octupole coefficient- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Bend
public Bend(MadxElementType madxElementType, java.lang.String name)
the constructor, which enforces that the element has a MadX element type and a name.- Parameters:
madxElementType- the elementType which represents the element in MadXname- the name of the element
-
-
Method Detail
-
getAngle
public double getAngle()
-
getE1
public double getE1()
-
getE2
public double getE2()
-
getFint
public double getFint()
-
getFintX
public double getFintX()
-
getH1
public double getH1()
-
getH2
public double getH2()
-
getHGap
public double getHGap()
-
getK0
public double getK0()
-
getK0S
public double getK0S()
-
getK1
public double getK1()
-
getK2
public double getK2()
-
getK3
public double getK3()
-
getTilt
public double getTilt()
-
setAngle
public void setAngle(double angle)
-
setE1
public void setE1(double e1)
-
setE2
public void setE2(double e2)
-
setFint
public void setFint(double fint)
-
setFintX
public void setFintX(double fintx)
-
setH1
public void setH1(double h1)
-
setH2
public void setH2(double h2)
-
setHGap
public void setHGap(double hgap)
-
setK0
public void setK0(double k0)
-
setK0S
public void setK0S(double k0s)
-
setK1
public void setK1(double k1)
-
setK2
public void setK2(double k2)
-
setK3
public void setK3(double k3)
-
setTilt
public void setTilt(double tilt)
-
-