44void Foam::dynamicFvMesh::readDict()
61 if (!timeControl_.
always())
64 Info<<
"Controlled mesh update triggered on "
65 << timeControl_.
type() <<
" interval "
79Foam::dynamicFvMesh::dynamicFvMesh(
const IOobject&
io,
const bool doInit)
82 timeControl_(
io.time(),
"update")
105Foam::dynamicFvMesh::dynamicFvMesh
113 timeControl_(
io.
time(),
"update")
119Foam::dynamicFvMesh::dynamicFvMesh
135 std::move(allNeighbour),
138 timeControl_(
io.
time(),
"update")
144Foam::dynamicFvMesh::dynamicFvMesh
161 timeControl_(
io.
time(),
"update")
169 if (timeControl_.execute())
171 if (!timeControl_.always())
174 Info<<
"Mesh update triggered based on "
175 << timeControl_.type() <<
nl;
IOdictionary(const IOobject &io, const dictionary *fallback=nullptr)
Construct given an IOobject and optional fallback dictionary content.
@ NO_REGISTER
Do not request registration (bool: false).
@ MUST_READ
Reading required.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Abstract base class for geometry and/or topology changing fvMesh.
virtual bool controlledUpdate()
Update the mesh if controller permits.
virtual bool init(const bool doInit)
Initialise all non-demand-driven data.
Mesh data needed to do the Finite Volume discretisation.
virtual const objectRegistry & thisDb() const
Return the object registry - resolve conflict polyMesh/lduMesh.
const Time & time() const
Return the top-level database.
virtual bool init(const bool doInit)
Initialise all non-demand-driven data.
fvMesh(const fvMesh &)=delete
No copy construct.
constant condensation/saturation model.
virtual const faceList & faces() const
Return raw faces.
virtual const pointField & points() const
Return raw points.
const cellList & cells() const
scalar interval() const
Return interval.
void read(const dictionary &dict)
Read from dictionary.
bool always() const
Return true if the control will always execute - ie, no intervention.
const word & type() const
Return the named control enumeration as its 'type'.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
List< label > labelList
A List of labels.
messageStream Info
Information stream (stdout output on master, null elsewhere).
List< face > faceList
List of faces.
List< cell > cellList
List of cell.
vectorField pointField
pointField is a vectorField.
constexpr char nl
The newline '\n' character (0x0a).
#define addProfiling(Name,...)
Define profiling trigger with specified name and description string. The description is generated by ...
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.