215#ifndef Foam_functionObject_H
216#define Foam_functionObject_H
305 autoPtr<functionObject>
clone()
const
315 static autoPtr<functionObject>
New
330 virtual const word&
type()
const = 0;
354 virtual
bool execute(const label subIndex);
359 virtual
bool write() = 0;
397 void carp(std::string message =
"")
const;
408 virtual bool write();
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract functionObject to report when a real version is unavailable.
void carp(std::string message="") const
Report it is unavailable, emitting a FatalError for try/catch in the caller.
unavailableFunctionObject(const word &name)
Construct with name.
Abstract base-class for Time/database function objects.
const word & name() const noexcept
Return the name of this functionObject.
declareRunTimeSelectionTable(autoPtr, functionObject, dictionary,(const word &name, const Time &runTime, const dictionary &dict),(name, runTime, dict))
virtual bool filesModified() const
Did any file get changed during execution?
virtual void movePoints(const polyMesh &mesh)
Update for changes of mesh.
virtual bool execute()=0
Called at each ++ or += of the time-loop.
virtual bool read(const dictionary &dict)
Read and set the function object if its data have changed.
virtual bool adjustTimeStep()
Called at the end of Time::adjustDeltaT() if adjustTime is true.
static word outputPrefix
Directory prefix.
autoPtr< functionObject > clone() const
Return clone.
virtual void updateMesh(const mapPolyMesh &mpm)
Update for changes of mesh.
bool useNamePrefix() const noexcept
Return the flag for adding a scoping name prefix.
static bool defaultUseNamePrefix
Global default for useNamePrefix.
word scopedName(const word &name) const
Return a scoped (prefixed) name.
static int debug
Flag to execute debug content.
static bool postProcess
Global post-processing mode switch.
virtual const word & type() const =0
Runtime type information.
bool log
Flag to write log into Info.
static autoPtr< functionObject > New(const word &name, const Time &runTime, const dictionary &dict)
Select from dictionary, based on its "type" entry.
virtual ~functionObject()=default
Destructor.
functionObject(const word &name, const bool withNamePrefix=defaultUseNamePrefix)
Construct from components.
virtual bool end()
Called when Time::run() determines that the time-loop exits.
virtual bool write()=0
Called at each ++ or += of the time-loop.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Mesh consisting of general polyhedral cells.
A class for handling words, derived from Foam::string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes).
Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to c...