44 void Foam::dynamicFvMesh::readDict()
61 if (!timeControl_.
always())
64 Info<<
"Controlled mesh update triggered on " 65 << timeControl_.
type() <<
" interval " 79 Foam::dynamicFvMesh::dynamicFvMesh(
const IOobject&
io,
const bool doInit)
82 timeControl_(
io.time(),
"update")
105 Foam::dynamicFvMesh::dynamicFvMesh
119 Foam::dynamicFvMesh::dynamicFvMesh
135 std::move(allNeighbour),
138 timeControl_(
io.time(),
"update")
144 Foam::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;
void clear()
Reset control to 'always' - ie, no intervention.
void read(const dictionary &dict)
Read from dictionary.
IOdictionary(const IOobject &io, const dictionary *fallback=nullptr)
Construct given an IOobject and optional fallback dictionary content.
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 ...
virtual bool init(const bool doInit)
Initialise all non-demand-driven data.
Ignore writing from objectRegistry::writeObject()
const Time & time() const
Return the top-level database.
virtual const objectRegistry & thisDb() const
Return the object registry - resolve conflict polyMesh/lduMesh.
bool always() const
Return true if the control will always execute - ie, no intervention.
const Time & time() const noexcept
Return Time associated with the objectRegistry.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
scalar interval() const
Return interval.
Mesh data needed to do the Finite Volume discretisation.
IOobject(const IOobject &)=default
Copy construct.
virtual bool init(const bool doInit)
Initialise all non-demand-driven data.
messageStream Info
Information stream (stdout output on master, null elsewhere)
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
const word & type() const
Return the named control enumeration as its 'type'.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
Defines the attributes of an object for which implicit objectRegistry management is supported...
Do not request registration (bool: false)
virtual bool controlledUpdate()
Update the mesh if controller permits.