OpenFOAM logo
Open Source CFD Toolkit

boundaryMesh Class Reference

Collaboration diagram for boundaryMesh:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ClassName ("boundaryMesh")
 Runtime type information.
 boundaryMesh ()
 Construct null.
 ~boundaryMesh ()
void clearOut ()
const bMeshmesh () const
const PtrList< boundaryPatch > & patches () const
const labelListmeshFace () const
 Label of original face in polyMesh (before patchify(...)).
const pointFieldfeaturePoints () const
 Feature points.
const edgeListfeatureEdges () const
 Feature edges. Indices into featurePoints.
const labelListfeatureToEdge () const
 From index into featureEdge to index into meshedges,.
const labelListedgeToFeature () const
 From edge into featureEdges.
const labelListListfeatureSegments () const
 Lists of connected featureEdges. Indices into featureEdges.
const labelListextraEdges () const
 Indices into edges of additional edges.
void read (const polyMesh &)
 Read from boundaryMesh of polyMesh.
void readTriSurface (const fileName &)
 Read from triSurface.
void writeTriSurface (const fileName &) const
 Write to file.
labelList getNearest (const primitiveMesh &pMesh, const vector &searchSpan) const
 Get bMesh index of nearest face for every boundary face in.
void patchify (const labelList &nearest, const polyBoundaryMesh &oldPatches, polyMesh &newMesh) const
 Take over patches onto polyMesh from nearest face in *this.
label whichPatch (const label faceI) const
 Get index of patch face is in.
label findPatchID (const word &patchName) const
 Get index of patch by name.
wordList patchNames () const
 Get names of patches.
void addPatch (const word &patchName)
 Add to back of patch list.
void deletePatch (const word &patchName)
 Delete from patch list.
void changePatchType (const word &patchName, const word &type)
 Change patch.
void changeFaces (const labelList &patchIDs, labelList &oldToNew)
 Recalculate face ordering and patches. Return old to new.
void setFeatureEdges (const scalar minCos)
 Set featureEdges, edgeToFeature, featureSegments according.
void setExtraEdges (const label edgeI)
 Set extraEdges to edges 'near' to edgeI. Uses point-edge walk.
label getNTris (const label faceI) const
 Simple triangulation of face subset. Returns number of triangles.
label getNTris (const label startFaceI, const label nFaces, labelList &nTris) const
 Simple triangulation of face subset. TotalNTris is total number.
void triangulate (const label startFaceI, const label nFaces, const label totalNTris, labelList &triVerts) const
 Simple triangulation of face subset. TotalNTris is total number.
label getNPoints (const label startFaceI, const label nFaces) const
 Number of points used in face subset.
void triangulateLocal (const label startFaceI, const label nFaces, const label totalNTris, labelList &triVerts, labelList &localToGlobal) const
 Same as triangulate but in local vertex numbering.
void markFaces (const labelList &protectedEdges, const label faceI, boolList &visited) const

Constructor & Destructor Documentation

boundaryMesh  ) 
 

Construct null.

~boundaryMesh  ) 
 


Member Function Documentation

void addPatch const word patchName  ) 
 

Add to back of patch list.

void changeFaces const labelList patchIDs,
labelList oldToNew
 

Recalculate face ordering and patches. Return old to new.

mapping.

void changePatchType const word patchName,
const word type
 

Change patch.

ClassName "boundaryMesh"   ) 
 

Runtime type information.

void clearOut  ) 
 

void deletePatch const word patchName  ) 
 

Delete from patch list.

const labelList& edgeToFeature  )  const [inline]
 

From edge into featureEdges.

Definition at line 268 of file boundaryMesh.H.

const labelList& extraEdges  )  const [inline]
 

Indices into edges of additional edges.

Definition at line 280 of file boundaryMesh.H.

References Foam::boolList, Foam::label, Foam::labelList, Foam::vector, and Foam::wordList.

const edgeList& featureEdges  )  const [inline]
 

Feature edges. Indices into featurePoints.

Definition at line 256 of file boundaryMesh.H.

const pointField& featurePoints  )  const [inline]
 

Feature points.

Definition at line 250 of file boundaryMesh.H.

const labelListList& featureSegments  )  const [inline]
 

Lists of connected featureEdges. Indices into featureEdges.

Definition at line 274 of file boundaryMesh.H.

const labelList& featureToEdge  )  const [inline]
 

From index into featureEdge to index into meshedges,.

Definition at line 262 of file boundaryMesh.H.

label findPatchID const word patchName  )  const
 

Get index of patch by name.

labelList getNearest const primitiveMesh pMesh,
const vector searchSpan
const
 

Get bMesh index of nearest face for every boundary face in.

pMesh. Gets passed initial search box. If not found returns -1 for the face.

label getNPoints const label  startFaceI,
const label  nFaces
const
 

Number of points used in face subset.

label getNTris const label  startFaceI,
const label  nFaces,
labelList nTris
const
 

Simple triangulation of face subset. TotalNTris is total number.

of triangles, nTris is per face number of triangles.

label getNTris const label  faceI  )  const
 

Simple triangulation of face subset. Returns number of triangles.

needed.

void markFaces const labelList protectedEdges,
const label  faceI,
boolList visited
const
 

const bMesh& mesh  )  const [inline]
 

Definition at line 226 of file boundaryMesh.H.

const labelList& meshFace  )  const [inline]
 

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

Definition at line 244 of file boundaryMesh.H.

const PtrList<boundaryPatch>& patches  )  const [inline]
 

Definition at line 237 of file boundaryMesh.H.

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

Take over patches onto polyMesh from nearest face in *this.

(from call to getNearest). Insert as -new set of patches (newMesh.addPatches) -topoChanges to change faces. nearest is list of nearest face in *this for every boundary face. oldPatches is list of existing patches in mesh. newMesh is the mesh to which the new patches are added. (so has to be constructed without patches).

wordList patchNames  )  const
 

Get names of patches.

void read const polyMesh  ) 
 

Read from boundaryMesh of polyMesh.

void readTriSurface const fileName  ) 
 

Read from triSurface.

void setExtraEdges const label  edgeI  ) 
 

Set extraEdges to edges 'near' to edgeI. Uses point-edge walk.

to determine 'near'.

void setFeatureEdges const scalar  minCos  ) 
 

Set featureEdges, edgeToFeature, featureSegments according.

to angle of faces across edge

void triangulate const label  startFaceI,
const label  nFaces,
const label  totalNTris,
labelList triVerts
const
 

Simple triangulation of face subset. TotalNTris is total number.

of triangles (from call to getNTris) triVerts is triangle vertices, three per triangle.

void triangulateLocal const label  startFaceI,
const label  nFaces,
const label  totalNTris,
labelList triVerts,
labelList localToGlobal
const
 

Same as triangulate but in local vertex numbering.

(Map returned).

label whichPatch const label  faceI  )  const
 

Get index of patch face is in.

void writeTriSurface const fileName  )  const
 

Write to file.


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org