33void Foam::Function1Types::FunctionObjectValue<Type>::read
38 foName_ = coeffs.get<
word>(
"functionObject");
39 foResultName_ = coeffs.get<
word>(
"functionObjectResult");
40 haveDefaultValue_ = coeffs.readIfPresent(
"defaultValue", defaultValue_);
47 const word& entryName,
56 haveDefaultValue_(false)
70 foResultName_(
rhs.foResultName_),
71 defaultValue_(
rhs.defaultValue_),
72 haveDefaultValue_(
rhs.haveDefaultValue_)
84 os.writeEntry(
"functionObject", foName_);
85 os.writeEntry(
"functionObjectResult", foResultName_);
87 if (haveDefaultValue_)
89 os.writeEntry(
"defaultValue", defaultValue_);
Returns a value retrieved from a function object result.
FunctionObjectValue(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from entry name, dictionary and optional registry.
virtual void writeData(Ostream &os) const
Write in dictionary format.
virtual void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual void writeData(Ostream &os) const
Write in dictionary format.
Function1(const word &entryName, const objectRegistry *obrPtr=nullptr)
Construct from entry name.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Registry of regIOobjects.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
static constexpr const zero Zero
Global zero (0).