34 namespace pointMeshMovers
72 if (!meshMoverPtr_.valid())
74 const word moverType(dict_.lookup(
"meshMover"));
84 return meshMoverPtr_();
93 movePoints(poly().
points());
96 pointDisplacement().boundaryFieldRef().updateCoeffs();
98 label nAllowableErrors = 0;
108 pointDisplacement().correctBoundaryConditions();
122 if (meshMoverPtr_.valid())
124 meshMover().movePoints(
p);
137 meshMoverPtr_.clear();
Macros for easy insertion into run-time selection tables.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base class for mesh movers with externally provided displacement field giving the boundary c...
static autoPtr< externalDisplacementMeshMover > New(const word &type, const dictionary &dict, const List< labelPair > &baffles, pointVectorField &pointDisplacement)
Return a reference to the selected meshMover model.
static labelPairList findDuplicateFacePairs(const polyMesh &)
Helper routine to find all baffles (two boundary faces.
Abstract base class for pointMesh movers.
virtual void topoChange(const polyTopoChangeMap &)
Update local data for topology changes.
virtual void movePoints(const pointField &)
Update local data for geometry changes.
Abstract base class for displacement pointMesh movers.
Mesh motion solver for an fvMesh. Based on solving the cell-centre Laplacian for the motion displacem...
~externalDisplacement()
Destructor.
virtual void topoChange(const polyTopoChangeMap &)
Update topology.
virtual tmp< pointField > newPoints()
Return point location obtained from the current motion field.
externalDisplacementMeshMover & meshMover() const
virtual void movePoints(const pointField &)
Update local data for geometry changes.
externalDisplacement(const polyMesh &, const dictionary &)
Construct from polyMesh and dictionary.
Mesh consisting of general polyhedral cells.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A class for managing temporary objects.
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
addToRunTimeSelectionTable(pointMeshMover, externalDisplacement, dictionary)
defineTypeNameAndDebug(externalDisplacement, 0)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
labelList identityMap(const label len)
Create identity map (map[i] == i) of given length.