Public Member Functions | List of all members
boundaryMesh 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 Member Functions

 ClassName ("boundaryMesh")
 
 boundaryMesh ()
 
 ~boundaryMesh ()=default
 
void clearOut ()
 
const bMeshmesh () const
 
const PtrList< boundaryPatch > & patches () const
 
const labelListmeshFace () const
 
const pointFieldfeaturePoints () const
 
const edgeListfeatureEdges () const
 
const labelListfeatureToEdge () const
 
const labelListedgeToFeature () const
 
const labelListListfeatureSegments () const
 
const labelListextraEdges () const
 
void read (const polyMesh &)
 
void readTriSurface (const fileName &)
 
void writeTriSurface (const fileName &) const
 
labelList getNearest (const primitiveMesh &pMesh, const vector &searchSpan) const
 
void patchify (const labelList &nearest, const polyBoundaryMesh &oldPatches, polyMesh &newMesh) const
 
label whichPatch (const label facei) const
 
label findPatchID (const word &patchName) const
 
wordList patchNames () const
 
void addPatch (const word &patchName)
 
void deletePatch (const word &patchName)
 
void changePatchType (const word &patchName, const word &type)
 
void changeFaces (const labelList &patchIDs, labelList &oldToNew)
 
void setFeatureEdges (const scalar minCos)
 
void setExtraEdges (const label edgeI)
 
label getNTris (const label facei) const
 
label getNTris (const label startFacei, const label nFaces, labelList &nTris) const
 
void triangulate (const label startFacei, const label nFaces, const label totalNTris, labelList &triVerts) const
 
label getNPoints (const label startFacei, const label nFaces) const
 
void triangulateLocal (const label startFacei, const label nFaces, const label totalNTris, labelList &triVerts, labelList &localToGlobal) const
 
void markFaces (const labelList &protectedEdges, const label facei, boolList &visited) const
 

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 58 of file boundaryMesh.H.

Constructor & Destructor Documentation

◆ boundaryMesh()

Definition at line 433 of file boundaryMesh.C.

◆ ~boundaryMesh()

~boundaryMesh ( )
default

Member Function Documentation

◆ ClassName()

ClassName ( "boundaryMesh"  )

◆ clearOut()

void clearOut ( )

Definition at line 449 of file boundaryMesh.C.

◆ mesh()

const bMesh& mesh ( ) const
inline

◆ patches()

const PtrList<boundaryPatch>& patches ( ) const
inline

Definition at line 213 of file boundaryMesh.H.

◆ meshFace()

const labelList& meshFace ( ) const
inline

Definition at line 220 of file boundaryMesh.H.

◆ featurePoints()

const pointField& featurePoints ( ) const
inline

Definition at line 226 of file boundaryMesh.H.

◆ featureEdges()

const edgeList& featureEdges ( ) const
inline

Definition at line 232 of file boundaryMesh.H.

◆ featureToEdge()

const labelList& featureToEdge ( ) const
inline

Definition at line 238 of file boundaryMesh.H.

◆ edgeToFeature()

const labelList& edgeToFeature ( ) const
inline

Definition at line 244 of file boundaryMesh.H.

◆ featureSegments()

const labelListList& featureSegments ( ) const
inline

Definition at line 250 of file boundaryMesh.H.

◆ extraEdges()

const labelList& extraEdges ( ) const
inline

Definition at line 256 of file boundaryMesh.H.

◆ read()

void read ( const polyMesh mesh)

◆ readTriSurface()

void readTriSurface ( const fileName fName)

◆ writeTriSurface()

void writeTriSurface ( const fileName fName) const

Definition at line 750 of file boundaryMesh.C.

References forAll, mesh, patchIdentifier::name(), patchIdentifier::physicalType(), points, boundaryPatch::start(), and triSurface::write().

Here is the call graph for this function:

◆ getNearest()

Foam::labelList getNearest ( const primitiveMesh pMesh,
const vector searchSpan 
) const

◆ patchify()

void patchify ( const labelList nearest,
const polyBoundaryMesh oldPatches,
polyMesh newMesh 
) const

◆ whichPatch()

Foam::label whichPatch ( const label  facei) const

Definition at line 1512 of file boundaryMesh.C.

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

Here is the call graph for this function:

◆ findPatchID()

Foam::label findPatchID ( const word patchName) const

Definition at line 1533 of file boundaryMesh.C.

References forAll, and Foam::name().

Here is the call graph for this function:

◆ patchNames()

Foam::wordList patchNames ( ) const

Definition at line 268 of file boundaryMesh.C.

References forAll, and Foam::PtrListOps::names().

Here is the call graph for this function:

◆ addPatch()

void addPatch ( const word patchName)

◆ deletePatch()

void deletePatch ( const word patchName)

◆ changePatchType()

void changePatchType ( const word patchName,
const word type 
)

◆ changeFaces()

void changeFaces ( const labelList patchIDs,
labelList oldToNew 
)

◆ setFeatureEdges()

void setFeatureEdges ( const scalar  minCos)

◆ setExtraEdges()

void setExtraEdges ( const label  edgeI)

Definition at line 1497 of file boundaryMesh.C.

References mesh.

◆ getNTris() [1/2]

Foam::label getNTris ( const label  facei) const

Definition at line 1810 of file boundaryMesh.C.

References f(), mesh, and points.

Here is the call graph for this function:

◆ getNTris() [2/2]

Foam::label getNTris ( const label  startFacei,
const label  nFaces,
labelList nTris 
) const

Definition at line 1819 of file boundaryMesh.C.

References List::setSize().

Here is the call graph for this function:

◆ triangulate()

void triangulate ( const label  startFacei,
const label  nFaces,
const label  totalNTris,
labelList triVerts 
) const

Definition at line 1844 of file boundaryMesh.C.

References f(), forAll, mesh, points, and List::setSize().

Here is the call graph for this function:

◆ getNPoints()

Foam::label getNPoints ( const label  startFacei,
const label  nFaces 
) const

Definition at line 1885 of file boundaryMesh.C.

References mesh, Foam::foamVersion::patch, and points.

◆ triangulateLocal()

void triangulateLocal ( const label  startFacei,
const label  nFaces,
const label  totalNTris,
labelList triVerts,
labelList localToGlobal 
) const

Definition at line 1900 of file boundaryMesh.C.

References f(), forAll, mesh, Foam::foamVersion::patch, points, and List::setSize().

Here is the call graph for this function:

◆ markFaces()

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

Definition at line 1947 of file boundaryMesh.C.

References forAll, mesh, and List::setSize().

Here is the call graph for this function:

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