A mesh which allows changes in the patch distribution of the boundary faces. The change in patching is set using changePatchID. For a boundary face, a new patch ID is given. More...
Public Member Functions | |
repatchPolyTopoChanger (polyMesh &mesh) | |
Construct for given mesh. More... | |
virtual | ~repatchPolyTopoChanger ()=default |
Destructor. More... | |
void | changePatches (const List< polyPatch * > &patches) |
Change patches. More... | |
void | changePatchID (const label faceID, const label patchID) |
Change patch ID for a boundary face. Note: patchID should be in new. More... | |
void | setFaceZone (const label faceID, const label zoneID, const bool zoneFlip) |
Set zone ID for a face. More... | |
void | changeAnchorPoint (const label faceID, const label fp) |
Change anchor point (zero'th point of face) for a boundary face. More... | |
void | repatch () |
Re-patch the mesh. More... | |
A mesh which allows changes in the patch distribution of the boundary faces. The change in patching is set using changePatchID. For a boundary face, a new patch ID is given.
Definition at line 54 of file repatchPolyTopoChanger.H.
|
explicit |
Construct for given mesh.
Definition at line 52 of file repatchPolyTopoChanger.C.
|
virtualdefault |
Destructor.
Change patches.
Definition at line 61 of file repatchPolyTopoChanger.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, and patches.
Referenced by boundaryMesh::patchify().
void changePatchID | ( | const label | faceID, |
const label | patchID | ||
) |
Change patch ID for a boundary face. Note: patchID should be in new.
numbering.
Definition at line 79 of file repatchPolyTopoChanger.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, faceZone::flipMap(), patchID, faceZone::whichFace(), and zoneID.
Referenced by boundaryMesh::patchify().
void setFaceZone | ( | const label | faceID, |
const label | zoneID, | ||
const bool | zoneFlip | ||
) |
Set zone ID for a face.
Definition at line 131 of file repatchPolyTopoChanger.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and zoneID.
void changeAnchorPoint | ( | const label | faceID, |
const label | fp | ||
) |
Change anchor point (zero'th point of face) for a boundary face.
Definition at line 167 of file repatchPolyTopoChanger.C.
References Foam::abort(), f(), Foam::FatalError, FatalErrorInFunction, faceZone::flipMap(), forAll, patchID, UList< T >::size(), faceZone::whichFace(), and zoneID.
void repatch | ( | ) |
Re-patch the mesh.
Definition at line 264 of file repatchPolyTopoChanger.C.
Referenced by boundaryMesh::patchify().