Go to the documentation of this file.
43 for (
const wordRe& item : list)
101 return faceZoneInclude_.size();
110 patchInclude_.clear();
111 patchExclude_.clear();
112 faceZoneInclude_.clear();
113 cellZoneInclude_.clear();
135 if (patchInclude_.size())
137 patchInclude_.clear();
140 <<
"Deactivating boundary, removed old patch selection"
151 if (!cellZones_ && cellZoneInclude_.size())
153 cellZoneInclude_.clear();
156 <<
"Deactivating cellZones, removed old zone selection"
167 patchInclude_ =
wordRes(patterns);
169 if (!boundary_ && patchInclude_.size())
171 patchInclude_.clear();
174 <<
"Ignoring patch selection, boundary is disabled"
185 patchInclude_ =
wordRes(std::move(patterns));
187 if (!boundary_ && patchInclude_.size())
189 patchInclude_.clear();
192 <<
"Ignoring patch selection, boundary is disabled"
203 patchExclude_ =
wordRes(patterns);
212 patchExclude_ =
wordRes(std::move(patterns));
221 faceZoneInclude_ =
wordRes(patterns);
230 faceZoneInclude_ =
wordRes(std::move(patterns));
239 cellZoneInclude_ =
wordRes(patterns);
241 if (!cellZones_ && cellZoneInclude_.size())
243 cellZoneInclude_.clear();
246 <<
"Ignoring cellZone selection, cellZones are disabled"
257 cellZoneInclude_ =
wordRes(std::move(patterns));
259 if (!cellZones_ && cellZoneInclude_.size())
261 cellZoneInclude_.clear();
264 <<
"Ignoring cellZone selection, cellZones are disabled"
272 return patchInclude_;
278 return patchExclude_;
284 return faceZoneInclude_;
290 return cellZoneInclude_;
301 if (!cellZoneInclude_.empty())
313 if (!patchInclude_.empty())
318 if (!patchExclude_.empty())
330 if (!faceZoneInclude_.empty())
bool useCellZones() const
Using cellZones?
bool useBoundaryMesh() const
Using boundary?
const wordRes & faceZoneSelection() const
Selection of faceZones. Empty if unspecified.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
bool useFaceZones() const
Using faceZones?
bool useInternalMesh() const
Using internal?
const wordRes & cellZoneSelection() const
Selection of faceZones. Empty if unspecified.
static const char * name(const bool b) noexcept
A string representation of bool as "false" / "true".
void decrIndent()
Decrement the indent level.
void reset()
Reset to defaults.
bool lazy() const
Lazy creation? (ie, ensightMesh starts as needsUpdate)
virtual Ostream & writeKeyword(const keyType &kw)
Write the keyword followed by an appropriate indentation.
const wordRes & patchSelection() const
Selection of patches. Empty if unspecified.
void incrIndent()
Increment the indent level.
static Ostream & printPatterns(Ostream &os, const wordRes &list)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A List of wordRe with additional matching capabilities.
void print(Ostream &os) const
Report values.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Begin list [isseparator].
options()
Default construct. Non-lazy with internal/boundary/cellZones.
#define WarningInFunction
Report a warning using Foam::Warning.
const wordRes & patchExclude() const
Selection of black listed patches. Empty if unspecified.