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;
static word scopedName(const std::string &scope, const word &name)
Create scope:name or scope_name string.
virtual bool read()
Re-read model coefficients if they have changed.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
dlLibraryTable & libs() const
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,...
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
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.
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
bool open(bool verbose=true)
Abstract functionObject to report when a real version is unavailable.
void carp(std::string message="") const
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 bool execute()=0
Called at each ++ or += of the time-loop.
virtual bool adjustTimeStep()
Called at the end of Time::adjustDeltaT() if adjustTime is true.
static word outputPrefix
Directory prefix.
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.
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.
void movePoints()
Update for new mesh geometry.
void updateMesh()
Update for new mesh 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.
dimensionedScalar log(const dimensionedScalar &ds)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for 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.