Class DipoleMatrix

All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
RDipoleMatrix, SDipoleMatrix

public abstract class DipoleMatrix extends TransferMatrix

Abstract DipoleMatrix class.

Author:
igor@scictrl.com
  • Field Details

    • k

      protected double k
      Quadrupole coefficient
    • radius

      protected double radius
      Bending radius
  • Constructor Details

    • DipoleMatrix

      public DipoleMatrix(double newLength, double newK, double newRadius)
      DriftMatrix constructor comment.
      Parameters:
      newLength - a double
      newK - a double
      newRadius - a double
  • Method Details

    • getK

      public double getK()

      Getter for the field k.

      Returns:
      double
    • getRadius

      public double getRadius()

      Getter for the field radius.

      Returns:
      double
    • makeMatrix

      protected abstract double[][] makeMatrix()

      makeMatrix.

      Returns:
      an array of
      invalid reference
      double
      objects
    • set

      public void set(double newLength, double newK, double newRadius)

      set.

      Parameters:
      newLength - a double
      newK - double
      newRadius - a double
    • setK

      public void setK(double newK)

      Setter for the field k.

      Parameters:
      newK - double
    • setLength

      public void setLength(double length)

      setLength.

      Parameters:
      length - double
    • setRadius

      public void setRadius(double newRadius)

      Setter for the field radius.

      Parameters:
      newRadius - double
    • transport

      public BetaMatrix transport(BetaMatrix beta)

      transport.

      Overrides:
      transport in class TransferMatrix
      Parameters:
      beta - BetaMatrix
      Returns:
      BetaMatrix