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;
dlLibraryTable & libs() const noexcept
Mutable access to the loaded dynamic libraries.
dimensionedScalar log(const dimensionedScalar &ds)
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineDebugSwitchWithName(pointMVCWeight, "pointMVCWeight", 0)
static bool postProcess
Global post-processing mode switch.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual bool write()
No nothing.
virtual bool execute()=0
Called at each ++ or += of the time-loop.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
Abstract base-class for Time/database function objects.
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const word & name() const noexcept
Return the name of this functionObject.
virtual bool end()
Called when Time::run() determines that the time-loop exits.
static word scopedName(const std::string &scope, const word &name)
Create scope:name or scope_name string.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
bool useNamePrefix() const noexcept
Return the flag for adding a scoping name prefix.
A class for handling words, derived from Foam::string.
virtual bool execute()
No nothing.
const_searcher csearchCompat(const word &keyword, std::initializer_list< std::pair< const char *, int >> compat, enum keyType::option matchOpt=keyType::REGEX) const
Search dictionary for given keyword and any compatibility names.
virtual const word & type() const =0
Runtime type information.
unavailableFunctionObject(const word &name)
Construct with name.
virtual bool filesModified() const
Did any file get changed during execution?
#define DebugInfo
Report an information message using Foam::Info.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
virtual bool read(const dictionary &dict)
Read and set the function object if its data have changed.
static bool defaultUseNamePrefix
Global default for useNamePrefix.
static word outputPrefix
Directory prefix.
Mesh consisting of general polyhedral cells.
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T, or return the given default value. FatalIOError if it is found and the number of...
static autoPtr< functionObject > New(const word &name, const Time &runTime, const dictionary &dict)
Select from dictionary, based on its "type" entry.
void carp(std::string message="") const
Report it is unavailable, emitting a FatalError for try/catch in the caller.
bool open(bool verbose=true)
Open named, but unopened libraries. These names will normally have been added with the append() metho...
virtual void movePoints(const polyMesh &mesh)
Update for changes of mesh.
functionObject(const word &name, const bool withNamePrefix=defaultUseNamePrefix)
Construct from components.
word scopedName(const word &name) const
Return a scoped (prefixed) name.
virtual bool adjustTimeStep()
Called at the end of Time::adjustDeltaT() if adjustTime is true.
virtual void updateMesh(const mapPolyMesh &mpm)
Update for changes of mesh.