Go to the documentation of this file.
33 bool Foam::subModelBase::subModelBase::inLine()
const
35 return (modelName_ != word::null);
43 modelName_(
word::null),
44 properties_(properties),
46 baseName_(
word::null),
47 modelType_(
word::null),
57 const word& modelType,
62 properties_(properties),
65 modelType_(modelType),
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_))
Base class for generic sub-models requiring to be read from dictionary. Provides a mechanism to read ...
virtual bool active() const
Return the model 'active' status - default active = true.
A class for handling words, derived from Foam::string.
A class for handling file names.
const dictionary & properties() const
Return const access to the properties dictionary.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const word & modelName() const
Return const access to the name of the sub-model.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
virtual void write(Ostream &os) const
Write.
const dictionary & dict() const
Return const access to the cloud dictionary.
messageStream Info
Information stream (uses stdout - output is on the master only)
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
virtual bool defaultCoeffs(const bool printMsg) const
Returns true if defaultCoeffs is true and outputs on printMsg.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dictionary & coeffDict() const
Return const access to the coefficients dictionary.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & indent(Ostream &os)
Indent stream.
bool getModelDict(const word &entryName, dictionary &dict) const
Retrieve dictionary, return true if set.
dictionary subOrEmptyDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX, const bool mandatory=false) const
const word & modelType() const
Return const access to the sub-model type.
virtual void cacheFields(const bool store)
Cache dependent sub-model fields.
virtual bool writeTime() const
Flag to indicate when to write a property.
virtual ~subModelBase()
Destructor.
static const word null
An empty word.
const word & baseName() const
Return const access to the base name of the sub-model.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
subModelBase(dictionary &properties)
Construct null.
virtual fileName localPath() const
Output directory.