repatchMesh Class Reference

Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface. Used for repatching existing meshes. More...

Public Types

typedef PrimitivePatch< faceList, const pointFieldrMesh
 Type of the mesh. More...
 

Public Member Functions

 ClassName ("repatchMesh")
 Runtime type information. More...
 
 repatchMesh ()
 Construct null. More...
 
 repatchMesh (const repatchMesh &)=delete
 Disallow default bitwise copy construction. More...
 
 ~repatchMesh ()
 Destructor. More...
 
const rMeshmesh () const
 Access the boundary mesh. More...
 
const PtrList< repatchPatch > & patches () const
 Access the patches. More...
 
const labelListmeshFace () const
 Label of original face in polyMesh (before patchify(...)) More...
 
const pointFieldfeaturePoints () const
 Feature points. More...
 
const edgeListfeatureEdges () const
 Feature edges. Indices into featurePoints. More...
 
const labelListfeatureToEdge () const
 From index into featureEdge to index into meshedges,. More...
 
const labelListedgeToFeature () const
 From edge into featureEdges. More...
 
const labelListListfeatureSegments () const
 Lists of connected featureEdges. Indices into featureEdges. More...
 
void read (const polyMesh &)
 Read from repatchMesh of polyMesh. More...
 
void readTriSurface (const fileName &)
 Read from triSurface. More...
 
labelList getNearest (const primitiveMesh &pMesh, const vector &searchSpan) const
 Get rMesh index of nearest face for every boundary face in. More...
 
label whichPatch (const label facei) const
 Get index of patch face is in. More...
 
label findPatchID (const word &patchName) const
 Get index of patch by name. More...
 
void addPatch (const word &patchName)
 Add to back of patch list. More...
 
void deletePatch (const word &patchName)
 Delete from patch list. More...
 
void changePatchType (const word &patchName, const word &type)
 Change patch. More...
 
void setFeatureEdges (const scalar minCos)
 Set featureEdges, edgeToFeature, featureSegments according. More...
 
void markFaces (const labelList &protectedEdges, const label facei, boolList &visited) const
 
void operator= (const repatchMesh &)=delete
 Disallow default bitwise assignment. More...
 

Detailed Description

Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface. Used for repatching existing meshes.

Source files

Definition at line 57 of file repatchMesh.H.

Member Typedef Documentation

◆ rMesh

Type of the mesh.

Definition at line 64 of file repatchMesh.H.

Constructor & Destructor Documentation

◆ repatchMesh() [1/2]

Construct null.

Definition at line 327 of file repatchMesh.C.

◆ repatchMesh() [2/2]

repatchMesh ( const repatchMesh )
delete

Disallow default bitwise copy construction.

◆ ~repatchMesh()

Destructor.

Definition at line 342 of file repatchMesh.C.

Member Function Documentation

◆ ClassName()

ClassName ( "repatchMesh"  )

Runtime type information.

◆ mesh()

const rMesh& mesh ( ) const
inline

Access the boundary mesh.

Definition at line 180 of file repatchMesh.H.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and autoPtr< T >::valid().

Here is the call graph for this function:

◆ patches()

const PtrList<repatchPatch>& patches ( ) const
inline

Access the patches.

Definition at line 192 of file repatchMesh.H.

◆ meshFace()

const labelList& meshFace ( ) const
inline

Label of original face in polyMesh (before patchify(...))

Definition at line 198 of file repatchMesh.H.

◆ featurePoints()

const pointField& featurePoints ( ) const
inline

Feature points.

Definition at line 204 of file repatchMesh.H.

◆ featureEdges()

const edgeList& featureEdges ( ) const
inline

Feature edges. Indices into featurePoints.

Definition at line 210 of file repatchMesh.H.

◆ featureToEdge()

const labelList& featureToEdge ( ) const
inline

From index into featureEdge to index into meshedges,.

Definition at line 216 of file repatchMesh.H.

◆ edgeToFeature()

const labelList& edgeToFeature ( ) const
inline

From edge into featureEdges.

Definition at line 222 of file repatchMesh.H.

◆ featureSegments()

const labelListList& featureSegments ( ) const
inline

Lists of connected featureEdges. Indices into featureEdges.

Definition at line 228 of file repatchMesh.H.

◆ read()

◆ readTriSurface()

◆ getNearest()

◆ whichPatch()

Foam::label whichPatch ( const label  facei) const

Get index of patch face is in.

Definition at line 1106 of file repatchMesh.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, patchi, repatchPatch::size(), and repatchPatch::start().

Here is the call graph for this function:

◆ findPatchID()

Foam::label findPatchID ( const word patchName) const

Get index of patch by name.

Definition at line 1127 of file repatchMesh.C.

References forAll, Foam::name(), and patchi.

Here is the call graph for this function:

◆ addPatch()

void addPatch ( const word patchName)

Add to back of patch list.

Definition at line 1141 of file repatchMesh.C.

References Foam::endl(), forAll, patchIdentifier::name(), patchi, patchIdentifier::physicalType(), Foam::Pout, repatchPatch::size(), and repatchPatch::start().

Here is the call graph for this function:

◆ deletePatch()

void deletePatch ( const word patchName)

◆ changePatchType()

void changePatchType ( const word patchName,
const word type 
)

◆ setFeatureEdges()

void setFeatureEdges ( const scalar  minCos)

Set featureEdges, edgeToFeature, featureSegments according.

to angle of faces across edge

Definition at line 905 of file repatchMesh.C.

References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), Foam::e, forAll, nPoints, and List< T >::size().

Here is the call graph for this function:

◆ markFaces()

void markFaces ( const labelList protectedEdges,
const label  facei,
boolList visited 
) const

Definition at line 1284 of file repatchMesh.C.

References forAll, and List< T >::setSize().

Here is the call graph for this function:

◆ operator=()

void operator= ( const repatchMesh )
delete

Disallow default bitwise assignment.


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