Go to the documentation of this file.
48 if (
dict.found(
"options"))
50 return dict.subDict(
"options");
66 option& bs = this->operator[](i);
68 allOk = (allOk && ok);
76 if (mesh_.time().timeIndex() == checkTimeIndex_)
80 const option& bs = this->operator[](i);
96 mesh_(
p.boundaryMesh().mesh()),
98 checkTimeIndex_(mesh_.time().startTimeIndex() + 2)
100 reset(optionsDict(
dict));
109 checkTimeIndex_(mesh_.time().startTimeIndex() + 2)
134 const word&
name = dEntry.keyword();
149 return readOptions(optionsDict(
dict));
159 this->operator[](i).writeHeader(os);
160 this->operator[](i).writeData(os);
161 this->operator[](i).writeFooter(os);
A keyword and a list of tokens is an 'entry'.
label checkTimeIndex_
Time index to check that all defined sources have been applied.
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.
const word & name() const
Return const access to the source name.
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.
#define forAll(list, i)
Loop across all elements in list.
bool readOptions(const dictionary &dict)
Read options dictionary.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
patchWriters resize(patchIds.size())
word name(const complex &c)
Return string representation of complex.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
optionList(const optionList &)=delete
No copy construct.
virtual bool read(const dictionary &dict)
Read source dictionary.
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).
defineTypeNameAndDebug(faceSetOption, 0)
virtual bool read(const dictionary &dict)
Read dictionary.
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.
label timeIndex() const
Return current time index.
bool good() const
Return true if next operation might succeed.
virtual bool writeData(Ostream &os) const
Write data to Ostream.
const dictionary & optionsDict(const dictionary &dict) const
Return the "options" sub-dictionary if present otherwise return dict.