42#ifndef surfZoneIdentifier_H
43#define surfZoneIdentifier_H
78 static constexpr const char*
const emptyType =
"empty";
90 :
word(
"zone" + std::to_string(
n),
false)
156 return geometricType_;
162 return geometricType_;
186bool operator==(
const surfZoneIdentifier& a,
const surfZoneIdentifier&
b);
189bool operator!=(
const surfZoneIdentifier& a,
const surfZoneIdentifier&
b);
193Istream&
operator>>(Istream& is, surfZoneIdentifier& obj);
196Ostream&
operator<<(Ostream&
os,
const surfZoneIdentifier& obj);
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Identifies a surface patch/zone by name and index, with optional geometric type.
surfZoneIdentifier()
Default construct. Uses name="", index=0.
word & name()
Modifiable patch/zone name.
label index() const
The index of this patch/zone in the surface mesh.
const word & name() const
The patch/zone name.
static constexpr const char *const emptyType
The name for an 'empty' type.
word & geometricType()
Modifiable geometric type of the patch/zone.
label & index()
Modifiable index of this patch/zone in the surface mesh.
const word & geometricType() const
The geometric type of the patch/zone.
static word defaultName(const label n=-1)
Default zone name: "zone" or "zoneN".
surfZoneIdentifier & operator=(const surfZoneIdentifier &)=default
Copy assignment.
surfZoneIdentifier(const surfZoneIdentifier &)=default
Copy construct.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
bool operator!=(const eddy &a, const eddy &b)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
Istream & operator>>(Istream &, directionInfo &)