Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena_MET
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Plebani
athena_MET
Commits
a3e7e27e
Commit
a3e7e27e
authored
3 years ago
by
R D Schaffer
Browse files
Options
Downloads
Patches
Plain Diff
removing comments from BFieldMesh.h
parent
28c895c0
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MagneticField/MagFieldElements/MagFieldElements/BFieldMesh.h
+16
-13
16 additions, 13 deletions
MagneticField/MagFieldElements/MagFieldElements/BFieldMesh.h
with
16 additions
and
13 deletions
MagneticField/MagFieldElements/MagFieldElements/BFieldMesh.h
+
16
−
13
View file @
a3e7e27e
...
...
@@ -8,12 +8,15 @@
*
* A 3-d mesh (axes z,r,phi) representing a simple field map.
*
* The mesh is made up
o
f 'cells'
.
*
There are nz x n
r
x
nphi
cells.
*
Each cell holds z, r, phi and the field at each of its 8 corner
s.
* The mesh is made up f
rom
'cells'
*
We hold numz, num
r
,
n
um
phi
positions defining
*
the corners of the cell
s.
*
* The field type is templated - it may be short (for general use)
* or double (for a special case of a tilting solenoid field in class BFieldSolenoid)
* Then we have
* numz X numr X numphi field values at these corners
*
* The field type is templated - it may be short (for the toroid)
* or double (for the solenoid)
*
* Masahiro Morii, Harvard University
*
...
...
@@ -65,11 +68,11 @@ public:
void
reserve
(
int
nz
,
int
nr
,
int
nphi
,
int
nfield
);
/** @brief allocate space to vectors */
void
reserve
(
int
nz
,
int
nr
,
int
nphi
);
/** @brief add a position for a cell corner for an axis
(0=z, 1=r, 2=phi)
*/
/** @brief add a position for a cell corner for an axis */
void
appendMesh
(
int
axis
,
double
value
);
/** @brief append a fi
e
ld vector
(in z, r, phi) for a corner
*/
/** @brief append a fil
e
d vector */
void
appendField
(
const
BFieldVector
<
T
>&
field
);
/** @brief build Look Up Table
for the BFieldCache
*/
/** @brief build Look Up Table*/
void
buildLUT
();
/* @brief test if a point is inside this mesh*/
bool
inside
(
double
z
,
double
r
,
double
phi
)
const
;
...
...
@@ -83,9 +86,9 @@ public:
void
getB
(
const
double
*
ATH_RESTRICT
xyz
,
double
*
ATH_RESTRICT
B
,
double
*
ATH_RESTRICT
deriv
=
nullptr
)
const
;
/* @brief minimum in axis
(0=z, 1=r, 2=phi)
*/
/* @brief minimum in axis*/
double
min
(
size_t
axis
)
const
;
/* @brief maximum in axis
(0=z, 1=r, 2=phi)
*/
/* @brief maximum in axis*/
double
max
(
size_t
axis
)
const
;
/* @brief minimum in z*/
double
zmin
()
const
;
...
...
@@ -99,11 +102,11 @@ public:
double
phimin
()
const
;
/* @brief maximum in phi*/
double
phimax
()
const
;
/* @brief number of corner cell coordinates for a
specific axis (0=z, 1=r, 2=phi)
*/
/* @brief number of corner cell coordinates for a
xis
*/
unsigned
nmesh
(
size_t
axis
)
const
;
/* @brief coordinate
value for the ith (index) corner of a specific axis (0=z, 1=r, 2=phi)
*/
/* @brief coordinate
at axis of cell corner
*/
double
mesh
(
size_t
axis
,
size_t
index
)
const
;
/* @brief field entries in mesh
(nz x nr x nphi)
*/
/* @brief field entries in mesh*/
unsigned
nfield
()
const
;
/* @brief field vector at cell corner at index*/
const
BFieldVector
<
T
>&
field
(
size_t
index
)
const
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment