Virtual base class for mesh movers with externally provided displacement field giving the boundary conditions. Move the mesh from the current location to a new location (so modify the mesh; v.s. motionSolver that only returns the new location). More...
Public Member Functions | |
TypeName ("externalDisplacementMeshMover") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, externalDisplacementMeshMover, dictionary,(const dictionary &dict, const List< labelPair > &baffles, pointVectorField &pointDisplacement),(dict, baffles, pointDisplacement)) | |
externalDisplacementMeshMover (const dictionary &dict, const List< labelPair > &baffles, pointVectorField &pointDisplacement) | |
Construct from dictionary and displacement field. Dictionary is. More... | |
virtual | ~externalDisplacementMeshMover () |
Destructor. More... | |
pointVectorField & | pointDisplacement () |
Return reference to the point motion displacement field. More... | |
const pointVectorField & | pointDisplacement () const |
Return const reference to the point motion displacement field. More... | |
const pointMesh & | pMesh () const |
const polyMesh & | mesh () const |
virtual bool | move (const dictionary &, const label nAllowableErrors, labelList &checkFaces)=0 |
Move mesh using current pointDisplacement boundary values. More... | |
virtual void | movePoints (const pointField &) |
Update local data for geometry changes. More... | |
virtual void | updateMesh (const mapPolyMesh &) |
Update local data for topology changes. More... | |
Static Public Member Functions | |
static autoPtr< externalDisplacementMeshMover > | New (const word &type, const dictionary &dict, const List< labelPair > &baffles, pointVectorField &pointDisplacement) |
Return a reference to the selected meshMover model. More... | |
Static Protected Member Functions | |
static labelList | getFixedValueBCs (const pointVectorField &) |
Extract fixed-value patchfields. More... | |
static autoPtr< indirectPrimitivePatch > | getPatch (const polyMesh &, const labelList &) |
Construct patch on selected patches. More... | |
Protected Attributes | |
List< labelPair > | baffles_ |
Baffles in the mesh. More... | |
pointVectorField & | pointDisplacement_ |
Reference to point motion field. More... | |
Private Member Functions | |
externalDisplacementMeshMover (const externalDisplacementMeshMover &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const externalDisplacementMeshMover &) |
Disallow default bitwise assignment. More... | |
Virtual base class for mesh movers with externally provided displacement field giving the boundary conditions. Move the mesh from the current location to a new location (so modify the mesh; v.s. motionSolver that only returns the new location).
All mesh movers are expected to read the dictionary settings at invocation of move(), i.e. not cache any settings.
Definition at line 56 of file externalDisplacementMeshMover.H.
|
private |
Disallow default bitwise copy construct.
externalDisplacementMeshMover | ( | const dictionary & | dict, |
const List< labelPair > & | baffles, | ||
pointVectorField & | pointDisplacement | ||
) |
Construct from dictionary and displacement field. Dictionary is.
allowed to go out of scope!
Definition at line 120 of file externalDisplacementMeshMover.C.
|
virtual |
Destructor.
Definition at line 166 of file externalDisplacementMeshMover.C.
|
staticprotected |
Extract fixed-value patchfields.
Definition at line 42 of file externalDisplacementMeshMover.C.
References DynamicList::append(), GeometricField::boundaryField(), forAll, and Foam::isA().
|
staticprotected |
Construct patch on selected patches.
Definition at line 73 of file externalDisplacementMeshMover.C.
References forAll, mesh, patches, and polyPatch::start().
|
private |
Disallow default bitwise assignment.
TypeName | ( | "externalDisplacementMeshMover" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
externalDisplacementMeshMover | , | ||
dictionary | , | ||
(const dictionary &dict, const List< labelPair > &baffles, pointVectorField &pointDisplacement) | , | ||
(dict, baffles, pointDisplacement) | |||
) |
|
static |
Return a reference to the selected meshMover model.
Definition at line 135 of file externalDisplacementMeshMover.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, Foam::nl, and Foam::type().
Referenced by autoLayerDriver::addLayers(), and displacementMeshMoverMotionSolver::meshMover().
|
inline |
Return reference to the point motion displacement field.
Definition at line 151 of file externalDisplacementMeshMover.H.
References externalDisplacementMeshMover::pointDisplacement_.
Referenced by medialAxisMeshMover::update().
|
inline |
Return const reference to the point motion displacement field.
Definition at line 157 of file externalDisplacementMeshMover.H.
References externalDisplacementMeshMover::pointDisplacement_.
|
inline |
Definition at line 162 of file externalDisplacementMeshMover.H.
References externalDisplacementMeshMover::pointDisplacement_.
Referenced by externalDisplacementMeshMover::mesh().
|
inline |
Definition at line 167 of file externalDisplacementMeshMover.H.
References externalDisplacementMeshMover::pMesh().
Referenced by medialAxisMeshMover::update().
|
pure virtual |
Move mesh using current pointDisplacement boundary values.
and current dictionary settings. Return true if succesful (errors on checkFaces less than allowable). Updates pointDisplacement.
Implemented in medialAxisMeshMover, and displacementMotionSolverMeshMover.
|
virtual |
Update local data for geometry changes.
Reimplemented in medialAxisMeshMover, and displacementMotionSolverMeshMover.
Definition at line 172 of file externalDisplacementMeshMover.C.
Referenced by displacementMotionSolverMeshMover::movePoints(), and medialAxisMeshMover::movePoints().
|
virtual |
Update local data for topology changes.
Reimplemented in medialAxisMeshMover, and displacementMotionSolverMeshMover.
Definition at line 178 of file externalDisplacementMeshMover.C.
References DynamicList::append(), f1, forAll, mapPolyMesh::reverseFaceMap(), and DynamicList::shrink().
Baffles in the mesh.
Definition at line 63 of file externalDisplacementMeshMover.H.
|
protected |
Reference to point motion field.
Definition at line 66 of file externalDisplacementMeshMover.H.
Referenced by externalDisplacementMeshMover::pMesh(), and externalDisplacementMeshMover::pointDisplacement().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.