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"),
74 if (!foPtr_->executeAtStart())
86 return foPtr_->fields();
92 return foPtr_->executeAtStart();
98 if (executeControl_.active() && (postProcess || executeControl_.execute()))
109 if (writeControl_.active() && (postProcess || writeControl_.execute()))
120 if (executeControl_.execute() || writeControl_.execute())
133 executeControl_.timeToNextAction(),
134 writeControl_.timeToNextAction()
141 writeControl_.read(
dict);
142 executeControl_.read(
dict);
155 foPtr_->movePoints(
mesh);
164 foPtr_->topoChange(map);
173 foPtr_->mapMesh(map);
182 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.
bool execute()
Flag to indicate whether to execute.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
dimensioned< Type > min(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
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)