37 #ifndef subModelBase_H 38 #define subModelBase_H 98 const word& dictExt =
"Coeffs" 159 const word& entryName,
182 const word& entryName,
const dictionary & properties() const
Return const access to the properties dictionary.
void getModelProperty(const word &entryName, Type &value) const
Retrieve generic property from the sub-model.
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.
Traits class for primitives.
virtual bool writeTime() const =0
Flag to indicate when to write a property.
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.
virtual void write(Ostream &os) const
Write.
void setModelProperty(const word &entryName, const Type &value)
Add generic property to the sub-model.
A class for handling words, derived from string.
bool inLine() const
Flag to indicate whether data is/was read in-line.
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.
virtual ~subModelBase()
Destructor.
Base class for generic sub-models requiring to be read from dictionary. Provides a mechanism to read ...
const word & baseName() const
Return const access to the base name of the sub-model.
void setBaseProperty(const word &entryName, const Type &value)
Add generic property to the base model.
void operator=(const subModelBase &)=delete
Disallow default bitwise assignment.
const dictionary dict_
Copy of dictionary used during construction.
Type getBaseProperty(const word &entryName, const Type &defaultValue=pTraits< Type >::zero) const
Retrieve generic property from the base model.
const word modelName_
Name of the sub-model.