Go to the documentation of this file.
51 return name_ +
":" +
name;
76 <<
"Selecting function " << functionType <<
endl;
89 finder.ref().keyword(),
90 dictionaryConstructorTablePtr_
103 if (!dictionaryConstructorTablePtr_)
106 <<
"Cannot load function type " << functionType <<
nl <<
nl
107 <<
"Table of functionObjects is empty" <<
endl
111 auto cstrIter = dictionaryConstructorTablePtr_->cfind(functionType);
113 if (!cstrIter.found())
121 *dictionaryConstructorTablePtr_
198 <<
" " <<
type() <<
" not available" <<
nl
204 << message.c_str() <<
nl;
virtual bool execute()
No nothing.
virtual bool execute()=0
Called at each ++ or += of the time-loop.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
defineDebugSwitchWithName(pointMVCWeight, "pointMVCWeight", 0)
static autoPtr< functionObject > New(const word &name, const Time &runTime, const dictionary &dict)
Select from dictionary, based on its "type" entry.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
Ostream & endl(Ostream &os)
Add newline and flush stream.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Mesh consisting of general polyhedral cells.
Abstract base-class for Time/database function objects.
unavailableFunctionObject(const word &name)
Construct with name.
virtual bool write()
No nothing.
word name(const complex &c)
Return string representation of complex.
static bool postProcess
Global post-processing mode switch.
virtual bool read(const dictionary &dict)
Read and set the function object if its data have changed.
static word outputPrefix
Directory prefix.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
dimensionedScalar log(const dimensionedScalar &ds)
virtual bool adjustTimeStep()
Called at the end of Time::adjustDeltaT() if adjustTime is true.
virtual void movePoints(const polyMesh &mesh)
Update for changes of mesh.
void carp(std::string message="") const
errorManipArg< error, int > exit(error &err, const int errNo=1)
const_searcher csearchCompat(const word &keyword, std::initializer_list< std::pair< const char *, int >> compat, enum keyType::option=keyType::REGEX) const
Search dictionary for given keyword and any compatibility names.
virtual bool end()
Called when Time::run() determines that the time-loop exits.
word scopedName(const word &name) const
Return a scoped name, e.g. used to construct local field names.
virtual void updateMesh(const mapPolyMesh &mpm)
Update for changes of mesh.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define DebugInfo
Report an information message using Foam::Info.
const word & name() const
Return the name of this functionObject.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
virtual bool filesModified() const
Did any file get changed during execution?
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
functionObject(const word &name)
Construct from components.