33bool Foam::subModelBase::subModelBase::inLine()
const
44 properties_(properties),
57 const word& modelType,
62 properties_(properties),
65 modelType_(modelType),
66 coeffDict_(
dict.subDict(modelType + dictExt))
72 const word& modelName,
79 modelName_(modelName),
80 properties_(properties),
83 modelType_(modelType),
90 modelName_(smb.modelName_),
91 properties_(smb.properties_),
93 baseName_(smb.baseName_),
94 modelType_(smb.modelType_),
95 coeffDict_(smb.coeffDict_)
145 bool def = coeffDict_.getOrDefault(
"defaultCoeffs",
false);
186 const word& entryName,
190 if (properties_.found(baseName_))
194 if (inLine() && baseDict.
found(modelName_))
200 else if (baseDict.
found(modelType_))
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,...
dictionary subOrEmptyDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX, const bool mandatory=false) const
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
A class for handling file names.
virtual bool write()
Write the output fields.
Base class for generic sub-models requiring to be read from dictionary. Provides a mechanism to read ...
const word modelName_
Name of the sub-model.
virtual ~subModelBase()
Destructor.
const word & baseName() const
Return const access to the base name of the sub-model.
virtual void cacheFields(const bool store)
Cache dependent sub-model fields.
virtual fileName localPath() const
Output directory.
const dictionary & coeffDict() const
Return const access to the coefficients dictionary.
const dictionary & properties() const
Return const access to the properties dictionary.
bool getModelDict(const word &entryName, dictionary &dict) const
Retrieve dictionary, return true if set.
const dictionary & dict() const
Return const access to the cloud dictionary.
const word & modelName() const
Return const access to the name of the sub-model.
const word & modelType() const
Return const access to the sub-model type.
virtual bool active() const
Return the model 'active' status - default active = true.
virtual bool defaultCoeffs(const bool printMsg) const
Returns true if defaultCoeffs is true and outputs on printMsg.
virtual bool writeTime() const
Flag to indicate when to write a property.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & incrIndent(Ostream &os)
Increment the indent level.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & indent(Ostream &os)
Indent stream.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.