repatcher 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

 repatcher (polyMesh &mesh)
 Construct for given mesh. More...
 
 repatcher (const repatcher &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~repatcher ()
 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 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 repatcher &)=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 52 of file repatcher.H.

Constructor & Destructor Documentation

◆ repatcher() [1/2]

repatcher ( polyMesh mesh)
explicit

Construct for given mesh.

Definition at line 50 of file repatcher.C.

◆ repatcher() [2/2]

repatcher ( const repatcher )
delete

Disallow default bitwise copy construction.

◆ ~repatcher()

~repatcher ( )
virtual

Destructor.

Definition at line 59 of file repatcher.C.

Member Function Documentation

◆ changePatches()

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

Change patches.

Definition at line 65 of file repatcher.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and patches.

Here is the call graph for this function:

◆ changePatchID()

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 82 of file repatcher.C.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ changeAnchorPoint()

void changeAnchorPoint ( const label  faceID,
const label  fp 
)

Change anchor point (zero'th point of face) for a boundary face.

Definition at line 117 of file repatcher.C.

References Foam::abort(), f(), Foam::FatalError, FatalErrorInFunction, forAll, and List< T >::size().

Here is the call graph for this function:

◆ repatch()

void repatch ( )

Re-patch the mesh.

Definition at line 190 of file repatcher.C.

◆ operator=()

void operator= ( const repatcher )
delete

Disallow default bitwise assignment.


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