58 checkTimeIndex_ = mesh_.time().timeIndex() + 2;
64 allOk = (allOk && ok);
72 if (mesh_.time().timeIndex() == checkTimeIndex_)
88 checkTimeIndex_(mesh_.time().startTimeIndex() + 2)
96 reset(optionsDict(
dict));
117 for (
const entry& dEntry :
dict)
121 const word&
name = dEntry.keyword();
136 for (
const fv::option& source : *
this)
138 const label fieldi = source.applyToField(fieldName);
152 return readOptions(optionsDict(
dict));
176 options.writeData(
os);
bool readOptions(const dictionary &dict)
Read options dictionary.
patchWriters resize(patchIds.size())
A list of keyword definitions, which are a keyword followed by a number of values (eg...
defineTypeNameAndDebug(atmAmbientTurbSource, 0)
optionList(const optionList &)=delete
No copy construct.
static const dictionary & optionsDict(const dictionary &dict)
Return "options" sub-dictionary (if present) or return dict.
constexpr char nl
The newline '\n' character (0x0a)
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
static autoPtr< option > New(const word &name, const dictionary &dict, const fvMesh &mesh)
Return a reference to the selected fvOption model.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
virtual void writeFooter(Ostream &) const
Write the source footer information.
virtual void checkApplied() const
Check that the source has been applied.
virtual bool read(const dictionary &dict)
Read source dictionary.
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.
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.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
virtual void writeData(Ostream &) const
Write the source properties.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
Mesh data needed to do the Finite Volume discretisation.
virtual void writeHeader(Ostream &) const
Write the source header information.
List of finite volume options.
virtual bool writeData(Ostream &os) const
Write data to Ostream.
A keyword and a list of tokens is an 'entry'.
Base abstract class for handling finite volume options (i.e. fvOption).
virtual bool read(const dictionary &dict)
Read dictionary.