55 const word& physicalType,
61 physicalType_(physicalType),
75 dict.readIfPresent(
"physicalType", physicalType_);
76 dict.readIfPresent(
"inGroups", inGroups_);
88 physicalType_(ident.physicalType_),
89 inGroups_(ident.inGroups_)
97 if (!physicalType_.empty())
99 os.writeEntry(
"physicalType", physicalType_);
102 if (!inGroups_.
empty())
104 os.writeKeyword(
"inGroups");
zoneIdentifier()
Default construct. Uses 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.
constexpr char nl
The newline '\n' character (0x0a)
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
Ostream & writeList(Ostream &os, const label shortLen=0) const
Write List, with line-breaks in ASCII when length exceeds shortLen.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for 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.