Go to the documentation of this file.
39 #ifndef geometricSurfacePatch_H
40 #define geometricSurfacePatch_H
71 static constexpr
const char*
const emptyType =
"empty";
82 ?
word(
"patch",
false)
83 :
word(
"patch" + std::to_string(
n),
false)
159 return geometricType_;
165 return geometricType_;
215 bool operator==(
const geometricSurfacePatch& a,
const geometricSurfacePatch&
b);
218 bool operator!=(
const geometricSurfacePatch& a,
const geometricSurfacePatch&
b);
222 Istream&
operator>>(Istream& is, geometricSurfacePatch& obj);
225 Ostream&
operator<<(Ostream& os,
const geometricSurfacePatch& obj);
label index() const
The index of this patch/zone in the surface mesh.
word & name()
Modifiable patch/zone name.
A class for handling words, derived from Foam::string.
The geometricSurfacePatch is like patchIdentifier but for surfaces. Holds type, name and index.
geometricSurfacePatch()
Default construct, use index=0, name="patch".
static word defaultName(const label n=-1)
Default patch name: "patch" or "patchN".
Istream & operator>>(Istream &, directionInfo &)
Identifies a surface patch/zone by name, patch index and geometricType.
bool operator!=(const eddy &a, const eddy &b)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
const word & geometricType() const
The geometric type of the patch/zone.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
void write(Ostream &os) const
geometricSurfacePatch operator()(const surfZoneIdentifier &ident) const
label & index()
Modifiable index of this patch/zone in the surface mesh.
#define FOAM_DEPRECATED(since)
Helper to convert identifier types as an operation.
static constexpr const char *const emptyType
The name for an 'empty' type.
class FOAM_DEPRECATED_FOR(2017-05, "Foam::Enum") NamedEnum
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
word & geometricType()
Modifiable geometric type of the patch/zone.
void writeDict(Ostream &os) const
Deprecated(2020-01) Write dictionary.
const word & name() const
The patch/zone name.
geometricSurfacePatch & operator=(const geometricSurfacePatch &)=default
Copy assignment.