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... | |
repatchPolyTopoChanger (const repatchPolyTopoChanger &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~repatchPolyTopoChanger () |
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... | |
void | operator= (const repatchPolyTopoChanger &)=delete |
Disallow default bitwise assignment. 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 51 of file repatchPolyTopoChanger.H.
|
explicit |
Construct for given mesh.
Definition at line 52 of file repatchPolyTopoChanger.C.
References repatchPolyTopoChanger::changePatches().
|
delete |
Disallow default bitwise copy construction.
|
inlinevirtual |
Destructor.
Definition at line 80 of file repatchPolyTopoChanger.H.
References repatchPolyTopoChanger::changeAnchorPoint(), repatchPolyTopoChanger::changePatches(), repatchPolyTopoChanger::changePatchID(), repatchPolyTopoChanger::operator=(), patches, repatchPolyTopoChanger::repatch(), and repatchPolyTopoChanger::setFaceZone().
Change patches.
Definition at line 62 of file repatchPolyTopoChanger.C.
References polyMesh::addPatches(), repatchPolyTopoChanger::changePatchID(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, and polyMesh::removeBoundary().
Referenced by boundaryMesh::patchify(), repatchPolyTopoChanger::repatchPolyTopoChanger(), and repatchPolyTopoChanger::~repatchPolyTopoChanger().
Change patch ID for a boundary face. Note: patchID should be in new.
numbering.
Definition at line 80 of file repatchPolyTopoChanger.C.
References Foam::abort(), polyMesh::boundaryMesh(), polyMesh::faceOwner(), polyMesh::faces(), polyMesh::faceZones(), Foam::FatalError, FatalErrorInFunction, faceZone::flipMap(), primitiveMesh::isInternalFace(), polyTopoChange::setAction(), repatchPolyTopoChanger::setFaceZone(), UPtrList< T >::size(), List< T >::size(), faceZone::whichFace(), and ZoneMesh< ZoneType, MeshType >::whichZone().
Referenced by repatchPolyTopoChanger::changePatches(), boundaryMesh::patchify(), and repatchPolyTopoChanger::~repatchPolyTopoChanger().
Set zone ID for a face.
Definition at line 132 of file repatchPolyTopoChanger.C.
References Foam::abort(), polyMesh::boundaryMesh(), repatchPolyTopoChanger::changeAnchorPoint(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, polyTopoChange::setAction(), List< T >::size(), and polyBoundaryMesh::whichPatch().
Referenced by repatchPolyTopoChanger::changePatchID(), and repatchPolyTopoChanger::~repatchPolyTopoChanger().
Change anchor point (zero'th point of face) for a boundary face.
Definition at line 168 of file repatchPolyTopoChanger.C.
References Foam::abort(), polyMesh::boundaryMesh(), f(), polyMesh::faceOwner(), polyMesh::faces(), polyMesh::faceZones(), Foam::FatalError, FatalErrorInFunction, faceZone::flipMap(), forAll, polyTopoChange::setAction(), List< T >::size(), faceZone::whichFace(), polyBoundaryMesh::whichPatch(), and ZoneMesh< ZoneType, MeshType >::whichZone().
Referenced by repatchPolyTopoChanger::setFaceZone(), and repatchPolyTopoChanger::~repatchPolyTopoChanger().
void repatch | ( | ) |
Re-patch the mesh.
Definition at line 264 of file repatchPolyTopoChanger.C.
References polyTopoChange::changeMesh().
Referenced by boundaryMesh::patchify(), and repatchPolyTopoChanger::~repatchPolyTopoChanger().
|
delete |
Disallow default bitwise assignment.
Referenced by repatchPolyTopoChanger::~repatchPolyTopoChanger().