#include <MFGrid.h>
Public Types | |
typedef GloballyPositioned < float >::GlobalPoint | GlobalPoint |
typedef GloballyPositioned < float >::GlobalVector | GlobalVector |
typedef GloballyPositioned < float >::LocalPoint | LocalPoint |
typedef GloballyPositioned < float >::LocalVector | LocalVector |
Public Member Functions | |
virtual Dimensions | dimensions () const =0 |
virtual void | dump () const |
const GloballyPositioned< float > & | frame () const |
Local reference frame. | |
virtual LocalPoint | fromGridFrame (double a, double b, double c) const =0 |
find grid coordinates for point. For debugging and validation only. | |
virtual Indexes | index (const LocalPoint &p) const |
MFGrid (const GloballyPositioned< float > &vol) | |
virtual LocalPoint | nodePosition (int i, int j, int k) const =0 |
Position of node in local frame. | |
virtual LocalVector | nodeValue (int i, int j, int k) const =0 |
Field value at node. | |
virtual void | toGridFrame (const LocalPoint &p, double &a, double &b, double &c) const =0 |
find grid coordinates for point. For debugging and validation only. | |
virtual LocalVector | valueInTesla (const LocalPoint &p) const =0 |
Interpolated field value at given point. | |
virtual | ~MFGrid () |
Private Attributes | |
GloballyPositioned< float > | frame_ |
Virtual interface for a field provider that is based on interpolation on a regular grid.
typedef GloballyPositioned<float>::GlobalPoint MFGrid::GlobalPoint |
typedef GloballyPositioned<float>::GlobalVector MFGrid::GlobalVector |
typedef GloballyPositioned<float>::LocalPoint MFGrid::LocalPoint |
typedef GloballyPositioned<float>::LocalVector MFGrid::LocalVector |
MFGrid::MFGrid | ( | const GloballyPositioned< float > & | vol | ) | [inline, explicit] |
virtual Dimensions MFGrid::dimensions | ( | ) | const [pure virtual] |
Implemented in CylinderFromSectorMFGrid, GlobalGridWrapper, MFGrid3D, and ZReflectedMFGrid.
Referenced by ZReflectedMFGrid::dimensions(), and CylinderFromSectorMFGrid::dimensions().
virtual void MFGrid::dump | ( | void | ) | const [inline, virtual] |
Reimplemented in GlobalGridWrapper, RectangularCartesianMFGrid, RectangularCylindricalMFGrid, SpecialCylindricalMFGrid, TrapezoidalCartesianMFGrid, and TrapezoidalCylindricalMFGrid.
Definition at line 46 of file MFGrid.h.
{}
const GloballyPositioned<float>& MFGrid::frame | ( | ) | const [inline] |
Local reference frame.
Definition at line 65 of file MFGrid.h.
References frame_.
Referenced by SpecialCylindricalMFGrid::fromGridFrame(), RectangularCartesianMFGrid::RectangularCartesianMFGrid(), RectangularCylindricalMFGrid::RectangularCylindricalMFGrid(), SpecialCylindricalMFGrid::SpecialCylindricalMFGrid(), SpecialCylindricalMFGrid::toGridFrame(), TrapezoidalCartesianMFGrid::TrapezoidalCartesianMFGrid(), TrapezoidalCylindricalMFGrid::TrapezoidalCylindricalMFGrid(), TrapezoidalCylindricalMFGrid::uncheckedValueInTesla(), and GlobalGridWrapper::valueInTesla().
{ return frame_;}
virtual LocalPoint MFGrid::fromGridFrame | ( | double | a, |
double | b, | ||
double | c | ||
) | const [pure virtual] |
find grid coordinates for point. For debugging and validation only.
Implemented in CylinderFromSectorMFGrid, GlobalGridWrapper, RectangularCartesianMFGrid, RectangularCylindricalMFGrid, SpecialCylindricalMFGrid, TrapezoidalCartesianMFGrid, TrapezoidalCylindricalMFGrid, and ZReflectedMFGrid.
Referenced by MFGrid3D::nodePosition(), and MFGrid3D::valueInTesla().
virtual Indexes MFGrid::index | ( | const LocalPoint & | p | ) | const [inline, virtual] |
virtual LocalPoint MFGrid::nodePosition | ( | int | i, |
int | j, | ||
int | k | ||
) | const [pure virtual] |
Position of node in local frame.
Implemented in CylinderFromSectorMFGrid, GlobalGridWrapper, MFGrid3D, and ZReflectedMFGrid.
virtual LocalVector MFGrid::nodeValue | ( | int | i, |
int | j, | ||
int | k | ||
) | const [pure virtual] |
Field value at node.
Implemented in CylinderFromSectorMFGrid, GlobalGridWrapper, MFGrid3D, and ZReflectedMFGrid.
virtual void MFGrid::toGridFrame | ( | const LocalPoint & | p, |
double & | a, | ||
double & | b, | ||
double & | c | ||
) | const [pure virtual] |
find grid coordinates for point. For debugging and validation only.
Implemented in CylinderFromSectorMFGrid, GlobalGridWrapper, RectangularCartesianMFGrid, RectangularCylindricalMFGrid, SpecialCylindricalMFGrid, TrapezoidalCartesianMFGrid, TrapezoidalCylindricalMFGrid, and ZReflectedMFGrid.
Referenced by MFGrid3D::index().
virtual LocalVector MFGrid::valueInTesla | ( | const LocalPoint & | p | ) | const [pure virtual] |
Interpolated field value at given point.
Implemented in CylinderFromSectorMFGrid, GlobalGridWrapper, MFGrid3D, and ZReflectedMFGrid.
Referenced by CylinderFromSectorMFGrid::valueInTesla(), and ZReflectedMFGrid::valueInTesla().
GloballyPositioned<float> MFGrid::frame_ [private] |