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 (polyPatchList &patches) |
Change patches. 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 numbering. 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 50 of file repatchPolyTopoChanger.H.
|
explicit |
Construct for given mesh.
Definition at line 45 of file repatchPolyTopoChanger.C.
|
virtualdefault |
Destructor.
void changePatches | ( | polyPatchList & | patches | ) |
Change patches.
Definition at line 55 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 85 of file repatchPolyTopoChanger.C.
References Foam::abort(), Foam::ensightOutput::debug, Foam::FatalError, FatalErrorInFunction, faceZone::flipMap(), patchID, and faceZone::whichFace().
Referenced by boundaryMesh::patchify().
void setFaceZone | ( | const label | faceID, |
const label | zoneID, | ||
const bool | zoneFlip | ||
) |
Set zone ID for a face.
Definition at line 137 of file repatchPolyTopoChanger.C.
References Foam::abort(), Foam::ensightOutput::debug, Foam::FatalError, and FatalErrorInFunction.
void changeAnchorPoint | ( | const label | faceID, |
const label | fp | ||
) |
Change anchor point (zero'th point of face) for a boundary face.
Definition at line 173 of file repatchPolyTopoChanger.C.
References Foam::abort(), Foam::ensightOutput::debug, f(), Foam::FatalError, FatalErrorInFunction, faceZone::flipMap(), forAll, patchID, UList< T >::size(), and faceZone::whichFace().
void repatch | ( | ) |
Re-patch the mesh.
Definition at line 269 of file repatchPolyTopoChanger.C.
Referenced by boundaryMesh::patchify().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.