55 const word& physicalType,
61 physicalType_(physicalType),
75 dict.readIfPresent(
"physicalType", physicalType_);
76 dict.readIfPresent(
"inGroups", inGroups_);
97 zoneIdentifier&& ident,
101 zoneIdentifier(
std::move(ident))
114 label idx =
name.empty() ? -1 : inGroups_.find(
name);
118 for (label i = idx + 1; i < inGroups_.size(); ++i)
120 if (inGroups_[i] !=
name)
122 inGroups_[idx] = std::move(inGroups_[i]);
126 inGroups_.resize(idx);
133 if (!physicalType_.empty())
138 if (!inGroups_.empty())
141 inGroups_.writeList(
os, 0);
zoneIdentifier()
Default construct: name="", index=0.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual bool check(const char *operation) const
Check IOstream status for given operation.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void removeGroup(const word &name)
Remove group for the zone.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
void write(Ostream &os) const
Write (physicalType, inGroups) dictionary entries (without surrounding braces)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Identifies a mesh zone by name and index, with optional physical type and group information.
virtual Ostream & endEntry()
Write end entry (';') followed by newline.
virtual Ostream & writeKeyword(const keyType &kw)
Write the keyword followed by an appropriate indentation.