Class Cell2D
java.lang.Object
cnuphys.magfield.Cell2D
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalculate(double rho, double z, float[] result) Calculate the field in kG in cylindrical componentsbooleancontainedCylindrical(double rho, double z) Check whether the cell boundaries (not the map boundaries) include the pointvoidreset()
-
Field Details
-
q2Min
public double q2Min -
q2Max
public double q2Max -
q3Min
public double q3Min -
q3Max
public double q3Max
-
-
Constructor Details
-
Cell2D
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:
trueif 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 cmz- z coordinate in cmresult- field in kG in cylindrical components
-
reset
public void reset()
-