Package cnuphys.magfield
Class Cell2D
java.lang.Object
cnuphys.magfield.Cell2D
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
q2Minpublic double q2Min
- 
q2Maxpublic double q2Max
- 
q3Minpublic double q3Min
- 
q3Maxpublic double q3Max
 
- 
- 
Constructor Details- 
Cell2DCreate a 2D cell (for solenoid)- Parameters:
- probe- the magnetic probe
 
 
- 
- 
Method Details- 
containedCylindricalpublic 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
 
- 
calculatepublic 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
 
- 
resetpublic void reset()
 
-