Package cnuphys.swim

Class Bxdl

java.lang.Object
cnuphys.swim.Bxdl

public class Bxdl extends Object
  • Constructor Details

    • Bxdl

      public Bxdl()
  • Method Details

    • accumulate

      public static void accumulate(Bxdl previous, Bxdl current, double[] p0, double[] p1, FieldProbe probe)
      Accumulate the integral of b cross dl
      Parameters:
      previous - the previous accumulation
      current - the (after returning) current accumulation
      p0 - the starting [x,y,z] position
      p1 - the ending [x,y,z] position
      probe - the object that can return the magnetic field
    • sectorAccumulate

      public static void sectorAccumulate(int sector, Bxdl previous, Bxdl current, double[] p0, double[] p1, RotatedCompositeProbe probe)
      Accumulate the integral of b cross dl
      Parameters:
      previous - the previous accumulation
      current - the (after returning) current accumulation
      p0 - the starting [x,y,z] position
      p1 - the ending [x,y,z] position
      probe - the object that can return the magnetic field
    • getPathlength

      public double getPathlength()
      Get the cumulative pathlength in meters
      Returns:
      the cumulative pathlength in meters
    • getIntegralBxdl

      public double getIntegralBxdl()
      Get the cumulative integral |b cross dl| in kG-m
      Returns:
      the cumulative integral b cross dl in kG-m
    • setPathlength

      public void setPathlength(double pathlength)
      Set the cumulative pathlength in meters
      Parameters:
      pathlength - the cumulative pathlength in meters
    • setIntegralBxdl

      public void setIntegralBxdl(double bxdl)
      Set the cumulative integral |b cross dl| in kG-m
      Parameters:
      bxdl - the cumulative integral b cross dl in kG-m
    • set

      public void set(Bxdl bxdl)
      Set the values based on another object
      Parameters:
      bxdl - the other object