repatchPolyTopoChanger Class Reference

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...
 

Detailed Description

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.

Source files

Definition at line 51 of file repatchPolyTopoChanger.H.

Constructor & Destructor Documentation

◆ repatchPolyTopoChanger() [1/2]

repatchPolyTopoChanger ( polyMesh mesh)
explicit

Construct for given mesh.

Definition at line 52 of file repatchPolyTopoChanger.C.

References repatchPolyTopoChanger::changePatches().

Here is the call graph for this function:

◆ repatchPolyTopoChanger() [2/2]

Disallow default bitwise copy construction.

◆ ~repatchPolyTopoChanger()

Member Function Documentation

◆ changePatches()

void changePatches ( const List< polyPatch *> &  patches)

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 repatchPolyTopoChanger::repatchPolyTopoChanger(), and repatchPolyTopoChanger::~repatchPolyTopoChanger().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ changePatchID()

void changePatchID ( const label  faceID,
const label  patchID 
)

◆ setFaceZone()

void setFaceZone ( const label  faceID,
const label  zoneID,
const bool  zoneFlip 
)

◆ changeAnchorPoint()

void changeAnchorPoint ( const label  faceID,
const label  fp 
)

◆ repatch()

void repatch ( )

Re-patch the mesh.

Definition at line 264 of file repatchPolyTopoChanger.C.

References polyTopoChange::changeMesh().

Referenced by repatchPolyTopoChanger::~repatchPolyTopoChanger().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

void operator= ( const repatchPolyTopoChanger )
delete

Disallow default bitwise assignment.

Referenced by repatchPolyTopoChanger::~repatchPolyTopoChanger().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: