47 if (dict.
found(
"options"))
60 checkTimeIndex_ = mesh_.time().timeIndex() + 2;
65 option& bs = this->operator[](i);
67 allOk = (allOk && ok);
75 if (mesh_.time().timeIndex() == checkTimeIndex_)
79 const option& bs = this->operator[](i);
92 checkTimeIndex_(mesh_.time().startTimeIndex() + 2)
126 const word&
name = iter().keyword();
defineTypeNameAndDebug(option, 0)
bool readOptions(const dictionary &dict)
Read options dictionary.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const dictionary & optionsDict(const dictionary &dict) const
Return the "options" sub-dictionary if present otherwise return dict.
const fvMesh & mesh_
Reference to the mesh database.
const T & operator[](const label) const
Return element const reference.
tmp< fvMatrix< Type > > source(GeometricField< Type, fvPatchField, volMesh > &field, const word &fieldName, const dimensionSet &ds)
Return source for equation with specified name and dimensions.
label checkTimeIndex_
Time index to check that all defined sources have been applied.
bool good() const
Return true if next operation might succeed.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
static autoPtr< option > New(const word &name, const dictionary &dict, const fvMesh &mesh)
Return a reference to the selected fvOption model.
A class for handling words, derived from string.
optionList(const fvMesh &mesh)
Construct null.
virtual void checkApplied() const
Check that the source has been applied.
virtual bool read(const dictionary &dict)
Read source dictionary.
const word & name() const
Return const access to the source name.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
bool appliesToField(const word &fieldName) const
Return whether there is something to apply to the field.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void reset(const dictionary &dict)
Reset the source list.
void checkApplied() const
Check that all sources have been applied.
word name(const complex &)
Return a string representation of a complex.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Mesh data needed to do the Finite Volume discretisation.
Ostream & operator<<(Ostream &, const ensightPart &)
List of finite volume options.
virtual label applyToField(const word &fieldName) const
Return index of field name if found in fieldNames list.
virtual bool writeData(Ostream &os) const
Write data to Ostream.
Finite volume options abstract base class. Provides a base set of controls, e.g.: ...
virtual bool read(const dictionary &dict)
Read dictionary.