Abstract base-class for Time/database functionObjects. More...
Public Member Functions | |
ClassName ("functionObject") | |
virtual const word & | type () const =0 |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, functionObject, dictionary,(const word &name, const Time &runTime, const dictionary &dict),(name, runTime, dict)) | |
functionObject (const word &name) | |
Construct from components. More... | |
autoPtr< functionObject > | clone () const |
Return clone. More... | |
functionObject (const functionObject &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~functionObject () |
Destructor. More... | |
const word & | name () const |
Return the name of this functionObject. More... | |
virtual bool | read (const dictionary &) |
Read and set the functionObject if its data have changed. More... | |
virtual bool | executeAtStart () const |
Return true if the functionObject should be executed at the start. More... | |
virtual bool | execute ()=0 |
Called at each ++ or += of the time-loop. 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 | setTimeStep () |
Called by Time::setDeltaT(). Allows the functionObject to override. More... | |
virtual scalar | timeToNextWrite () |
Called by Time::adjustTimeStep(). Allows the functionObject to. 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... | |
void | operator= (const functionObject &)=delete |
Disallow default bitwise assignment. 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... | |
Public Attributes | |
Switch | log |
Switch write log to Info. More... | |
Switch | executeAtStart_ |
Switch write log to Info. More... | |
Static Public Attributes | |
static bool | postProcess |
Global post-processing mode switch. More... | |
Abstract base-class for Time/database functionObjects.
Definition at line 223 of file functionObject.H.
functionObject | ( | const word & | name | ) |
Construct from components.
Definition at line 44 of file functionObject.C.
References functionObject::New().
Referenced by functionObject::clone().
|
delete |
Disallow default bitwise copy construction.
|
virtual |
Destructor.
Definition at line 115 of file functionObject.C.
Referenced by functionObject::clone().
ClassName | ( | "functionObject" | ) |
|
pure virtual |
Runtime type information.
Referenced by probes::classifyFields().
declareRunTimeSelectionTable | ( | autoPtr | , |
functionObject | , | ||
dictionary | , | ||
(const word &name, const Time &runTime, const dictionary &dict) | , | ||
(name, runTime, dict) | |||
) |
|
inline |
Return clone.
Definition at line 266 of file functionObject.H.
References functionObject::end(), functionObject::execute(), functionObject::executeAtStart(), functionObject::functionObject(), mesh, functionObject::movePoints(), functionObject::name(), functionObject::New(), NotImplemented, functionObject::operator=(), functionObject::read(), functionObject::setTimeStep(), functionObject::timeToNextWrite(), functionObject::updateMesh(), functionObject::write(), and functionObject::~functionObject().
|
static |
Select from dictionary, based on its "type" entry.
Definition at line 55 of file functionObject.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, dictionary::found(), Foam::Info, Foam::libs, dictionary::lookup(), functionObject::name(), Foam::nl, dlLibraryTable::open(), and runTime.
Referenced by functionObject::clone(), functionObject::functionObject(), functionObjectList::read(), and codedFunctionObject::~codedFunctionObject().
const Foam::word & name | ( | ) | const |
Return the name of this functionObject.
Definition at line 121 of file functionObject.C.
Referenced by functionObject::clone(), forces::file(), functionObject::New(), surfaceFieldValue::outputDir(), patchInternalField::print(), plane::print(), sampledSurfaces::thresholdCellFaces::print(), isoSurface::print(), cuttingPlane::print(), distanceSurface::print(), patch::print(), and sampledSurfaces::triSurfaceMesh::print().
|
virtual |
Read and set the functionObject if its data have changed.
Reimplemented in surfaceFieldValue, fieldAverage, forces, pressure, volFieldValue, streamLine, regionSizeDistribution, sampledSets, sizeDistribution, comfort, turbulenceFields, phaseScalarTransport, probes, forceCoeffs, nearWallFields, sampledSurfaces, wallHeatTransferCoeff, fieldMinMax, fieldValueDelta, writeObjects, age, codedFunctionObject, histogram, interfaceHeight, wallShearStress, fieldValue, systemCall, particles, fieldCoordinateSystemTransform, timeControl, wallHeatFlux, sixDoFRigidBodyControl, surfaceInterpolate, readFields, yPlus, stopAtFile, patchProbes, log, phaseForces, sixDoFRigidBodyState, regionFunctionObject, scalarTransport, cloudInfo, stopAtClockTime, turbulenceIntensity, rigidBodyState, writeVTK, removeRegisteredObject, timeActivatedFileUpdate, residuals, time, fieldsExpression, moleFractions< ThermoType >, stopAt, processorField, writeDictionary, CourantNo, fieldExpression, specieReactionRates< ChemistryModelType >, setTimeStepFunctionObject, blendingFactor, scale, randomise, shearStress, totalEnthalpy, Qdot, and dsmcFields.
Definition at line 127 of file functionObject.C.
References functionObject::executeAtStart_, functionObject::log, dictionary::lookupOrDefault(), and functionObject::postProcess.
Referenced by functionObject::clone(), time::read(), regionFunctionObject::read(), writeObjects::read(), and functionObjectList::read().
|
virtual |
Return true if the functionObject should be executed at the start.
Reimplemented in fieldAverage, timeControl, and dsmcFields.
Definition at line 140 of file functionObject.C.
References functionObject::executeAtStart_.
Referenced by functionObject::clone().
|
pure virtual |
Called at each ++ or += of the time-loop.
postProcess overrides the usual executeControl behaviour and forces execution (used in post-processing mode)
Implemented in fieldAverage, forces, streamLine, regionSizeDistribution, sampledSets, sizeDistribution, comfort, turbulenceFields, phaseScalarTransport, probes, forceCoeffs, nearWallFields, sampledSurfaces, wallHeatTransferCoeff, fieldMinMax, fieldValueDelta, writeObjects, age, histogram, interfaceHeight, wallShearStress, codedFunctionObject, fieldValue, systemCall, particles, fieldCoordinateSystemTransform, wallHeatFlux, sixDoFRigidBodyControl, surfaceInterpolate, readFields, yPlus, phaseForces, timeControl, sixDoFRigidBodyState, scalarTransport, cloudInfo, turbulenceIntensity, rigidBodyState, writeVTK, removeRegisteredObject, timeActivatedFileUpdate, residuals, time, fieldsExpression, moleFractions< ThermoType >, stopAt, phaseMap, processorField, writeDictionary, writeCellCentres, XiReactionRate, writeCellVolumes, fieldExpression, setTimeStepFunctionObject, specieReactionRates< ChemistryModelType >, dsmcFields, shearStress, totalEnthalpy, and Qdot.
Referenced by functionObject::clone().
|
pure virtual |
Called at each ++ or += of the time-loop.
postProcess overrides the usual writeControl behaviour and forces writing always (used in post-processing mode)
Implemented in surfaceFieldValue, fieldAverage, forces, volFieldValue, streamLine, regionSizeDistribution, sampledSets, sizeDistribution, comfort, turbulenceFields, phaseScalarTransport, probes, forceCoeffs, nearWallFields, sampledSurfaces, wallHeatTransferCoeff, fieldMinMax, fieldValueDelta, writeObjects, age, histogram, interfaceHeight, wallShearStress, codedFunctionObject, fieldValue, systemCall, particles, fieldCoordinateSystemTransform, wallHeatFlux, surfaceInterpolate, readFields, yPlus, timeControl, phaseForces, patchProbes, sixDoFRigidBodyState, scalarTransport, cloudInfo, turbulenceIntensity, rigidBodyState, writeVTK, removeRegisteredObject, timeActivatedFileUpdate, residuals, time, fieldsExpression, moleFractions< ThermoType >, stopAt, phaseMap, processorField, writeDictionary, writeCellCentres, XiReactionRate, writeCellVolumes, setTimeStepFunctionObject, fieldExpression, specieReactionRates< ChemistryModelType >, components, dsmcFields, shearStress, totalEnthalpy, and Qdot.
Referenced by functionObject::clone().
|
virtual |
Called when Time::run() determines that the time-loop exits.
Reimplemented in sizeDistribution, codedFunctionObject, interfaceHeight, systemCall, stopAtFile, timeControl, and stopAt.
Definition at line 146 of file functionObject.C.
Referenced by functionObject::clone().
|
virtual |
Called by Time::setDeltaT(). Allows the functionObject to override.
the time-step value. Returns whether or not the value was overridden.
Reimplemented in setTimeStepFunctionObject.
Definition at line 152 of file functionObject.C.
Referenced by functionObject::clone().
|
virtual |
Called by Time::adjustTimeStep(). Allows the functionObject to.
insert a write time earlier than that already in use by the run time. Returns the write time, or vGreat.
Reimplemented in timeControl.
Definition at line 158 of file functionObject.C.
Referenced by functionObject::clone().
|
virtual |
Update for changes of mesh.
Reimplemented in streamLine, sampledSets, probes, sampledSurfaces, and timeControl.
Definition at line 164 of file functionObject.C.
Referenced by functionObject::clone().
|
virtual |
Update for changes of mesh.
Reimplemented in streamLine, sampledSets, probes, sampledSurfaces, and timeControl.
Definition at line 168 of file functionObject.C.
Referenced by functionObject::clone().
|
delete |
Disallow default bitwise assignment.
Referenced by functionObject::clone().
|
static |
Global post-processing mode switch.
Definition at line 239 of file functionObject.H.
Referenced by functionObject::read().
Switch log |
Switch write log to Info.
Definition at line 242 of file functionObject.H.
Referenced by functionObject::read().
Switch executeAtStart_ |
Switch write log to Info.
Definition at line 245 of file functionObject.H.
Referenced by functionObject::executeAtStart(), and functionObject::read().