30 bool Foam::subModelBase::subModelBase::inLine()
const
32 return (modelName_ != word::null);
40 modelName_(
word::null),
41 properties_(properties),
43 baseName_(
word::null),
44 modelType_(
word::null),
54 const word& modelType,
58 modelName_(
word::null),
59 properties_(properties),
62 modelType_(modelType),
63 coeffDict_(
dict.optionalSubDict(modelType + dictExt))
69 const word& modelName,
76 modelName_(modelName),
77 properties_(properties),
80 modelType_(modelType),
87 modelName_(smb.modelName_),
88 properties_(smb.properties_),
90 baseName_(smb.baseName_),
91 modelType_(smb.modelType_),
92 coeffDict_(smb.coeffDict_)
142 bool def = coeffDict_.lookupOrDefault<
bool>(
"defaultCoeffs",
false);
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 any number of values (e....
Base class for generic sub-models requiring to be read from dictionary. Provides a mechanism to read ...
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 void write(Ostream &os) const
Write.
const dictionary & coeffDict() const
Return const access to the coefficients dictionary.
const dictionary & properties() const
Return const access to the properties dictionary.
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 defaultCoeffs(const bool printMsg) const
Returns true if defaultCoeffs is true and outputs on printMsg.
subModelBase(dictionary &properties)
Construct null.
A class for handling words, derived from string.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
Ostream & indent(Ostream &os)
Indent stream.