Go to the documentation of this file.
50 return dict.optionalSubDict(
"options", keyType::LITERAL);
64 allOk = (allOk && ok);
72 if (mesh_.time().timeIndex() == checkTimeIndex_)
88 checkTimeIndex_(mesh_.time().startTimeIndex() + 2)
98 checkTimeIndex_(mesh_.time().startTimeIndex() + 2)
123 const word&
name = dEntry.keyword();
154 return readOptions(optionsDict(
dict));
A keyword and a list of tokens is an 'entry'.
const word & name() const noexcept
Return const access to the source name.
bool appliesToField(const word &fieldName) const
Return whether there is something to apply to the field.
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
A class for handling words, derived from Foam::string.
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.
virtual void writeData(Ostream &) const
Write the source properties.
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)
label timeIndex() const noexcept
Return current time index.
patchWriters resize(patchIds.size())
Base abstract class for handling finite volume options (i.e. fvOption).
bool readOptions(const dictionary &dict)
Read options dictionary.
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,...
OBJstream os(runTime.globalPath()/outputName)
virtual void writeHeader(Ostream &) const
Write the source header information.
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.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
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,...
List of finite volume options.
virtual bool read(const dictionary &dict)
Read dictionary.
static const dictionary & optionsDict(const dictionary &dict)
Return "options" sub-dictionary (if present) or return dict.
virtual void writeFooter(Ostream &) const
Write the source footer information.
virtual bool writeData(Ostream &os) const
Write data to Ostream.