Templated abstract base-class for optional mesh objects used to automate their allocation to the mesh database and the mesh-modifier event-loop. More...
Public Member Functions | |
MeshObject (const Mesh &mesh) | |
virtual | ~MeshObject ()=default |
const Mesh & | mesh () const |
virtual bool | writeData (Ostream &os) const |
Static Public Member Functions | |
template<class... Args> | |
static const Type & | New (const Mesh &mesh, Args &&... args) |
static bool | Delete (const Mesh &mesh) |
Protected Attributes | |
const Mesh & | mesh_ |
Templated abstract base-class for optional mesh objects used to automate their allocation to the mesh database and the mesh-modifier event-loop.
MeshObject is templated on the type of mesh it is allocated to, the type of the mesh object (TopologicalMeshObject, GeometricMeshObject, MoveableMeshObject, UpdateableMeshObject) and the type of the actual object it is created for example:
class leastSquaresVectors : public MeshObject<fvMesh, MoveableMeshObject, leastSquaresVectors> { . . . //- Delete the least square vectors when the mesh moves virtual bool movePoints(); };
MeshObject types:
Definition at line 84 of file MeshObject.H.
|
explicit |
Definition at line 29 of file MeshObject.C.
|
virtualdefault |
|
static |
Definition at line 41 of file MeshObject.C.
Referenced by dynamicOversetFvMesh::addInterpolation(), CentredFitScheme< Type, Polynomial, Stencil >::correction(), CentredFitSnGradScheme< Type, Polynomial, Stencil >::correction(), PureUpwindFitScheme< Type, Polynomial, Stencil >::correction(), UpwindFitScheme< Type, Polynomial, Stencil >::correction(), dynamicOversetFvMesh::init(), dynamicOversetFvMesh::interpolate(), dynamicOversetFvMesh::interpolateFields(), gravity::New(), dynamicOversetFvMesh::normalisation(), LeastSquaresVectors< Stencil >::stencil(), dynamicOversetFvMesh::updateAddressing(), and dynamicOversetFvMesh::writeObject().
|
static |
Definition at line 75 of file MeshObject.C.
|
inline |
Definition at line 118 of file MeshObject.H.
Referenced by faMesh::mesh(), and uniformInterpolatedDisplacementPointPatchVectorField::uniformInterpolatedDisplacementPointPatchVectorField().
Definition at line 123 of file MeshObject.H.
|
protected |
Definition at line 92 of file MeshObject.H.
Referenced by MeshObject< fvMesh, TopologicalMeshObject, zoneCPCStencil >::mesh().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.