59Foam::dynamicMotionSolverTopoFvMesh::dynamicMotionSolverTopoFvMesh
107 Info <<
"Executing mesh topology update" <<
endl;
108 motionPtr_->updateMesh(topoChangeMap());
112 pointField newPoints(motionPtr_->newPoints());
113 movePoints(newPoints);
118 osOld.write(oldPoints());
127 pointField newPoints(motionPtr_->newPoints());
130 Info <<
"Executing mesh motion" <<
endl;
131 movePoints(newPoints);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
An OFstream that keeps track of vertices and provides convenience output methods for OBJ files.
virtual Ostream & write(const char c) override
Write character.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Abstract base class for geometry and/or topology changing fvMesh.
virtual bool init(const bool doInit)
Initialise all non-demand-driven data.
Sample topoChangerFvMesh that moves an object using a motion solver.
virtual bool init(const bool doInit)
Initialise all non-demand-driven data.
virtual bool update()
Update the mesh for both mesh motion and topology change.
virtual ~dynamicMotionSolverTopoFvMesh()
Destructor.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
DimensionedField< scalar, volMesh > & setV0()
Return old-time cell volumes.
const Time & time() const
Return the top-level database.
virtual void movePoints(const pointField &)
Move points, returns volumes swept by faces in motion.
static autoPtr< motionSolver > New(const polyMesh &)
Select constructed from polyMesh.
bool moving() const noexcept
Is mesh moving.
virtual const pointField & oldPoints() const
Return old points (mesh motion).
Abstract base class for a topology changing fvMesh.
polyTopoChanger topoChanger_
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Namespace for handling debugging switches.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
vectorField pointField
pointField is a vectorField.