|
Celeritas 0.7.0-dev.246+develop.67e9bdac
|
Interpolate a magnetic field vector on an x/y/z grid. More...
#include <CartMapField.covfie.hh>
Public Types | |
Type aliases | |
| using | real_type = float |
| using | Real3 = Array< celeritas::real_type, 3 > |
| using | FieldParamsRef = NativeCRef< CartMapFieldParamsData > |
Public Member Functions | |
| CartMapField (FieldParamsRef const &shared) | |
| Construct with the shared magnetic field map data. | |
| Real3 | operator() (Real3 const &pos) const |
| Calculate the magnetic field vector for the given position. | |
Interpolate a magnetic field vector on an x/y/z grid.
Calculate the magnetic field vector for the given position.
This does a 3-D interpolation on the input grid and reconstructs the magnetic field vector from the stored X, Y, Z components of the field. The result is in the native Celeritas unit system.