Like polyPatch but without reference to mesh. patchIdentifier::index is not used. Used in boundaryMesh to hold data on patches. More...
Public Member Functions | |
boundaryPatch (const word &name, const label index, const label size, const label start, const word &physicalType=word::null) | |
Construct from components. More... | |
boundaryPatch (const word &name, const dictionary &dict, const label index) | |
Construct from dictionary. More... | |
boundaryPatch (const boundaryPatch &) | |
Construct as copy. More... | |
boundaryPatch (const boundaryPatch &, const label index) | |
Construct as copy, resetting the index. More... | |
autoPtr< boundaryPatch > | clone () const |
Clone. More... | |
~boundaryPatch () | |
Destructor. More... | |
label | size () const |
label & | size () |
label | start () const |
label & | start () |
virtual void | write (Ostream &) const |
Write dictionary. More... | |
Public Member Functions inherited from patchIdentifier | |
patchIdentifier (const word &name, const label index, const word &physicalType=word::null, const wordList &inGroups=wordList()) | |
Construct from components. More... | |
patchIdentifier (const word &name, const dictionary &dict, const label index) | |
Construct from dictionary. More... | |
patchIdentifier (const patchIdentifier &p, const label index) | |
Copy construct, resetting the index. More... | |
virtual | ~patchIdentifier ()=default |
Destructor. More... | |
const word & | name () const |
Return the patch name. More... | |
word & | name () |
Modifiable patch name. More... | |
const word & | physicalType () const |
The optional physical type of the patch. More... | |
word & | physicalType () |
Modifiable optional physical type of the patch. More... | |
label | index () const |
The index of this patch in the boundaryMesh. More... | |
label & | index () |
Modifiable the index of this patch in the boundaryMesh. More... | |
const wordList & | inGroups () const |
The optional groups that the patch belongs to. More... | |
wordList & | inGroups () |
Modifiable optional groups that the patch belongs to. More... | |
bool | inGroup (const word &name) const |
Check if the patch is in named group. More... | |
void | write (Ostream &os) const |
Write patchIdentifier as a dictionary. More... | |
Friends | |
Ostream & | operator<< (Ostream &, const boundaryPatch &) |
Like polyPatch but without reference to mesh. patchIdentifier::index is not used. Used in boundaryMesh to hold data on patches.
Definition at line 59 of file boundaryPatch.H.
boundaryPatch | ( | const word & | name, |
const label | index, | ||
const label | size, | ||
const label | start, | ||
const word & | physicalType = word::null |
||
) |
Construct from components.
Definition at line 35 of file boundaryPatch.C.
boundaryPatch | ( | const word & | name, |
const dictionary & | dict, | ||
const label | index | ||
) |
Construct from dictionary.
Definition at line 50 of file boundaryPatch.C.
boundaryPatch | ( | const boundaryPatch & | p | ) |
Construct as copy.
Definition at line 62 of file boundaryPatch.C.
boundaryPatch | ( | const boundaryPatch & | p, |
const label | index | ||
) |
Construct as copy, resetting the index.
Definition at line 70 of file boundaryPatch.C.
~boundaryPatch | ( | ) |
Destructor.
Definition at line 86 of file boundaryPatch.C.
Foam::autoPtr< Foam::boundaryPatch > clone | ( | ) | const |
Clone.
Definition at line 78 of file boundaryPatch.C.
References autoPtr< T >::New().
|
inline |
Definition at line 106 of file boundaryPatch.H.
Referenced by boundaryMesh::addPatch(), boundaryMesh::changeFaces(), boundaryMesh::changePatchType(), boundaryMesh::deletePatch(), boundaryMesh::read(), boundaryMesh::readTriSurface(), and boundaryMesh::whichPatch().
|
inline |
Definition at line 111 of file boundaryPatch.H.
|
inline |
Definition at line 116 of file boundaryPatch.H.
Referenced by boundaryMesh::addPatch(), boundaryMesh::changeFaces(), boundaryMesh::changePatchType(), boundaryMesh::deletePatch(), boundaryMesh::read(), boundaryMesh::readTriSurface(), boundaryMesh::whichPatch(), and boundaryMesh::writeTriSurface().
|
inline |
Definition at line 121 of file boundaryPatch.H.
|
virtual |
Write dictionary.
Definition at line 92 of file boundaryPatch.C.
References patchIdentifier::write(), and Ostream::writeEntry().
|
friend |