Go to the documentation of this file.
49 if (
dict.found(
"options"))
51 return dict.subDict(
"options");
67 option& bs = this->operator[](i);
69 allOk = (allOk && ok);
77 if (mesh_.time().timeIndex() == checkTimeIndex_)
81 const option& bs = this->operator[](i);
94 checkTimeIndex_(mesh_.time().startTimeIndex() + 2)
104 checkTimeIndex_(mesh_.time().startTimeIndex() + 2)
129 const word&
name = dEntry.keyword();
146 const option& source = this->operator[](i);
162 return readOptions(optionsDict(
dict));
172 this->operator[](i).writeHeader(os);
173 this->operator[](i).writeData(os);
174 this->operator[](i).writeFooter(os);
A keyword and a list of tokens is an 'entry'.
bool appliesToField(const word &fieldName) const
Return whether there is something to apply to the field.
A class for handling words, derived from Foam::string.
const dictionary & optionsDict(const dictionary &dict) const
Return the "options" sub-dictionary if present otherwise return dict.
const word & name() const
Return const access to the source name.
optionList(const optionList &)=delete
No copy construct.
virtual void checkApplied() const
Check that the source has been applied.
const fvMesh & mesh_
Reference to the mesh database.
void reset(const dictionary &dict)
Reset the source list.
label checkTimeIndex_
Time index to check that all defined sources have been applied.
#define forAll(list, i)
Loop across all elements in list.
virtual label applyToField(const word &fieldName) const
Return index of field name if found in fieldNames list.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
patchWriters resize(patchIds.size())
Finite volume options abstract base class. Provides a base set of controls, e.g.:
bool readOptions(const dictionary &dict)
Read options dictionary.
word name(const complex &c)
Return string representation of complex.
void checkApplied() const
Check that all sources have been applied.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
static autoPtr< option > New(const word &name, const dictionary &dict, const fvMesh &mesh)
Return a reference to the selected fvOption model.
virtual bool read(const dictionary &dict)
Read source dictionary.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
const Time & time() const
Return the top-level database.
defineTypeNameAndDebug(atmAmbientTurbSource, 0)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
label timeIndex() const
Return current time index.
bool good() const
Return true if next operation might succeed.
List of finite volume options.
virtual bool read(const dictionary &dict)
Read dictionary.
virtual bool writeData(Ostream &os) const
Write data to Ostream.