106 const word& dictExt =
"Coeffs"
153 virtual bool active()
const;
173 const word& entryName,
174 const Type& defaultValue = Type(
Zero)
191 const word& entryName,
204 const word& entryName,
205 const Type& defaultValue = Type(
Zero)
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,...
A class for handling file names.
Base class for generic sub-models requiring to be read from dictionary. Provides a mechanism to read ...
bool getModelProperty(const word &entryName, Type &value) const
Retrieve generic property from the sub-model.
const word modelType_
Type of the sub-model.
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.
bool inLine() const
Flag to indicate whether data is/was read in-line.
virtual fileName localPath() const
Output directory.
const dictionary & coeffDict() const
Return const access to the coefficients dictionary.
Type getBaseProperty(const word &entryName, const Type &defaultValue=Type(Zero)) const
Retrieve generic property from the base model.
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 coeffDict_
Coefficients dictionary.
const word baseName_
Name of the sub-model base class.
const dictionary dict_
Copy of dictionary used during construction.
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.
void setBaseProperty(const word &entryName, const Type &value)
Add generic property to the base model.
dictionary & properties_
Reference to properties dictionary e.g. for restart.
virtual bool writeTime() const
Flag to indicate when to write a property.
void setModelProperty(const word &entryName, const Type &value)
Add generic property to the sub-model.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
static constexpr const zero Zero
Global zero (0)