Abstract base-class for Time/database function objects. More...
Data Structures | |
class | iNew |
Return a pointer to a new functionObject created on freestore. More... | |
Public Member Functions | |
virtual const word & | type () const =0 |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, functionObject, dictionary,(const word &name, const Time &t, const dictionary &dict),(name, t, dict)) | |
functionObject (const word &name) | |
Construct from components. More... | |
autoPtr< functionObject > | clone () const |
Return clone. More... | |
virtual | ~functionObject () |
Destructor. More... | |
virtual const word & | name () const |
Name. More... | |
virtual bool | start ()=0 |
Called at the start of the time-loop. More... | |
virtual bool | execute (const bool forceWrite)=0 |
Called at each ++ or += of the time-loop. forceWrite overrides the. More... | |
virtual bool | end () |
Called when Time::run() determines that the time-loop exits. More... | |
virtual bool | timeSet () |
Called when time was set at the end of the Time::operator++. More... | |
virtual bool | adjustTimeStep () |
Called at the end of Time::adjustDeltaT() if adjustTime is true. More... | |
virtual bool | read (const dictionary &)=0 |
Read and set the function object if its data have changed. More... | |
virtual void | updateMesh (const mapPolyMesh &mpm)=0 |
Update for changes of mesh. More... | |
virtual void | movePoints (const polyMesh &mesh)=0 |
Update for changes of mesh. More... | |
Static Public Member Functions | |
static autoPtr< functionObject > | New (const word &name, const Time &, const dictionary &) |
Select from dictionary, based on its "type" entry. More... | |
Static Public Attributes | |
static int | debug |
Private Member Functions | |
functionObject (const functionObject &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const functionObject &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
const word | name_ |
Name. More... | |
Abstract base-class for Time/database function objects.
Definition at line 58 of file functionObject.H.
|
private |
Disallow default bitwise copy construct.
functionObject | ( | const word & | name | ) |
Construct from components.
Definition at line 42 of file functionObject.C.
|
virtual |
Destructor.
Definition at line 99 of file functionObject.C.
|
private |
Disallow default bitwise assignment.
|
pure virtual |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
functionObject | , | ||
dictionary | , | ||
(const word &name, const Time &t, const dictionary &dict) | , | ||
(name, t, dict) | |||
) |
|
inline |
|
static |
Select from dictionary, based on its "type" entry.
Definition at line 51 of file functionObject.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, dictionary::lookup(), Foam::name(), and Foam::nl.
Referenced by functionObject::iNew::operator()(), functionObjectList::read(), and codedFunctionObject::redirectFunctionObject().
|
virtual |
Name.
Definition at line 105 of file functionObject.C.
|
pure virtual |
Called at the start of the time-loop.
Implemented in externalCoupledFunctionObject, OutputFilterFunctionObject< OutputFilter >, codedFunctionObject, setTimeStepFunctionObject, and cudaGpu.
Referenced by functionObjectList::read().
|
pure virtual |
Called at each ++ or += of the time-loop. forceWrite overrides the.
outputControl behaviour.
Implemented in externalCoupledFunctionObject, OutputFilterFunctionObject< OutputFilter >, codedFunctionObject, setTimeStepFunctionObject, and cudaGpu.
|
virtual |
Called when Time::run() determines that the time-loop exits.
By default it simply calls execute().
Reimplemented in externalCoupledFunctionObject, OutputFilterFunctionObject< OutputFilter >, codedFunctionObject, and setTimeStepFunctionObject.
Definition at line 111 of file functionObject.C.
|
virtual |
Called when time was set at the end of the Time::operator++.
Reimplemented in externalCoupledFunctionObject, OutputFilterFunctionObject< OutputFilter >, codedFunctionObject, and setTimeStepFunctionObject.
Definition at line 117 of file functionObject.C.
|
virtual |
Called at the end of Time::adjustDeltaT() if adjustTime is true.
Reimplemented in externalCoupledFunctionObject, OutputFilterFunctionObject< OutputFilter >, and setTimeStepFunctionObject.
Definition at line 123 of file functionObject.C.
|
pure virtual |
Read and set the function object if its data have changed.
Implemented in externalCoupledFunctionObject, OutputFilterFunctionObject< OutputFilter >, codedFunctionObject, setTimeStepFunctionObject, and cudaGpu.
Referenced by functionObjectList::read().
|
pure virtual |
Update for changes of mesh.
Implemented in externalCoupledFunctionObject, OutputFilterFunctionObject< OutputFilter >, setTimeStepFunctionObject, cudaGpu, and codedFunctionObject.
|
pure virtual |
Update for changes of mesh.
Implemented in externalCoupledFunctionObject, OutputFilterFunctionObject< OutputFilter >, setTimeStepFunctionObject, cudaGpu, and codedFunctionObject.
|
private |
Name.
Definition at line 63 of file functionObject.H.
|
static |
Definition at line 80 of file functionObject.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.