58 checkTimeIndex_ = mesh_.time().timeIndex() + 2;
64 allOk = (allOk && ok);
72 if (mesh_.time().timeIndex() == checkTimeIndex_)
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);
176 options.writeData(
os);
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const fv::option * set(const label i) const
constexpr PtrList() noexcept
label count() const noexcept
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A keyword and a list of tokens is an 'entry'.
Mesh data needed to do the Finite Volume discretisation.
List of finite volume options.
void reset(const dictionary &dict)
Reset the source list.
const fvMesh & mesh_
Reference to the mesh database.
virtual bool writeData(Ostream &os) const
Write data to Ostream.
void checkApplied() const
Check that all sources have been applied.
bool readOptions(const dictionary &dict)
Read options dictionary.
virtual bool read(const dictionary &dict)
Read dictionary.
label checkTimeIndex_
Time index to check that all defined sources have been applied.
optionList(const optionList &)=delete
No copy construct.
tmp< fvMatrix< Type > > source(GeometricField< Type, fvPatchField, volMesh > &field, const word &fieldName, const dimensionSet &ds)
Return source for equation with specified name and dimensions.
bool appliesToField(const word &fieldName) const
Return whether there is something to apply to the field.
static const dictionary & optionsDict(const dictionary &dict)
Return "options" sub-dictionary (if present) or return dict.
Base abstract class for handling finite volume options (i.e. fvOption).
const word & name() const noexcept
Return const access to the source name.
static autoPtr< option > New(const word &name, const dictionary &dict, const fvMesh &mesh)
Return a reference to the selected fvOption model.
virtual void checkApplied() const
Check that the source has been applied.
virtual bool read(const dictionary &dict)
Read source dictionary.
virtual void writeHeader(Ostream &) const
Write the source header information.
virtual void writeFooter(Ostream &) const
Write the source footer information.
virtual void writeData(Ostream &) const
Write the source properties.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
limits reset(1/(limits.max()+VSMALL), 1/(limits.min()+VSMALL))
patchWriters resize(patchIds.size())
OBJstream os(runTime.globalPath()/outputName)
Namespace for finite-volume.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
constexpr char nl
The newline '\n' character (0x0a).