Go to the documentation of this file.
67 const bool withNamePrefix
71 useNamePrefix_(withNamePrefix),
88 <<
"Selecting function " << functionType <<
endl;
101 finder.ref().keyword(),
102 dictionaryConstructorTablePtr_
115 if (!dictionaryConstructorTablePtr_)
118 <<
"Cannot load function type " << functionType <<
nl <<
nl
119 <<
"Table of functionObjects is empty" <<
endl
123 auto* ctorPtr = dictionaryConstructorTable(functionType);
133 *dictionaryConstructorTablePtr_
151 return useNamePrefix_;
157 bool old(useNamePrefix_);
172 defaultUseNamePrefix,
236 <<
" " <<
type() <<
" not available" <<
nl
242 << 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)
functionObject(const word &name, const bool withNamePrefix=defaultUseNamePrefix)
Construct from components.
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.
static bool defaultUseNamePrefix
Global default for useNamePrefix.
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.
dlLibraryTable & libs() const
Mutable access to the loaded dynamic libraries.
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.
bool open(bool verbose=true)
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 (prefixed) name.
virtual void updateMesh(const mapPolyMesh &mpm)
Update for changes of mesh.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const word & name() const noexcept
Return the name of this functionObject.
#define DebugInfo
Report an information message using Foam::Info.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
bool useNamePrefix() const noexcept
Return the flag for adding a scoping name prefix.
virtual bool filesModified() const
Did any file get changed during execution?
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
static word scopedName(const std::string &scope, const word &name)
Create scope:name or scope_name string.
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const