Static Public Member Functions | Static Public Attributes | List of all members
polyMeshTetDecomposition Class Reference

Tools for performing the minimum decomposition of faces of the mesh into triangles so that the cells may be tet decomposed. Includes functions for finding variable face starting (base) points on each face to avoid the decomposition of cells into tets that have negative or zero volume. More...

Static Public Member Functions

static label findSharedBasePoint (const polyMesh &mesh, label fI, const point &nCc, scalar tol, bool report=false)
 Find the first suitable base point to use for a minimum. More...
 
static label findSharedBasePoint (const polyMesh &mesh, label fI, scalar tol, bool report=false)
 As for findSharedBasePoint, but using neighbour cell. More...
 
static label findBasePoint (const polyMesh &mesh, label fI, scalar tol, bool report=false)
 Find the base point to use for a minimum triangle. More...
 
static labelList findFaceBasePts (const polyMesh &mesh, scalar tol=minTetQuality, bool report=false)
 Find a suitable base point for each face for decomposition. More...
 
static bool checkFaceTets (const polyMesh &mesh, scalar tol=minTetQuality, const bool report=false, labelHashSet *setPtr=NULL)
 Check face-decomposition tet volume. More...
 
static List< tetIndicesfaceTetIndices (const polyMesh &mesh, label fI, label cI)
 Return the tet decomposition of the given face, with. More...
 
static tetIndices triangleTetIndices (const polyMesh &mesh, label fI, label cI, const label tetPtI)
 Return the tet decomposition of the given triangle of the given face. More...
 
static List< tetIndicescellTetIndices (const polyMesh &mesh, label cI)
 Return the tet decomposition of the given cell, see. More...
 
static tetIndices findTet (const polyMesh &mesh, label cI, const point &pt)
 Find the tet decomposition of the cell containing the given point. More...
 

Static Public Attributes

static const scalar minTetQuality = sqr(SMALL)
 Minimum tetrahedron quality. More...
 

Detailed Description

Tools for performing the minimum decomposition of faces of the mesh into triangles so that the cells may be tet decomposed. Includes functions for finding variable face starting (base) points on each face to avoid the decomposition of cells into tets that have negative or zero volume.

Source files

Definition at line 56 of file polyMeshTetDecomposition.H.

Member Function Documentation

Foam::label findSharedBasePoint ( const polyMesh mesh,
label  fI,
const point nCc,
scalar  tol,
bool  report = false 
)
static

Find the first suitable base point to use for a minimum.

triangle decomposition of the face, suiting owner and neighbour cells. Finds the first base point on the face whose worst quality tet from either cell is better than tolerance. Neighbour cell centre supplied. For coupled patches.

Definition at line 39 of file polyMeshTetDecomposition.C.

References primitiveMesh::cellCentres(), f(), polyMesh::faceOwner(), polyMesh::faces(), forAll, Foam::min(), pFaces, polyMesh::points(), tetrahedron< Point, PointRef >::quality(), and List< T >::size().

Referenced by polyMeshGeometry::checkFaceTets().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::label findSharedBasePoint ( const polyMesh mesh,
label  fI,
scalar  tol,
bool  report = false 
)
static

As for findSharedBasePoint, but using neighbour cell.

centre from the mesh. For internal faces.

Definition at line 116 of file polyMeshTetDecomposition.C.

References primitiveMesh::cellCentres(), polyMesh::faceNeighbour(), and polyMeshTetDecomposition::findBasePoint().

Here is the call graph for this function:

Foam::label findBasePoint ( const polyMesh mesh,
label  fI,
scalar  tol,
bool  report = false 
)
static

Find the base point to use for a minimum triangle.

decomposition of the face, using only the owner information. For non-coupled boundary faces.

Definition at line 135 of file polyMeshTetDecomposition.C.

References primitiveMesh::cellCentres(), f(), polyMesh::faceOwner(), polyMesh::faces(), polyMeshTetDecomposition::findFaceBasePts(), forAll, pFaces, polyMesh::points(), tetrahedron< Point, PointRef >::quality(), and List< T >::size().

Referenced by polyMeshGeometry::checkFaceTets(), and polyMeshTetDecomposition::findSharedBasePoint().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::labelList findFaceBasePts ( const polyMesh mesh,
scalar  tol = minTetQuality,
bool  report = false 
)
static
bool checkFaceTets ( const polyMesh mesh,
scalar  tol = minTetQuality,
const bool  report = false,
labelHashSet setPtr = NULL 
)
static
Foam::List< Foam::tetIndices > faceTetIndices ( const polyMesh mesh,
label  fI,
label  cI 
)
static
Foam::tetIndices triangleTetIndices ( const polyMesh mesh,
label  fI,
label  cI,
const label  tetPtI 
)
static
Foam::List< Foam::tetIndices > cellTetIndices ( const polyMesh mesh,
label  cI 
)
static

Return the tet decomposition of the given cell, see.

findFacePt for the meaning of the indices

Definition at line 661 of file polyMeshTetDecomposition.C.

References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), primitiveMesh::cells(), polyMesh::faces(), polyMeshTetDecomposition::findTet(), forAll, pFaces, and List< T >::size().

Referenced by polyMeshTetDecomposition::triangleTetIndices().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::tetIndices findTet ( const polyMesh mesh,
label  cI,
const point pt 
)
static

Find the tet decomposition of the cell containing the given point.

Definition at line 692 of file polyMeshTetDecomposition.C.

References tetIndices::cell(), primitiveMesh::cells(), f(), polyMesh::faces(), forAll, tetrahedron< Point, PointRef >::inside(), pFaces, List< T >::size(), and tetIndices::tet().

Referenced by polyMeshTetDecomposition::cellTetIndices(), and polyMesh::findTetFacePt().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

const Foam::scalar minTetQuality = sqr(SMALL)
static

Minimum tetrahedron quality.

Definition at line 64 of file polyMeshTetDecomposition.H.

Referenced by wallBoundedStreamLine::read().


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