The geometricSurfacePatch is like patchIdentifier but for surfaces. Holds type, name and index. More...
Classes | |
struct | fromIdentifier |
Helper to convert identifier types as an operation. More... | |
Public Member Functions | |
geometricSurfacePatch (const geometricSurfacePatch &)=default | |
Copy construct. More... | |
geometricSurfacePatch & | operator= (const geometricSurfacePatch &)=default |
Copy assignment. More... | |
geometricSurfacePatch () | |
Default construct, use index=0, name="patch". More... | |
geometricSurfacePatch (const label index) | |
Construct null with specified index. More... | |
geometricSurfacePatch (const word &name, const label index) | |
Construct from mandatory components. More... | |
geometricSurfacePatch (const word &name, const label index, const word &geometricType) | |
Construct from components. More... | |
geometricSurfacePatch (const word &name, const dictionary &dict, const label index) | |
Construct from dictionary. More... | |
geometricSurfacePatch (const surfZoneIdentifier &ident) | |
Implicit conversion from surfZoneIdentifier. More... | |
const word & | name () const |
The patch/zone name. More... | |
word & | name () |
Modifiable patch/zone name. More... | |
const word & | geometricType () const |
The geometric type of the patch/zone. More... | |
word & | geometricType () |
Modifiable geometric type of the patch/zone. More... | |
label | index () const |
The index of this patch/zone in the surface mesh. More... | |
label & | index () |
Modifiable index of this patch/zone in the surface mesh. More... | |
void | write (Ostream &os) const |
geometricSurfacePatch (Istream &is, const label index)=delete | |
Removed(2020-01) Construct from Istream. More... | |
geometricSurfacePatch (const word &geometricType, const word &name, const label index) | |
Deprecated(2020-01) Construct from components. More... | |
void | writeDict (Ostream &os) const |
Deprecated(2020-01) Write dictionary. More... | |
Static Public Member Functions | |
static word | defaultName (const label n=-1) |
Default patch name: "patch" or "patchN". More... | |
Static Public Attributes | |
static constexpr const char *const | emptyType = "empty" |
The name for an 'empty' type. More... | |
The geometricSurfacePatch is like patchIdentifier but for surfaces. Holds type, name and index.
Definition at line 52 of file geometricSurfacePatch.H.
|
default |
Copy construct.
Default construct, use index=0, name="patch".
Definition at line 57 of file geometricSurfacePatch.C.
Referenced by geometricSurfacePatch::fromIdentifier::operator()().
|
explicit |
Construct null with specified index.
Definition at line 63 of file geometricSurfacePatch.C.
geometricSurfacePatch | ( | const word & | name, |
const label | index | ||
) |
Construct from mandatory components.
Definition at line 72 of file geometricSurfacePatch.C.
geometricSurfacePatch | ( | const word & | name, |
const label | index, | ||
const word & | geometricType | ||
) |
Construct from components.
Definition at line 84 of file geometricSurfacePatch.C.
geometricSurfacePatch | ( | const word & | name, |
const dictionary & | dict, | ||
const label | index | ||
) |
Construct from dictionary.
Definition at line 97 of file geometricSurfacePatch.C.
References dict, and dictionary::readIfPresent().
geometricSurfacePatch | ( | const surfZoneIdentifier & | ident | ) |
Implicit conversion from surfZoneIdentifier.
Definition at line 112 of file geometricSurfacePatch.C.
|
delete |
Removed(2020-01) Construct from Istream.
geometricSurfacePatch | ( | const word & | geometricType, |
const word & | name, | ||
const label | index | ||
) |
Deprecated(2020-01) Construct from components.
Definition at line 197 of file geometricSurfacePatch.C.
|
inlinestatic |
Default patch name: "patch" or "patchN".
Definition at line 76 of file geometricSurfacePatch.H.
References n.
Referenced by boundaryMesh::readTriSurface().
|
default |
Copy assignment.
|
inline |
The patch/zone name.
Definition at line 144 of file geometricSurfacePatch.H.
Referenced by Foam::operator<<(), Foam::operator==(), Foam::operator>>(), and boundaryMesh::readTriSurface().
|
inline |
Modifiable patch/zone name.
Definition at line 150 of file geometricSurfacePatch.H.
|
inline |
The geometric type of the patch/zone.
Definition at line 156 of file geometricSurfacePatch.H.
Referenced by Foam::operator<<(), Foam::operator==(), Foam::operator>>(), and boundaryMesh::readTriSurface().
|
inline |
Modifiable geometric type of the patch/zone.
Definition at line 162 of file geometricSurfacePatch.H.
|
inline |
The index of this patch/zone in the surface mesh.
Definition at line 168 of file geometricSurfacePatch.H.
|
inline |
Modifiable index of this patch/zone in the surface mesh.
Definition at line 174 of file geometricSurfacePatch.H.
void write | ( | Ostream & | os | ) | const |
Write (geometricType) dictionary entry (without surrounding braces)
Definition at line 122 of file geometricSurfacePatch.C.
References Ostream::writeEntry().
Referenced by surfacePatch::write(), and geometricSurfacePatch::writeDict().
|
inline |
Deprecated(2020-01) Write dictionary.
Definition at line 204 of file geometricSurfacePatch.H.
References geometricSurfacePatch::write().
|
staticconstexpr |
The name for an 'empty' type.
Definition at line 70 of file geometricSurfacePatch.H.
Referenced by boundaryMesh::readTriSurface().