Class Cell2D

java.lang.Object
cnuphys.magfield.Cell2D

public class Cell2D extends Object
  • Field Details

    • q2Min

      public double q2Min
    • q2Max

      public double q2Max
    • q3Min

      public double q3Min
    • q3Max

      public double q3Max
  • Constructor Details

    • Cell2D

      public Cell2D(FieldProbe probe)
      Create a 2D cell (for solenoid)
      Parameters:
      probe - the magnetic probe
  • Method Details

    • containedCylindrical

      public boolean containedCylindrical(double rho, double z)
      Check whether the cell boundaries (not the map boundaries) include the point
      Parameters:
      rho - the cylindrical rho coordinate in cm.
      z - coordinate in cm
      Returns:
      true if the point is included in the boundary of the field
    • calculate

      public void calculate(double rho, double z, float[] result)
      Calculate the field in kG in cylindrical components
      Parameters:
      rho - rho coordinate in cm
      z - z coordinate in cm
      result - field in kG in cylindrical components
    • reset

      public void reset()