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 scalar minQuality (const polyMesh &mesh, const point &cC, const label fI, const bool isOwner, const label faceBasePtI)
 
static scalar minQuality (const polyMesh &mesh, const label facei, const label faceBasePtI)
 
static label findSharedBasePoint (const polyMesh &mesh, label fI, const point &nCc, scalar tol, bool report=false)
 
static label findSharedBasePoint (const polyMesh &mesh, label fI, scalar tol, bool report=false)
 
static label findBasePoint (const polyMesh &mesh, label fI, scalar tol, bool report=false)
 
static 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=nullptr)
 
static List< tetIndicesfaceTetIndices (const polyMesh &mesh, label fI, label cI)
 
static List< tetIndicescellTetIndices (const polyMesh &mesh, label cI)
 
static tetIndices findTet (const polyMesh &mesh, label cI, const point &pt)
 
static labelList adjustTetBasePtIs (const polyMesh &mesh, const bool report=false)
 

Static Public Attributes

static const scalar minTetQuality = sqr(SMALL)
 

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 55 of file polyMeshTetDecomposition.H.

Member Function Documentation

◆ minQuality() [1/2]

Foam::scalar minQuality ( const polyMesh mesh,
const point cC,
const label  fI,
const bool  isOwner,
const label  faceBasePtI 
)
static

Definition at line 35 of file polyMeshTetDecomposition.C.

References f(), mesh, and tetrahedron::quality().

Here is the call graph for this function:

◆ minQuality() [2/2]

Foam::scalar minQuality ( const polyMesh mesh,
const label  facei,
const label  faceBasePtI 
)
static

Definition at line 88 of file polyMeshTetDecomposition.C.

References mesh.

◆ findSharedBasePoint() [1/2]

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

Definition at line 127 of file polyMeshTetDecomposition.C.

References f(), forAll, mesh, Foam::min(), and pFaces.

Referenced by polyMeshGeometry::checkFaceTets().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findSharedBasePoint() [2/2]

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

Definition at line 163 of file polyMeshTetDecomposition.C.

References mesh.

◆ findBasePoint()

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

Definition at line 182 of file polyMeshTetDecomposition.C.

References f(), forAll, mesh, and pFaces.

Referenced by polyMeshGeometry::checkFaceTets().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findFaceBasePts()

Foam::labelList findFaceBasePts ( const polyMesh mesh,
scalar  tol = minTetQuality,
bool  report = false 
)
static

Definition at line 218 of file polyMeshTetDecomposition.C.

References Foam::abort(), coupled(), Foam::FatalError, FatalErrorInFunction, mesh, coupledPolyPatch::owner(), and patches.

Referenced by polyMesh::tetBasePtIs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkFaceTets()

bool checkFaceTets ( const polyMesh mesh,
scalar  tol = minTetQuality,
const bool  report = false,
labelHashSet setPtr = nullptr 
)
static

Definition at line 377 of file polyMeshTetDecomposition.C.

References coupled(), Foam::endl(), f(), forAll, Foam::Info, HashSet::insert(), mesh, p, patches, and reduce().

Referenced by wallBoundedStreamLine::read().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ faceTetIndices()

Foam::List< Foam::tetIndices > faceTetIndices ( const polyMesh mesh,
label  fI,
label  cI 
)
static

Definition at line 535 of file polyMeshTetDecomposition.C.

References f(), mesh, and pFaces.

Referenced by FreeStream< CloudType >::inflow().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cellTetIndices()

Foam::List< Foam::tetIndices > cellTetIndices ( const polyMesh mesh,
label  cI 
)
static

Definition at line 559 of file polyMeshTetDecomposition.C.

References DynamicList::append(), mesh, and pFaces.

Referenced by patchInjectionBase::setPositionAndCell().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findTet()

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

Definition at line 588 of file polyMeshTetDecomposition.C.

References tetIndices::cell(), f(), tetrahedron::inside(), mesh, pFaces, and tetIndices::tet().

Referenced by polyMesh::findTetFacePt().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ adjustTetBasePtIs()

Foam::labelList adjustTetBasePtIs ( const polyMesh mesh,
const bool  report = false 
)
static

Definition at line 630 of file polyMeshTetDecomposition.C.

References cells, Foam::endl(), Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, forAll, forAllConstIters(), mesh, Foam::nl, Foam::Pout, Foam::returnReduce(), bitSet::set(), and bitSet::test().

Referenced by isoSurfaceTopo::isoSurfaceTopo().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ minTetQuality

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

Definition at line 62 of file polyMeshTetDecomposition.H.

Referenced by wallBoundedStreamLine::read().


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