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,
69 const word& modelName,
const dictionary & properties() const
Return const access to the properties dictionary.
Ostream & indent(Ostream &os)
Indent stream.
subModelBase(dictionary &properties)
Construct null.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const word modelType_
Type of the sub-model.
dictionary & properties_
Reference to properties dictionary e.g. for restart.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const word baseName_
Name of the sub-model base class.
const word & modelName() const
Return const access to the name of the sub-model.
const dictionary coeffDict_
Coefficients dictionary.
const dictionary & dict() const
Return const access to the cloud dictionary.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
virtual void write(Ostream &os) const
Write.
A class for handling words, derived from string.
static const word null
An empty word.
const dictionary & coeffDict() const
Return const access to the coefficients dictionary.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
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 defaultCoeffs(const bool printMsg) const
Returns true if defaultCoeffs is true and outputs on printMsg.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
virtual ~subModelBase()
Destructor.
Base class for generic sub-models requiring to be read from dictionary. Provides a mechanism to read ...
virtual bool writeTime() const
Flag to indicate when to write a property.
const word & baseName() const
Return const access to the base name of the sub-model.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
const dictionary dict_
Copy of dictionary used during construction.
const word modelName_
Name of the sub-model.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
virtual bool active() const
Return the model 'active' status - default active = true.