Class TorusProbe

java.lang.Object
cnuphys.magfield.FieldProbe
cnuphys.magfield.TorusProbe
All Implemented Interfaces:
IField

public class TorusProbe extends FieldProbe
Author:
gavalian
  • Constructor Details

    • TorusProbe

      public TorusProbe(Torus field)
      Create a probe for use with the torus
      Parameters:
      field - the torus field
    • TorusProbe

      public TorusProbe(Torus field, boolean set)
      Create a probe for use with the torus Used only for the weird DoubleTorus
      Parameters:
      field - the torus field
  • Method Details

    • field

      public void field(float x, float y, float z, float[] result)
      Get the field in kG
      Parameters:
      x - the x coordinate in cm
      y - the y coordinate in cm
      z - the z coordinate in cm
      result - holds the resuts, the Cartesian coordinates of B in kG