Class 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 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 MadX
        name - 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)