Go to the documentation of this file.
17 if (gridType == 1 || gridType == 2) {
34 throw MagLogicError(
"GlobalGridWrapper::toGridFrame not implemented yet");
38 throw MagLogicError(
"GlobalGridWrapper::fromGridFrame not implemented yet");
43 throw MagLogicError(
"GlobalGridWrapper::dimensions not implemented yet");
48 throw MagLogicError(
"GlobalGridWrapper::nodePosition not implemented yet");
53 throw MagLogicError(
"GlobalGridWrapper::nodeValue not implemented yet");
int gridType()
returns value of GridType (and eventually prints the type + short description)
LocalVector valueInTesla(const LocalPoint &p) const override
Interpolated field value at given point.
LocalPoint nodePosition(int i, int j, int k) const override
Position of node in local frame.
GlobalGridWrapper(const GloballyPositioned< float > &vol, const std::string &fileName)
GloballyPositioned< float >::LocalVector LocalVector
Dimensions dimensions() const override
const GloballyPositioned< float > & frame() const
Local reference frame.
void dump() const override
GloballyPositioned< float >::LocalPoint LocalPoint
LocalVector nodeValue(int i, int j, int k) const override
Field value at node.
LocalPoint fromGridFrame(double a, double b, double c) const override
find grid coordinates for point. For debugging and validation only.
void toGridFrame(const LocalPoint &p, double &a, double &b, double &c) const override
find grid coordinates for point. For debugging and validation only.
void load(const std::string &name)
load grid binary file
MagneticFieldGrid * theRealOne
void interpolateAtPoint(double X1, double X2, double X3, float &Bx, float &By, float &Bz)
interpolates the magnetic field at input coordinate point and returns field values
GlobalPoint toGlobal(const LocalPoint &lp) const
GloballyPositioned< float >::GlobalPoint GlobalPoint