OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
Base class for meshing routines. More...
#include <Mesh.h>
Classes | |
class | Iterator |
Public Member Functions | |
Mesh () | |
virtual Mesh::Iterator | begin () const =0 |
virtual Mesh::Iterator | end () const =0 |
virtual Mesh * | clone ()=0 |
virtual Mesh * | dual () const =0 |
virtual | ~Mesh () |
virtual void | getPosition (const Mesh::Iterator &it, double *position) const =0 |
virtual int | getPositionDimension () const =0 |
virtual int | toInteger (const Mesh::Iterator &lhs) const =0 |
virtual Mesh::Iterator | getNearest (const double *position) const =0 |
Protected Member Functions | |
virtual Mesh::Iterator & | addEquals (Mesh::Iterator &lhs, int difference) const =0 |
virtual Mesh::Iterator & | subEquals (Mesh::Iterator &lhs, int difference) const =0 |
virtual Mesh::Iterator & | addEquals (Mesh::Iterator &lhs, const Mesh::Iterator &rhs) const =0 |
virtual Mesh::Iterator & | subEquals (Mesh::Iterator &lhs, const Mesh::Iterator &rhs) const =0 |
virtual Mesh::Iterator & | addOne (Mesh::Iterator &lhs) const =0 |
virtual Mesh::Iterator & | subOne (Mesh::Iterator &lhs) const =0 |
virtual bool | isGreater (const Mesh::Iterator &lhs, const Mesh::Iterator &rhs) const =0 |
Base class for meshing routines.
Aim is to describe a set of points in various dimensions etc for use in interpolation routines. Concrete classes are TwoDGrid, ThreeDGrid, NDGrid and TriangularMesh (two dimensional delaunay mesh).
Iterator is defined for easy access to all member data (e.g. for IO) but no const_iterator type.
|
inline |
Constructor (does nothing)
|
inlinevirtual |
Destructor - does nothing
|
protectedpure virtual |
Add difference to lhs and then return lhs
Implemented in interpolation::ThreeDGrid, and interpolation::NDGrid.
|
protectedpure virtual |
Add difference to lhs and then return lhs
Implemented in interpolation::ThreeDGrid, and interpolation::NDGrid.
|
protectedpure virtual |
Increment position of lhs by one and then return lhs
Implemented in interpolation::ThreeDGrid, and interpolation::NDGrid.
|
pure virtual |
Return the first point on the mesh
Implemented in interpolation::ThreeDGrid, and interpolation::NDGrid.
Referenced by interpolation::PPSolveFactory::outOfBoundsPosition(), and interpolation::PPSolveFactory::solve().
|
pure virtual |
Return a copy of child object
Implemented in interpolation::ThreeDGrid, and interpolation::NDGrid.
Referenced by interpolation::PolynomialPatch::clone().
|
pure virtual |
Return the "Dual" of the mesh or NULL if not implemented
Dual is a polyhedron that has centre of each face as a point on the mesh
Implemented in interpolation::ThreeDGrid, and interpolation::NDGrid.
Referenced by interpolation::PPSolveFactory::PPSolveFactory().
|
pure virtual |
Return the last+1 point on the mesh
Implemented in interpolation::ThreeDGrid, and interpolation::NDGrid.
Referenced by interpolation::PPSolveFactory::getDerivs(), interpolation::PPSolveFactory::getValues(), interpolation::PPSolveFactory::outOfBoundsPosition(), interpolation::PolynomialPatch::PolynomialPatch(), interpolation::PPSolveFactory::PPSolveFactory(), and interpolation::PPSolveFactory::solve().
|
pure virtual |
Find the point on the mesh nearest to given point
Implemented in interpolation::ThreeDGrid, and interpolation::NDGrid.
Referenced by interpolation::PolynomialPatch::function(), and interpolation::PolynomialPatch::getPolynomialVector().
|
pure virtual |
Return the position of a point in the mesh
Implemented in interpolation::ThreeDGrid, and interpolation::NDGrid.
|
pure virtual |
Return the dimension of the mesh
Implemented in interpolation::ThreeDGrid, and interpolation::NDGrid.
Referenced by interpolation::PPSolveFactory::getDerivPoints(), interpolation::PPSolveFactory::getPoints(), interpolation::PolynomialPatch::PolynomialPatch(), interpolation::PPSolveFactory::PPSolveFactory(), and interpolation::PPSolveFactory::solve().
|
protectedpure virtual |
Return true if rhs is greater than lhs
Implemented in interpolation::ThreeDGrid, and interpolation::NDGrid.
|
protectedpure virtual |
Subtract difference from lhs and then return lhs
Implemented in interpolation::ThreeDGrid, and interpolation::NDGrid.
|
protectedpure virtual |
Subtract difference from lhs and then return lhs
Implemented in interpolation::ThreeDGrid, and interpolation::NDGrid.
|
protectedpure virtual |
Decrement position of lhs by one and then return lhs
Implemented in interpolation::ThreeDGrid, and interpolation::NDGrid.
|
pure virtual |
Map from iterator to an integer used to index the iterator
Implemented in interpolation::ThreeDGrid, and interpolation::NDGrid.
|
friend |
Return true if lhs does not index the same position as rhs
|
friend |
Addition operator - adds rhs to lhs and returns copy of lhs
|
friend |
Addition operator - adds offset of rhs of rhs relative to Begin() to lhs
|
friend |
Prefix increment operator ++it
|
friend |
Postfix increment operator it++ advances iterator by one
|
friend |
Addition operator - subtracts rhs from lhs and returns lhs
|
friend |
Addition operator - adds offset of rhs of rhs relative to Begin() to lhs and returns lhs
|
friend |
Subtraction operator - subtracts from lhs and returns copy of lhs
|
friend |
Subtraction operator - subtracts offset of rhs relative to Begin() from lhs
|
friend |
Prefix decrement operator –it retreats iterator by one
|
friend |
Postfix decrement operator it– retreats iterator by one
|
friend |
Subtraction operator - subtracts rhs from lhs and returns lhs
|
friend |
Subtraction operator - subtracts offset of rhs relative to Begin() from lhs and returns lhs
|
friend |
Return true if lhs indexes a position less than rhs i.e. successive operation of decrement operator would eventually reach lhs
|
friend |
Return true if lhs indexes a position less than or equal to rhs i.e. successive operation of decrement operator would eventually reach lhs
|
friend |
Return true if lhs indexes the same position as rhs
|
friend |
Return true if lhs indexes a position greater than rhs i.e. successive operation of increment operator would eventually reach lhs
|
friend |
Return true if lhs indexes a position greater than or equal to rhs i.e. successive operation of increment operator would eventually reach lhs