39#ifndef Foam_geometricSurfacePatch_H
40#define Foam_geometricSurfacePatch_H
72 static constexpr const char*
const emptyType =
"empty";
84 :
word(
"patch" + std::to_string(
n),
false)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
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 geometric type.
word & name() noexcept
Modifiable patch/zone name.
geometricSurfacePatch()
Default construct. Uses name="patch", index=0, type="".
const word & geometricType() const noexcept
The geometric type of the patch/zone.
geometricSurfacePatch(Istream &is, const label index)=delete
Removed(2020-01) Construct from Istream.
static constexpr const char *const emptyType
The name for an 'empty' type.
label & index() noexcept
Modifiable index of this patch/zone in the surface mesh.
label index() const noexcept
The index of this patch/zone in the surface mesh.
geometricSurfacePatch(geometricSurfacePatch &&)=default
Move construct.
geometricSurfacePatch & operator=(geometricSurfacePatch &&)=default
Move assignment.
const word & name() const noexcept
The patch/zone name.
void writeDict(Ostream &os) const
Deprecated(2020-01) Write dictionary.
static word defaultName(const label n=-1)
Default patch name: "patch" or "patchN".
word & geometricType() noexcept
Modifiable geometric type of the patch/zone.
geometricSurfacePatch & operator=(const geometricSurfacePatch &)=default
Copy assignment.
geometricSurfacePatch(const geometricSurfacePatch &)=default
Copy construct.
Identifies a surface patch/zone by name and index, with optional geometric type.
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 &)
Includes some common C++ headers, defines global macros and templates used in multiple places by Open...
#define FOAM_DEPRECATED_FOR(since, replacement)
Helper to convert identifier types as an operation.