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;
#define addProfiling(name, descr)
Define profiling trigger with specified name and description string.
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)
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.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
bool always() const
Return true if the control will always execute - ie, no intervention.
Reading required, file watched for runTime modification.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
const Time & time() const
Return Time associated with the objectRegistry.
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'.
Defines the attributes of an object for which implicit objectRegistry management is supported...
virtual bool controlledUpdate()
Update the mesh if controller permits.