OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

boundaryMesh Class Reference

Collaboration diagram for boundaryMesh:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 68 of file boundaryMesh.H.


Public Member Functions

 ClassName ("boundaryMesh")
 Runtime type information.
 boundaryMesh ()
 Construct null.
 ~boundaryMesh ()
void clearOut ()
const bMesh & mesh () const
const PtrList< boundaryPatch > & patches () const
const labelList & meshFace () const
 Label of original face in polyMesh (before patchify(...)).
const pointField & featurePoints () const
 Feature points.
const edgeList & featureEdges () const
 Feature edges. Indices into featurePoints.
const labelList & featureToEdge () const
 From index into featureEdge to index into meshedges,.
const labelList & edgeToFeature () const
 From edge into featureEdges.
const labelListList & featureSegments () const
 Lists of connected featureEdges. Indices into featureEdges.
const labelList & extraEdges () 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

ClassName ( "boundaryMesh"   ) 

Runtime type information.

void clearOut (  ) 

const bMesh& mesh (  )  const [inline]

Definition at line 226 of file boundaryMesh.H.

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

Definition at line 237 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 pointField& featurePoints (  )  const [inline]

Feature points.

Definition at line 250 of file boundaryMesh.H.

const edgeList& featureEdges (  )  const [inline]

Feature edges. Indices into featurePoints.

Definition at line 256 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.

const labelList& edgeToFeature (  )  const [inline]

From edge into featureEdges.

Definition at line 268 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& extraEdges (  )  const [inline]

Indices into edges of additional edges.

Definition at line 280 of file boundaryMesh.H.

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.

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

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

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.

mapping.

void setFeatureEdges ( const scalar  minCos  ) 

Set featureEdges, edgeToFeature, featureSegments according.

to angle of faces across edge

void setExtraEdges ( const label  edgeI  ) 

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

to determine 'near'.

label getNTris ( const label  faceI  )  const

Simple triangulation of face subset. Returns number of triangles.

needed.

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.

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.

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.

(Map returned).

void markFaces ( const labelList &  protectedEdges,
const label  faceI,
boolList &  visited 
) const


The documentation for this class was generated from the following file: Copyright © 2000-2007 OpenCFD Ltd