51bool Foam::substitutionModels::functionObjectValue::getValue
60 if (foProps.getObjectResult(functionObject_,
lookup, result))
72Foam::substitutionModels::functionObjectValue::functionObjectValue
79 functionObject_(
dict.get<
word>(
"functionObject")),
81 debugValues_(
dict.getOrDefault<bool>(
"debugValues", false))
85 for (
const auto&
e : entriesDict)
98 Info<<
nl <<
"Function object results:" <<
nl;
99 time_.functionObjects().propsDict().writeAllResultEntries(
Info);
111 return entries_.found(keyName);
121 if (!valid(key))
return false;
128 getValue<label>(oss,
lookup)
129 || getValue<scalar>(oss,
lookup)
130 || getValue<vector>(oss,
lookup)
131 || getValue<sphericalTensor>(oss,
lookup)
132 || getValue<symmTensor>(oss,
lookup)
133 || getValue<tensor>(oss,
lookup);
135 if (!ok)
return false;
145 return entries_.sortedToc();
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Output to string buffer, using a OSstream. Always UNCOMPRESSED.
Foam::string str() const
Get the string. As Foam::string instead of std::string (may change in future).
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const functionObjectList & functionObjects() const noexcept
Return the list of function objects.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
functionObjects::properties & propsDict()
Write access to the properties dictionary ("functionObjectProperties") registered on Time.
Lookup type of boundary radiation properties.
string & replaceAll(const std::string &s1, const std::string &s2, size_type pos=0)
Replace all occurrences of sub-string s1 with s2, beginning at pos in the string.
Base class for substitution models.
const Time & time_
Reference to the time database.
static word cleanKey(const string &str)
Clean the key text.
static string keyify(const word &w)
Return a key representation from a word.
functionObjectValue substitution model.
virtual bool apply(const word &key, string &buffer) const
Apply substitutions to this string buffer.
virtual bool valid(const word &keyName) const
Return true of model applies to this keyName.
virtual bool update()
Update model local data.
virtual wordList keys() const
Return a word list of the keys.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
List< word > wordList
List of word.
messageStream Info
Information stream (stdout output on master, null elsewhere).
constexpr char nl
The newline '\n' character (0x0a).