Virtual base class for function objects with a reference to Time. More...


Public Member Functions | |
| timeFunctionObject (const word &name, const Time &runTime) | |
| Construct from Time. More... | |
| virtual | ~timeFunctionObject ()=default |
| Destructor. More... | |
| const Time & | time () const |
| Return time database. More... | |
| objectRegistry & | storedObjects () |
| Write access to the output objects ("functionObjectObjects") registered on Time. More... | |
| const objectRegistry & | storedObjects () const |
| Const access to the output objects ("functionObjectObjects") registered on Time. More... | |
Public Member Functions inherited from functionObject | |
| declareRunTimeSelectionTable (autoPtr, functionObject, dictionary,(const word &name, const Time &runTime, const dictionary &dict),(name, runTime, dict)) | |
| functionObject (const word &name, const bool withNamePrefix=defaultUseNamePrefix) | |
| Construct from components. More... | |
| autoPtr< functionObject > | clone () const |
| Return clone. More... | |
| virtual | ~functionObject ()=default |
| Destructor. More... | |
| virtual const word & | type () const =0 |
| Runtime type information. More... | |
| const word & | name () const noexcept |
| Return the name of this functionObject. More... | |
| bool | useNamePrefix () const noexcept |
| Return the flag for adding a scoping name prefix. More... | |
| bool | useNamePrefix (bool on) noexcept |
| Modify the flag for adding a scoping name prefix. More... | |
| virtual bool | read (const dictionary &dict) |
| Read and set the function object if its data have changed. More... | |
| virtual bool | execute ()=0 |
| Called at each ++ or += of the time-loop. More... | |
| virtual bool | execute (const label subIndex) |
| Execute using the specified subIndex. More... | |
| virtual bool | write ()=0 |
| Called at each ++ or += of the time-loop. More... | |
| virtual bool | end () |
| Called when Time::run() determines that the time-loop exits. More... | |
| virtual bool | adjustTimeStep () |
| Called at the end of Time::adjustDeltaT() if adjustTime is true. More... | |
| virtual bool | filesModified () const |
| Did any file get changed during execution? More... | |
| virtual void | updateMesh (const mapPolyMesh &mpm) |
| Update for changes of mesh. More... | |
| virtual void | movePoints (const polyMesh &mesh) |
| Update for changes of mesh. More... | |
Protected Member Functions | |
| void | clearOutputObjects (const wordList &objNames) |
| Remove specified items from "functionObjectObjects". More... | |
| timeFunctionObject (const timeFunctionObject &)=delete | |
| No copy construct. More... | |
| void | operator= (const timeFunctionObject &)=delete |
| No copy assignment. More... | |
Protected Member Functions inherited from functionObject | |
| word | scopedName (const word &name) const |
| Return a scoped (prefixed) name. More... | |
Protected Attributes | |
| const Time & | time_ |
| Reference to the time database. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from functionObject | |
| static autoPtr< functionObject > | New (const word &name, const Time &runTime, const dictionary &dict) |
| Select from dictionary, based on its "type" entry. More... | |
Public Attributes inherited from functionObject | |
| bool | log |
| Flag to write log into Info. More... | |
Static Public Attributes inherited from functionObject | |
| static int | debug |
| Flag to execute debug content. More... | |
| static bool | postProcess |
| Global post-processing mode switch. More... | |
| static bool | defaultUseNamePrefix |
| Global default for useNamePrefix. More... | |
| static word | outputPrefix |
| Directory prefix. More... | |
Virtual base class for function objects with a reference to Time.
Definition at line 52 of file timeFunctionObject.H.
|
protecteddelete |
No copy construct.
| timeFunctionObject | ( | const word & | name, |
| const Time & | runTime | ||
| ) |
Construct from Time.
Definition at line 27 of file timeFunctionObject.C.
|
virtualdefault |
Destructor.
|
protected |
Remove specified items from "functionObjectObjects".
Definition at line 40 of file timeFunctionObject.C.
References objectRegistry::checkOut().

|
protecteddelete |
No copy assignment.
|
inline |
Return time database.
Definition at line 106 of file timeFunctionObject.H.
References timeFunctionObject::time_.
Referenced by runTimeControl::execute().

| Foam::objectRegistry & storedObjects | ( | ) |
Write access to the output objects ("functionObjectObjects") registered on Time.
Definition at line 56 of file timeFunctionObject.C.
References timeFunctionObject::time_.
Referenced by regionFunctionObject::obr(), and surfaceFieldValue::obr().

| const Foam::objectRegistry & storedObjects | ( | ) | const |
Const access to the output objects ("functionObjectObjects") registered on Time.
Definition at line 63 of file timeFunctionObject.C.
|
protected |
Reference to the time database.
Definition at line 63 of file timeFunctionObject.H.
Referenced by setTimeStepFaRegionsFunctionObject::adjustTimeStep(), setTimeStepFunctionObject::adjustTimeStep(), runTimeControl::execute(), forces::force(), codedFunctionObject::libs(), multiRegion::read(), abort::read(), stateFunctionObject::stateDict(), timeFunctionObject::storedObjects(), and timeFunctionObject::time().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.