A functionObject wrapper around OutputFilter to allow them to be created via the functions entry within controlDict. More...
Public Member Functions | |
TypeName (OutputFilter::typeName_()) | |
Runtime type information. More... | |
OutputFilterFunctionObject (const word &name, const Time &, const dictionary &) | |
Construct from components. More... | |
virtual const Time & | time () const |
Return time database. More... | |
virtual const dictionary & | dict () const |
Return the input dictionary. More... | |
virtual const word & | regionName () const |
Return the region name. More... | |
virtual const word & | dictName () const |
Return the optional dictionary name. More... | |
virtual bool | enabled () const |
Return the enabled flag. More... | |
virtual const outputFilterOutputControl & | outputControl () const |
Return the output control object. More... | |
virtual const OutputFilter & | outputFilter () const |
Return the output filter. More... | |
virtual void | on () |
Switch the function object on. More... | |
virtual void | off () |
Switch the function object off. More... | |
virtual bool | start () |
Called at the start of the time-loop. More... | |
virtual bool | execute (const bool forceWrite) |
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 | 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 &) |
Read and set the function object if its data have changed. 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... | |
![]() | |
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... | |
Private Member Functions | |
void | readDict () |
Read relevant dictionary entries. More... | |
void | allocateFilter () |
Creates most of the data associated with this object. More... | |
void | destroyFilter () |
Destroys most of the data associated with this object. More... | |
bool | active () const |
Returns true if active (enabled and within time bounds) More... | |
OutputFilterFunctionObject (const OutputFilterFunctionObject &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const OutputFilterFunctionObject &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
const Time & | time_ |
Reference to the time database. More... | |
dictionary | dict_ |
Input dictionary. More... | |
word | regionName_ |
Name of region - defaults to name of polyMesh::defaultRegion. More... | |
word | dictName_ |
Dictionary name to supply required inputs. More... | |
bool | enabled_ |
Switch for the execution - defaults to 'yes/on'. More... | |
bool | storeFilter_ |
Switch to store filter in between writes or use on-the-fly. More... | |
scalar | timeStart_ |
Activation time - defaults to -VGREAT. More... | |
scalar | timeEnd_ |
De-activation time - defaults to VGREAT. More... | |
label | nStepsToStartTimeChange_ |
Number of steps before the dumping time in which the deltaT. More... | |
outputFilterOutputControl | outputControl_ |
Output controls. More... | |
outputFilterOutputControl | evaluateControl_ |
Evaluate controls. More... | |
autoPtr< OutputFilter > | ptr_ |
Pointer to the output filter. More... | |
Additional Inherited Members | |
![]() | |
static autoPtr< functionObject > | New (const word &name, const Time &, const dictionary &) |
Select from dictionary, based on its "type" entry. More... | |
![]() | |
static int | debug |
A functionObject wrapper around OutputFilter to allow them to be created via the functions entry within controlDict.
The function object can be limited to operate within a time range using the timeStart and timEnd options. All objects are read (and the OutputFilter allocated) on construction. However, if a timeEnd is supplied, the object will call the 'end' function of the filter at the timeEnd time and destroy the filter. Any other callback (execute(), write(), timeSet() etc) will only operate if within the timeStart, timeEnd time range. Note that the time range uses 0.5 * deltaT as a comparison tolerance to account for precision errors.
Definition at line 67 of file OutputFilterFunctionObject.H.
|
private |
Disallow default bitwise copy construct.
OutputFilterFunctionObject | ( | const word & | name, |
const Time & | t, | ||
const dictionary & | dict | ||
) |
Construct from components.
Definition at line 102 of file OutputFilterFunctionObject.C.
|
private |
Read relevant dictionary entries.
Definition at line 35 of file OutputFilterFunctionObject.C.
|
private |
Creates most of the data associated with this object.
Definition at line 62 of file OutputFilterFunctionObject.C.
References Foam::name().
|
private |
Destroys most of the data associated with this object.
Definition at line 92 of file OutputFilterFunctionObject.C.
|
private |
Returns true if active (enabled and within time bounds)
Definition at line 48 of file OutputFilterFunctionObject.C.
|
private |
Disallow default bitwise assignment.
TypeName | ( | OutputFilter::typeName_() | ) |
Runtime type information.
|
inlinevirtual |
Return time database.
Definition at line 159 of file OutputFilterFunctionObject.H.
References OutputFilterFunctionObject< OutputFilter >::time_.
|
inlinevirtual |
Return the input dictionary.
Definition at line 165 of file OutputFilterFunctionObject.H.
References OutputFilterFunctionObject< OutputFilter >::dict_.
|
inlinevirtual |
Return the region name.
Definition at line 171 of file OutputFilterFunctionObject.H.
References OutputFilterFunctionObject< OutputFilter >::regionName_.
|
inlinevirtual |
Return the optional dictionary name.
Definition at line 177 of file OutputFilterFunctionObject.H.
References OutputFilterFunctionObject< OutputFilter >::dictName_.
|
inlinevirtual |
Return the enabled flag.
Definition at line 183 of file OutputFilterFunctionObject.H.
References OutputFilterFunctionObject< OutputFilter >::enabled_.
|
inlinevirtual |
Return the output control object.
Definition at line 189 of file OutputFilterFunctionObject.H.
References OutputFilterFunctionObject< OutputFilter >::outputControl_.
|
inlinevirtual |
Return the output filter.
Definition at line 195 of file OutputFilterFunctionObject.H.
References OutputFilterFunctionObject< OutputFilter >::ptr_.
|
virtual |
Switch the function object on.
Definition at line 131 of file OutputFilterFunctionObject.C.
|
virtual |
Switch the function object off.
Definition at line 138 of file OutputFilterFunctionObject.C.
|
virtual |
Called at the start of the time-loop.
Implements functionObject.
Definition at line 145 of file OutputFilterFunctionObject.C.
|
virtual |
Called at each ++ or += of the time-loop.
Implements functionObject.
Definition at line 160 of file OutputFilterFunctionObject.C.
|
virtual |
Called when Time::run() determines that the time-loop exits.
Reimplemented from functionObject.
Definition at line 199 of file OutputFilterFunctionObject.C.
|
virtual |
Called when time was set at the end of the Time::operator++.
Reimplemented from functionObject.
Definition at line 221 of file OutputFilterFunctionObject.C.
|
virtual |
Called at the end of Time::adjustDeltaT() if adjustTime is true.
Reimplemented from functionObject.
Definition at line 233 of file OutputFilterFunctionObject.C.
References Foam::max().
|
virtual |
Read and set the function object if its data have changed.
Implements functionObject.
Definition at line 283 of file OutputFilterFunctionObject.C.
References dict.
|
virtual |
Update for changes of mesh.
Implements functionObject.
Definition at line 303 of file OutputFilterFunctionObject.C.
References mapPolyMesh::mesh(), and IOobject::name().
|
virtual |
Update for changes of mesh.
Implements functionObject.
Definition at line 316 of file OutputFilterFunctionObject.C.
References mesh.
|
private |
Reference to the time database.
Definition at line 74 of file OutputFilterFunctionObject.H.
Referenced by OutputFilterFunctionObject< OutputFilter >::time().
|
private |
Input dictionary.
Definition at line 77 of file OutputFilterFunctionObject.H.
Referenced by OutputFilterFunctionObject< OutputFilter >::dict().
|
private |
Name of region - defaults to name of polyMesh::defaultRegion.
Definition at line 83 of file OutputFilterFunctionObject.H.
Referenced by OutputFilterFunctionObject< OutputFilter >::regionName().
|
private |
Dictionary name to supply required inputs.
Definition at line 86 of file OutputFilterFunctionObject.H.
Referenced by OutputFilterFunctionObject< OutputFilter >::dictName().
|
private |
Switch for the execution - defaults to 'yes/on'.
Definition at line 89 of file OutputFilterFunctionObject.H.
Referenced by OutputFilterFunctionObject< OutputFilter >::enabled().
|
private |
Switch to store filter in between writes or use on-the-fly.
construction - defaults to true
Definition at line 93 of file OutputFilterFunctionObject.H.
|
private |
Activation time - defaults to -VGREAT.
Definition at line 96 of file OutputFilterFunctionObject.H.
|
private |
De-activation time - defaults to VGREAT.
Definition at line 99 of file OutputFilterFunctionObject.H.
|
private |
Number of steps before the dumping time in which the deltaT.
will start to change (valid for ocAdjustableTime)
Definition at line 103 of file OutputFilterFunctionObject.H.
|
private |
Output controls.
Definition at line 107 of file OutputFilterFunctionObject.H.
Referenced by OutputFilterFunctionObject< OutputFilter >::outputControl().
|
private |
Evaluate controls.
Definition at line 110 of file OutputFilterFunctionObject.H.
|
private |
Pointer to the output filter.
Definition at line 113 of file OutputFilterFunctionObject.H.
Referenced by OutputFilterFunctionObject< OutputFilter >::outputFilter().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.