42 displacementMeshMoverMotionSolver,
50 Foam::displacementMeshMoverMotionSolver::displacementMeshMoverMotionSolver
75 const word moverType(coeffDict().get<word>(
"meshMover"));
80 coeffDict().optionalSubDict(moverType +
"Coeffs"),
85 return *meshMoverPtr_;
105 pointDisplacement().boundaryFieldRef().updateCoeffs();
107 label nAllowableErrors = 0;
111 coeffDict().optionalSubDict(meshMover().
type() +
"Coeffs"),
117 pointDisplacement().correctBoundaryConditions();
128 meshMover().movePoints(
p);
135 const mapPolyMesh& map
141 meshMoverPtr_.clear();
Virtual base class for displacement motion solver.
virtual void updateMesh(const mapPolyMesh &)
Update topology.
virtual void solve()
Solve for motion.
Macros for easy insertion into run-time selection tables.
static labelPairList findDuplicateFacePairs(const polyMesh &)
Helper routine to find all baffles (two boundary faces.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
~displacementMeshMoverMotionSolver()
Destructor.
virtual tmp< pointField > curPoints() const
Return point location obtained from the current motion field.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
labelList identity(const label len, label start=0)
Return an identity map of the given length with (map[i] == i)
A class for handling words, derived from Foam::string.
virtual void movePoints(const pointField &)
Update local data for geometry changes.
externalDisplacementMeshMover & meshMover() const
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
virtual void updateMesh(const mapPolyMesh &)
Update local data for topology changes.
virtual void movePoints(const pointField &)
Update local data for geometry changes.
defineTypeNameAndDebug(combustionModel, 0)
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
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, const bool dryRun=false)
Return a reference to the selected meshMover model.
Mesh consisting of general polyhedral cells.
A class for managing temporary objects.