22 if ( gridType == 1 || gridType == 2) {
40 double&
a,
double&
b,
double&
c)
const
42 throw MagLogicError (
"GlobalGridWrapper::toGridFrame not implemented yet");
47 throw MagLogicError (
"GlobalGridWrapper::fromGridFrame not implemented yet");
53 throw MagLogicError (
"GlobalGridWrapper::dimensions not implemented yet");
59 throw MagLogicError (
"GlobalGridWrapper::nodePosition not implemented yet");
65 throw MagLogicError (
"GlobalGridWrapper::nodeValue not implemented yet");
GlobalGridWrapper(const GloballyPositioned< float > &vol, const std::string &fileName)
void load(const std::string &name)
load grid binary file
virtual LocalVector nodeValue(int i, int j, int k) const
Field value at node.
virtual LocalPoint nodePosition(int i, int j, int k) const
Position of node in local frame.
virtual Dimensions dimensions() const
GloballyPositioned< float >::LocalPoint LocalPoint
int gridType()
returns value of GridType (and eventually prints the type + short description)
virtual LocalPoint fromGridFrame(double a, double b, double c) const
find grid coordinates for point. For debugging and validation only.
MagneticFieldGrid * theRealOne
GlobalPoint toGlobal(const LocalPoint &lp) const
GloballyPositioned< float >::GlobalPoint GlobalPoint
GloballyPositioned< float >::LocalVector LocalVector
const GloballyPositioned< float > & frame() const
Local reference frame.
virtual void toGridFrame(const LocalPoint &p, double &a, double &b, double &c) const
find grid coordinates for point. For debugging and validation only.
virtual LocalVector valueInTesla(const LocalPoint &p) const
Interpolated field value at given point.
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 ...