Package cnuphys.swim
Class Bxdl
java.lang.Object
cnuphys.swim.Bxdl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
accumulate
(Bxdl previous, Bxdl current, double[] p0, double[] p1, FieldProbe probe) Accumulate the integral of b cross dldouble
Get the cumulative integral |b cross dl| in kG-mdouble
Get the cumulative pathlength in metersstatic void
sectorAccumulate
(int sector, Bxdl previous, Bxdl current, double[] p0, double[] p1, RotatedCompositeProbe probe) Accumulate the integral of b cross dlvoid
Set the values based on another objectvoid
setIntegralBxdl
(double bxdl) Set the cumulative integral |b cross dl| in kG-mvoid
setPathlength
(double pathlength) Set the cumulative pathlength in meters
-
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 accumulationcurrent
- the (after returning) current accumulationp0
- the starting [x,y,z] positionp1
- the ending [x,y,z] positionprobe
- 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 accumulationcurrent
- the (after returning) current accumulationp0
- the starting [x,y,z] positionp1
- the ending [x,y,z] positionprobe
- 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
Set the values based on another object- Parameters:
bxdl
- the other object
-