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)
const word & name() const
Return const access to the source name.
bool readOptions(const dictionary &dict)
Read options dictionary.
#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.
virtual void checkApplied() const
Check that the source has been applied.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const fvMesh & mesh_
Reference to the mesh database.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
bool good() const
Return true if next operation might succeed.
const dictionary & optionsDict(const dictionary &dict) const
Return the "options" sub-dictionary if present otherwise return dict.
label checkTimeIndex_
Time index to check that all defined sources have been applied.
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.
virtual bool writeData(Ostream &os) const
Write data to Ostream.
void checkApplied() const
Check that all sources have been applied.
virtual bool read(const dictionary &dict)
Read source dictionary.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
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.
word name(const complex &)
Return a string representation of a complex.
const T & operator[](const label) const
Return element const reference.
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.
Finite volume options abstract base class. Provides a base set of controls, e.g.: ...
optionList(const optionList &)
Disallow default bitwise copy construct.
virtual bool read(const dictionary &dict)
Read dictionary.