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