OpenFOAM logo
Open Source CFD Toolkit

triSurface Class Reference

Inheritance diagram for triSurface:

Inheritance graph
[legend]
Collaboration diagram for triSurface:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ClassName ("triSurface")
 Runtime type information.
 triSurface ()
 Construct null.
 triSurface (const List< labelledTri > &, const geometricSurfacePatchList &, const pointField &)
 Construct from triangles, patches, points.
 triSurface (const List< labelledTri > &, const pointField &)
 Construct from triangles, points. Set patchnames to default.
 triSurface (const triFaceList &, const pointField &)
 Construct from triangles, points. Set region to 0 and default.
 triSurface (const fileName &)
 Construct from file name (uses extension to determine type).
 triSurface (Istream &)
 Construct from Istream.
 triSurface (const Time &d)
 Construct from objectRegistry.
 triSurface (const triSurface &)
 Construct as copy.
 ~triSurface ()
void clearOut ()
void clearTopology ()
void clearPatchMeshAddr ()
const geometricSurfacePatchListpatches () const
geometricSurfacePatchListpatches ()
const labelListListsortedEdgeFaces () const
 Return edge-face addressing sorted (for edges with more than.
const labelListedgeOwner () const
 If 2 face neighbours: label of face where ordering of edge.
virtual void movePoints (const pointField &)
 Move points.
void checkTriangles (const bool verbose)
 Check/fix duplicate/degenerate triangles.
void checkEdges (const bool verbose)
 Check triply (or more) connected edges. Return list of faces.
boolList checkOrientation (const bool verbose)
 Check orientation (normals) and normals of neighbouring.
void cleanup (const bool verbose)
 Remove non-valid triangles.
void markZone (const boolList &borderEdge, const label faceI, const label currentZone, labelList &faceZone) const
 Fill faceZone with currentZone for every face reachable.
label markZones (const boolList &borderEdge, labelList &faceZone) const
 (size and) fills faceZone with zone of face. Zone is area
void subsetMeshMap (const boolList &include, labelList &pointMap, labelList &faceMap) const
 'Create' sub mesh, including only faces for which
triSurface subsetMesh (const boolList &include, labelList &pointMap, labelList &faceMap) const
 Return new surface. Returns pointMap, faceMap from.
void write (Ostream &) const
 Write to Ostream in simple FOAM format.
void write (const fileName &, const bool sortByRegion=false) const
 Generic write routine. Chooses writer based on extension.
void write (const Time &) const
 Write to database.
void writeDX (const scalarField &, Ostream &) const
 Write to Ostream in OpenDX format.
void writeDX (const vectorField &, Ostream &) const
void writeStats (Ostream &) const
 Write some statistics.
void operator= (const triSurface &)

Static Public Member Functions

fileName triSurfInstance (const Time &)
 Name of triSurface directory to use.

Friends

Ostreamoperator<< (Ostream &, const triSurface &)

Constructor & Destructor Documentation

triSurface  ) 
 

Construct null.

triSurface const List< labelledTri > &  ,
const geometricSurfacePatchList ,
const pointField
 

Construct from triangles, patches, points.

triSurface const List< labelledTri > &  ,
const pointField
 

Construct from triangles, points. Set patchnames to default.

triSurface const triFaceList ,
const pointField
 

Construct from triangles, points. Set region to 0 and default.

patchName.

triSurface const fileName  ) 
 

Construct from file name (uses extension to determine type).

triSurface Istream  ) 
 

Construct from Istream.

triSurface const Time d  ) 
 

Construct from objectRegistry.

triSurface const triSurface  ) 
 

Construct as copy.

~triSurface  ) 
 


Member Function Documentation

void checkEdges const bool  verbose  ) 
 

Check triply (or more) connected edges. Return list of faces.

sharing these edges.

boolList checkOrientation const bool  verbose  ) 
 

Check orientation (normals) and normals of neighbouring.

triangles

void checkTriangles const bool  verbose  ) 
 

Check/fix duplicate/degenerate triangles.

ClassName "triSurface"   ) 
 

Runtime type information.

void cleanup const bool  verbose  ) 
 

Remove non-valid triangles.

void clearOut  ) 
 

Reimplemented from PrimitivePatch< labelledTri, List, pointField >.

void clearPatchMeshAddr  ) 
 

Reimplemented from PrimitivePatch< labelledTri, List, pointField >.

void clearTopology  ) 
 

Reimplemented from PrimitivePatch< labelledTri, List, pointField >.

const labelList& edgeOwner  )  const
 

If 2 face neighbours: label of face where ordering of edge.

is consistent with righthand walk. If 1 neighbour: label of only face. If >2 neighbours: undetermined.

void markZone const boolList borderEdge,
const label  faceI,
const label  currentZone,
labelList faceZone
const
 

Fill faceZone with currentZone for every face reachable.

from faceI without crossing edge marked in borderEdge. Note: faceZone has to be sized nFaces before calling this fun.

label markZones const boolList borderEdge,
labelList faceZone
const
 

(size and) fills faceZone with zone of face. Zone is area

reachable by edge crossing without crossing borderEdge (bool for every edge in surface). Returns number of zones.

virtual void movePoints const pointField  )  [virtual]
 

Move points.

Reimplemented from PrimitivePatch< labelledTri, List, pointField >.

void operator= const triSurface  ) 
 

geometricSurfacePatchList& patches  )  [inline]
 

Definition at line 303 of file triSurface.H.

References Foam::boolList, Foam::label, Foam::labelList, Foam::scalarField, and Foam::vectorField.

const geometricSurfacePatchList& patches  )  const [inline]
 

Definition at line 298 of file triSurface.H.

const labelListList& sortedEdgeFaces  )  const
 

Return edge-face addressing sorted (for edges with more than.

2 faces) according to the angle around the edge. Orientation is anticlockwise looking from edge.vec(localPoints())

triSurface subsetMesh const boolList include,
labelList pointMap,
labelList faceMap
const
 

Return new surface. Returns pointMap, faceMap from.

subsetMeshMap

void subsetMeshMap const boolList include,
labelList pointMap,
labelList faceMap
const
 

'Create' sub mesh, including only faces for which

boolList entry is true Sets: pointMap: from new to old localPoints faceMap: new to old faces

fileName triSurfInstance const Time  )  [static]
 

Name of triSurface directory to use.

void write const Time  )  const
 

Write to database.

void write const fileName ,
const bool  sortByRegion = false
const
 

Generic write routine. Chooses writer based on extension.

void write Ostream  )  const
 

Write to Ostream in simple FOAM format.

void writeDX const vectorField ,
Ostream
const
 

void writeDX const scalarField ,
Ostream
const
 

Write to Ostream in OpenDX format.

void writeStats Ostream  )  const
 

Write some statistics.


Friends And Related Function Documentation

Ostream& operator<< Ostream ,
const triSurface
[friend]
 


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