FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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

#include <dynamicMesh/repatchPolyTopoChanger.H>


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

Collaboration diagram for repatchPolyTopoChanger:

List of all members.

Public Member Functions

 repatchPolyTopoChanger (polyMesh &mesh)
 Construct for given mesh.
virtual  ~repatchPolyTopoChanger ()
void  changePatches (const List< polyPatch * > &patches)
 Change patches.
void  changePatchID (const label faceID, const label patchID)
 Change patch ID for a boundary face. Note: patchID should be in new.
void  setFaceZone (const label faceID, const label zoneID, const bool zoneFlip)
 Set zone ID for a face.
void  changeAnchorPoint (const label faceID, const label fp)
 Change anchor point (zero'th point of face) for a boundary face.
void  repatch ()
 Re-patch the mesh.

Constructor & Destructor Documentation

repatchPolyTopoChanger ( polyMesh &   mesh  ) [explicit]

Construct for given mesh.

Definition at line 52 of file repatchPolyTopoChanger.C.

virtual ~repatchPolyTopoChanger (  ) [inline, virtual]

Definition at line 85 of file repatchPolyTopoChanger.H.


Member Function Documentation

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

Change patches.

Definition at line 62 of file repatchPolyTopoChanger.C.

References Foam::exit(), Foam::FatalError, FatalErrorIn, and Foam::nl.

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

References Foam::abort(), Foam::FatalError, FatalErrorIn, faceZone::flipMap(), 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 141 of file repatchPolyTopoChanger.C.

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

void changeAnchorPoint ( const label   faceID,
const label   fp  
)

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

Definition at line 185 of file repatchPolyTopoChanger.C.

References Foam::abort(), f(), Foam::FatalError, FatalErrorIn, faceZone::flipMap(), List< T >::size(), and faceZone::whichFace().

void repatch (  )

Re-patch the mesh.

Definition at line 295 of file repatchPolyTopoChanger.C.

Referenced by boundaryMesh::patchify().


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