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 wordList | fields () const =0 |
Return the list of fields required. 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 scalar | timeToNextWrite () |
Called by Time::adjustTimeStep(). Allows the functionObject to. More... | |
virtual void | movePoints (const polyMesh &mesh) |
Update topology using the given map. More... | |
virtual void | topoChange (const polyTopoChangeMap &map) |
Update topology using the given map. More... | |
virtual void | mapMesh (const polyMeshMap &) |
Update from another mesh using the given map. 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 230 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 273 of file functionObject.H.
References functionObject::end(), functionObject::execute(), functionObject::executeAtStart(), functionObject::fields(), functionObject::functionObject(), functionObject::mapMesh(), mesh, functionObject::movePoints(), functionObject::name(), functionObject::New(), NotImplemented, functionObject::operator=(), functionObject::read(), functionObject::timeToNextWrite(), functionObject::topoChange(), functionObject::write(), and functionObject::~functionObject().
Referenced by fieldsExpression::foldAB().
|
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, and dlLibraryTable::open().
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(), and surfaceFieldValue::outputDir().
|
virtual |
Read and set the functionObject if its data have changed.
Reimplemented in surfaceFieldValue, volFieldValue, forces, fieldAverage, pressure, streamlines, regionSizeDistribution, populationBalanceSizeDistribution, comfort, turbulenceFields, sampledSurfaces, populationBalanceMoments, phaseScalarTransport, forceCoeffs, probes, nearWallFields, layerAverage, scalarTransport, fieldValueDelta, codedFunctionObject, writeObjects, age, wallHeatTransferCoeff, wallShearStress, interfaceHeight, fieldValue, systemCall, fieldsExpression, histogram, fieldCoordinateSystemTransform, sampledSets, particles, sixDoFRigidBodyControl, wallHeatFlux, readFields, stopAtFile, timeControl, yPlus, regionFunctionObject, log, sixDoFRigidBodyState, patchProbes, phaseForces, stopAtClockTime, cloudInfo, turbulenceIntensity, rigidBodyState, writeVTK, residuals, timeActivatedFileUpdate, removeRegisteredObject, time, moleFractions< ThermoType >, stopAt, setWriteIntervalFunctionObject, timeStep, processorField, writeDictionary, CourantNo, specieReactionRates, setTimeStepFunctionObject, blendingFactor, scale, uniform, randomise, shearStress, totalEnthalpy, meshToMeshAdjustTimeStepFunctionObject, 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(), timeStep::read(), time::read(), regionFunctionObject::read(), writeObjects::read(), functionObjectList::read(), and timeControl::timeControl().
|
pure virtual |
Return the list of fields required.
Implemented in forces, fieldAverage, streamlines, regionSizeDistribution, populationBalanceSizeDistribution, comfort, turbulenceFields, sampledSurfaces, populationBalanceMoments, phaseScalarTransport, nearWallFields, layerAverage, scalarTransport, probes, fieldValueDelta, writeObjects, age, wallHeatTransferCoeff, wallShearStress, codedFunctionObject, interfaceHeight, systemCall, fieldsExpression, histogram, fieldCoordinateSystemTransform, sampledSets, particles, fieldValue, wallHeatFlux, readFields, yPlus, sixDoFRigidBodyState, phaseForces, cloudInfo, turbulenceIntensity, rigidBodyState, writeVTK, residuals, timeActivatedFileUpdate, removeRegisteredObject, timeControl, time, moleFractions< ThermoType >, stopAt, phaseMap, setWriteIntervalFunctionObject, timeStep, processorField, writeDictionary, writeCellCentres, XiReactionRate, writeCellVolumes, specieReactionRates, setTimeStepFunctionObject, uniform, fieldExpression, shearStress, totalEnthalpy, meshToMeshAdjustTimeStepFunctionObject, Qdot, and dsmcFields.
Referenced by functionObject::clone().
|
virtual |
Return true if the functionObject should be executed at the start.
Reimplemented in fieldAverage, timeControl, and dsmcFields.
Definition at line 141 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 forces, fieldAverage, streamlines, regionSizeDistribution, populationBalanceSizeDistribution, comfort, turbulenceFields, populationBalanceMoments, sampledSurfaces, phaseScalarTransport, forceCoeffs, probes, nearWallFields, layerAverage, scalarTransport, fieldValueDelta, writeObjects, wallHeatTransferCoeff, age, wallShearStress, codedFunctionObject, interfaceHeight, systemCall, fieldValue, fieldsExpression, histogram, particles, fieldCoordinateSystemTransform, sampledSets, wallHeatFlux, sixDoFRigidBodyControl, readFields, yPlus, sixDoFRigidBodyState, phaseForces, cloudInfo, turbulenceIntensity, rigidBodyState, timeControl, residuals, timeActivatedFileUpdate, writeVTK, removeRegisteredObject, time, moleFractions< ThermoType >, stopAt, phaseMap, setWriteIntervalFunctionObject, timeStep, processorField, writeDictionary, writeCellCentres, writeCellVolumes, XiReactionRate, specieReactionRates, setTimeStepFunctionObject, uniform, fieldExpression, meshToMeshAdjustTimeStepFunctionObject, 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, volFieldValue, forces, fieldAverage, streamlines, regionSizeDistribution, populationBalanceSizeDistribution, comfort, turbulenceFields, populationBalanceMoments, sampledSurfaces, phaseScalarTransport, forceCoeffs, probes, nearWallFields, layerAverage, scalarTransport, fieldValueDelta, writeObjects, wallHeatTransferCoeff, age, wallShearStress, codedFunctionObject, interfaceHeight, systemCall, fieldValue, histogram, fieldsExpression, particles, fieldCoordinateSystemTransform, sampledSets, wallHeatFlux, readFields, yPlus, sixDoFRigidBodyState, phaseForces, cloudInfo, turbulenceIntensity, rigidBodyState, timeControl, residuals, timeActivatedFileUpdate, writeVTK, removeRegisteredObject, patchProbes, time, moleFractions< ThermoType >, stopAt, phaseMap, setWriteIntervalFunctionObject, timeStep, processorField, writeDictionary, writeCellCentres, writeCellVolumes, XiReactionRate, specieReactionRates, setTimeStepFunctionObject, uniform, fieldExpression, components, meshToMeshAdjustTimeStepFunctionObject, dsmcFields, shearStress, totalEnthalpy, and Qdot.
Referenced by functionObject::clone().
|
virtual |
Called when Time::run() determines that the time-loop exits.
Reimplemented in codedFunctionObject, interfaceHeight, systemCall, stopAtFile, timeControl, and stopAt.
Definition at line 147 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, and meshToMeshAdjustTimeStepFunctionObject.
Definition at line 153 of file functionObject.C.
Referenced by functionObject::clone().
|
virtual |
Update topology using the given map.
Reimplemented in surfaceFieldValue, streamlines, sampledSurfaces, probes, layerAverage, sampledSets, and timeControl.
Definition at line 159 of file functionObject.C.
Referenced by functionObject::clone().
|
virtual |
Update topology using the given map.
Reimplemented in surfaceFieldValue, streamlines, sampledSurfaces, probes, layerAverage, sampledSets, and timeControl.
Definition at line 163 of file functionObject.C.
Referenced by functionObject::clone().
|
virtual |
Update from another mesh using the given map.
Reimplemented in surfaceFieldValue, streamlines, sampledSurfaces, probes, layerAverage, sampledSets, and timeControl.
Definition at line 167 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 246 of file functionObject.H.
Referenced by functionObject::read().
Switch log |
Switch write log to Info.
Definition at line 249 of file functionObject.H.
Referenced by functionObject::read().
Switch executeAtStart_ |
Switch write log to Info.
Definition at line 252 of file functionObject.H.
Referenced by functionObject::executeAtStart(), and functionObject::read().