Go to the documentation of this file.
48 return dict.optionalSubDict(
"options", keyType::LITERAL);
62 allOk = (allOk && ok);
70 if (mesh_.time().timeIndex() == checkTimeIndex_)
89 mesh_(
p.boundaryMesh().mesh()),
91 checkTimeIndex_(mesh_.time().startTimeIndex() + 2)
102 checkTimeIndex_(mesh_.time().startTimeIndex() + 2)
127 const word&
name = dEntry.keyword();
158 return readOptions(optionsDict(
dict));
A keyword and a list of tokens is an 'entry'.
virtual void writeFooter(Ostream &) const
Write the source footer information.
label checkTimeIndex_
Time index to check that all defined sources have been applied.
static const dictionary & optionsDict(const dictionary &dict)
Return "options" sub-dictionary (if present) or return dict.
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
const word & name() const noexcept
Return const access to the source name.
A class for handling words, derived from Foam::string.
virtual void checkApplied() const
Check that the source has been applied.
List of finite volume options.
static autoPtr< option > New(const word &name, const dictionary &dict, const fvPatch &patch)
Return a reference to the selected faOption model.
defineTypeNameAndDebug(limitVelocity, 0)
bool readOptions(const dictionary &dict)
Read options dictionary.
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.
virtual void writeData(Ostream &) const
Write the source properties.
patchWriters resize(patchIds.size())
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void writeHeader(Ostream &) const
Write the source header information.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
optionList(const optionList &)=delete
No copy construct.
bool appliesToField(const word &fieldName) const
Return whether there is something to apply to the field.
virtual bool read(const dictionary &dict)
Read source dictionary.
meshPtr reset(new Foam::fvMesh(Foam::IOobject(regionName, runTime.timeName(), runTime, Foam::IOobject::MUST_READ), false))
void reset(const dictionary &dict)
Reset the source list.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
Base abstract class for handling finite area options (i.e. faOption).
virtual bool read(const dictionary &dict)
Read dictionary.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
const Time & time() const
Return the top-level database.
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
const fvMesh & mesh_
Reference to the mesh database.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void checkApplied() const
Check that all sources have been applied.
virtual bool writeData(Ostream &os) const
Write data to Ostream.