BFieldMesh add comments
BFieldMesh add comments
ping @schaffer
Merge request reports
Activity
added Magnets master review-pending-level-1 labels
CI Result SUCCESS (hash 9c61c299)Athena AthSimulation AthGeneration AnalysisBase AthAnalysis DetCommon externals cmake make required tests optional tests Full details available on this CI monitor view. Check the JIRA CI status board for known problems
Athena: number of compilation errors 0, warnings 0
AthSimulation: number of compilation errors 0, warnings 0
AthGeneration: number of compilation errors 0, warnings 0
AnalysisBase: number of compilation errors 0, warnings 0
AthAnalysis: number of compilation errors 0, warnings 0
DetCommon: number of compilation errors 0, warnings 0
For experts only: Jenkins output [CI-MERGE-REQUEST-CC7 44567]added review-approved label and removed review-pending-level-1 label
mentioned in commit 24aa2c56
8 * The field type is templated - it may be short (for the toroid) or double (for 9 * the solenoid) 5 /** 6 * 7 * @class BFieldMesh 8 * 9 * A 3-d mesh (axes z,r,phi) representing a simple field map. 10 * 11 * The mesh is made up from 'cells' 12 * We hold numz, numr , numphi positions defining 13 * the corners of the cells. 14 * 15 * Then we have 16 * numz X numr X numphi field values at these corners 17 * 18 * The field type is templated - it may be short (for the toroid) 65 // find the bin 79 /* @brief get the cache corresponding to a particular cell*/ 66 80 void getCache(double z, 67 81 double r, 68 82 double phi, 69 83 BFieldCache& cache, 70 84 double scaleFactor = 1.0) const; 71 // get the B field 85 /* @brief get the bfield given a point in xyz*/ 72 86 void getB(const double* ATH_RESTRICT xyz, 73 87 double* ATH_RESTRICT B, 74 88 double* ATH_RESTRICT deriv = nullptr) const; 75 // accessors 76 double min(size_t i) const; 77 double max(size_t i) const; 89 /* @brief minimum in axis*/ 66 80 void getCache(double z, 67 81 double r, 68 82 double phi, 69 83 BFieldCache& cache, 70 84 double scaleFactor = 1.0) const; 71 // get the B field 85 /* @brief get the bfield given a point in xyz*/ 72 86 void getB(const double* ATH_RESTRICT xyz, 73 87 double* ATH_RESTRICT B, 74 88 double* ATH_RESTRICT deriv = nullptr) const; 75 // accessors 76 double min(size_t i) const; 77 double max(size_t i) const; 89 /* @brief minimum in axis*/ 90 double min(size_t axis) const; 91 /* @brief maximum in axis*/ same here for max
Edited by R D Schaffer
92 double max(size_t axis) const; 93 /* @brief minimum in z*/ 78 94 double zmin() const; 95 /* @brief maximum in z*/ 79 96 double zmax() const; 97 /* @brief minimun in r*/ 80 98 double rmin() const; 99 /* @brief maximum in r*/ 81 100 double rmax() const; 101 /* @brief minimun in phi*/ 82 102 double phimin() const; 103 /* @brief maximum in phi*/ 83 104 double phimax() const; 84 unsigned nmesh(size_t i) const; 85 double mesh(size_t i, size_t j) const; 105 /* @brief number of corner cell coordinates for axis*/ /* @brief number of cells along each axis = 0 (z), 1 (r), 2 (phi)*/
Edited by R D Schaffer
78 94 double zmin() const; 95 /* @brief maximum in z*/ 79 96 double zmax() const; 97 /* @brief minimun in r*/ 80 98 double rmin() const; 99 /* @brief maximum in r*/ 81 100 double rmax() const; 101 /* @brief minimun in phi*/ 82 102 double phimin() const; 103 /* @brief maximum in phi*/ 83 104 double phimax() const; 84 unsigned nmesh(size_t i) const; 85 double mesh(size_t i, size_t j) const; 105 /* @brief number of corner cell coordinates for axis*/ 106 unsigned nmesh(size_t axis) const; 107 /* @brief coordinate at axis of cell corner */ added sweep:ignore label
mentioned in merge request !49357 (merged)