70 if (!meshMoverPtr_.valid())
72 const word moverType(coeffDict().lookup(
"meshMover"));
77 coeffDict().optionalSubDict(moverType +
"Coeffs"),
82 return meshMoverPtr_();
99 movePoints(mesh().
points());
102 pointDisplacement().boundaryFieldRef().updateCoeffs();
104 label nAllowableErrors = 0;
108 coeffDict().optionalSubDict(meshMover().
type() +
"Coeffs"),
114 pointDisplacement().correctBoundaryConditions();
123 if (meshMoverPtr_.valid())
125 meshMover().movePoints(
p);
138 meshMoverPtr_.clear();
Macros for easy insertion into run-time selection tables.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh motion solver for an fvMesh. Based on solving the cell-centre Laplacian for the motion displacem...
virtual tmp< pointField > curPoints() const
Return point location obtained from the current motion field.
~displacementMeshMoverMotionSolver()
Destructor.
virtual void topoChange(const polyTopoChangeMap &)
Update topology.
displacementMeshMoverMotionSolver(const word &name, const polyMesh &, const dictionary &)
Construct from polyMesh and dictionary.
externalDisplacementMeshMover & meshMover() const
virtual void movePoints(const pointField &)
Update local data for geometry changes.
virtual void solve()
Solve for motion.
Virtual base class for displacement motion solver.
Virtual base class for mesh movers with externally provided displacement field giving the boundary co...
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.
Virtual base class for mesh motion solver.
virtual void topoChange(const polyTopoChangeMap &)
Update local data for topology changes.
virtual void movePoints(const pointField &)
Update local data for geometry changes.
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.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
word name(const bool)
Return a word representation of a bool.
vectorField pointField
pointField is a vectorField.
defineTypeNameAndDebug(combustionModel, 0)
labelList identityMap(const label len)
Create identity map (map[i] == i) of given length.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.