36 namespace substitutionModels
51 bool Foam::substitutionModels::functionObjectValue::getValue
60 if (foProps.getObjectResult(functionObject_, lookup, result))
72 Foam::substitutionModels::functionObjectValue::functionObjectValue
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();
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual bool apply(const word &key, string &buffer) const
Apply substitutions to this string buffer.
Base class for substitution models.
constexpr char nl
The newline '\n' character (0x0a)
const Time & time_
Reference to the time database.
functionObjects::properties & propsDict()
Write access to the properties dictionary ("functionObjectProperties") registered on Time...
Lookup type of boundary radiation properties.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
const dimensionedScalar e
Elementary charge.
const functionObjectList & functionObjects() const noexcept
Return the list of function objects.
A class for handling words, derived from Foam::string.
virtual bool valid(const word &keyName) const
Return true of model applies to this keyName.
virtual wordList keys() const
Return a word list of the keys.
addToRunTimeSelectionTable(substitutionModel, dictionaryValue, dictionary)
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. ...
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
defineTypeNameAndDebug(dictionaryValue, 0)
messageStream Info
Information stream (stdout output on master, null elsewhere)
virtual bool update()
Update model local data.
static word cleanKey(const string &str)
Clean the key text.
Output to string buffer, using a OSstream. Always UNCOMPRESSED.