36 namespace functionObjects
45 bool Foam::functionObjects::timeControl::active()
const
47 return executeControl_.
active() || writeControl_.
active();
62 executeControl_(t,
dict,
"execute"),
63 writeControl_(t,
dict,
"write"),
75 return foPtr_->fields();
81 return foPtr_->executeAtStart();
89 executeControl_.active()
92 || executeControl_.execute()
93 || (executeAtStart() && time_.timeIndex() == time_.startTimeIndex())
108 writeControl_.active()
111 || writeControl_.execute()
112 || (executeAtStart() && time_.timeIndex() == time_.startTimeIndex())
125 if (executeControl_.execute() || writeControl_.execute())
138 executeControl_.timeToNextAction(),
139 writeControl_.timeToNextAction()
146 writeControl_.read(
dict);
147 executeControl_.read(
dict);
162 foPtr_->movePoints(
mesh);
174 foPtr_->topoChange(map);
186 foPtr_->mapMesh(map);
198 foPtr_->distribute(map);
Macros for easy insertion into run-time selection tables.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base-class for Time/database functionObjects.
General time control for functionObjects.
virtual wordList fields() const
Return the list of fields required.
timeControl(const word &name, const Time &, const dictionary &)
Construct from components.
virtual bool executeAtStart() const
Return true if the functionObject should be executed.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
virtual void movePoints(const polyMesh &mesh)
Update topology using the given map.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual scalar timeToNextAction()
Return the time to the next execute or write.
virtual bool execute()
Called at each ++ or += of the time-loop.
virtual void topoChange(const polyTopoChangeMap &map)
Update topology using the given map.
virtual bool write()
Called at each ++ or += of the time-loop.
virtual bool end()
Called when Time::run() determines that the time-loop exits.
virtual bool read(const dictionary &)
Read and set the function object if its data have changed.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Mesh consisting of general polyhedral cells.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
void read(const dictionary &)
Read from dictionary.
bool active() const
Returns true the time is within the start to end period.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)