Class ThickElectromagnet

All Implemented Interfaces:
IElectromagnet, IComponent, IElement
Direct Known Subclasses:
IdealMagQuad, IdealMagSectorDipole, IdealMagSectorDipole, IdealMagSectorDipole2, IdealMagSkewQuad3, IdealMagSolenoid, IdealPermMagQuad, ThickDipole, ThickMagFieldMap

public abstract class ThickElectromagnet extends ThickElement implements IElectromagnet
This class implements IElectromagnet interface for thick magnets.
  • Field Details

    • enmOrient

      protected int enmOrient
      bending plane of dipole
    • dblField

      protected double dblField
      Field strength of the dipole magnet
  • Constructor Details

    • ThickElectromagnet

      protected ThickElectromagnet(String strType, String strId, double dblLen)
    • ThickElectromagnet

      protected ThickElectromagnet(String strType, String strId)
    • ThickElectromagnet

      protected ThickElectromagnet(String strType)
  • 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 interface IElectromagnet
      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 interface IElectromagnet
      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 interface IElectromagnet
      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 interface IElectromagnet
      Parameters:
      dblField - magnetic field (in Tesla/meter for quads, Tesla for dipoles).
    • initializeFrom

      public void initializeFrom(LatticeElement latticeElement)
      Conversion method to be provided by the user
      Specified by:
      initializeFrom in interface IComponent
      Overrides:
      initializeFrom in class ThickElement
      Parameters:
      latticeElement - the SMF node to convert