Class ThickElectrostatic

All Implemented Interfaces:
IElectrostatic, IComponent, IElement
Direct Known Subclasses:
IdealEDipole, IdealEQuad

public abstract class ThickElectrostatic extends ThickElement implements IElectrostatic
This class implements IElectrostatic interface for thick electrostatics.
  • Field Details

    • enmOrient

      protected int enmOrient
      bending plane of dipole
    • dblField

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

    • ThickElectrostatic

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

      protected ThickElectrostatic(String strType, String strId)
    • ThickElectrostatic

      protected ThickElectrostatic(String strType)
  • Method Details

    • getOrientation

      public int getOrientation()
      Return the orientation enumeration code for the bending plane of the associated dipole magnet.
      Specified by:
      getOrientation in interface IElectrostatic
      Returns:
      ORIENT_HOR - dipole has steering action in x (horizontal) plane ORIENT_VER - dipole has steering action in y (vertical) plane ORIENT_NONE - error
    • getMagField

      public double getMagField()
      Get the magnetic field strength of the associated dipole
      Returns:
      magnetic field (in Tesla).
    • setOrientation

      public void setOrientation(int enmOrient)
      Set the dipole bending plane orientation
      Specified by:
      setOrientation in interface IElectrostatic
      Parameters:
      enmOrient - magnet orientation enumeration code
      See Also:
    • setMagField

      public void setMagField(double dblField)
      Set the magnetic field strength of the dipole electromagnet.
      Parameters:
      dblField - magnetic field (in Tesla).
    • 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