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) |
Given a face and cc and starting index for triangulation determine. More... | |
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=nullptr) |
Check face-decomposition tet volume. More... | |
static List< tetIndices > | faceTetIndices (const polyMesh &mesh, label fI, label cI) |
Return the tet decomposition of the given face, with. More... | |
static List< tetIndices > | cellTetIndices (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... | |
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.
Definition at line 56 of file polyMeshTetDecomposition.H.
|
static |
Given a face and cc and starting index for triangulation determine.
the worst tet quality.
Definition at line 39 of file polyMeshTetDecomposition.C.
References f(), polyMesh::faces(), polyMeshTetDecomposition::findSharedBasePoint(), polyMesh::points(), and tetrahedron< Point, PointRef >::quality().
Referenced by NamedEnum< compressibleField, 8 >::names().
|
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 92 of file polyMeshTetDecomposition.C.
References primitiveMesh::cellCentres(), f(), polyMesh::faceOwner(), polyMesh::faces(), forAll, Foam::min(), and pFaces.
Referenced by Foam::polyMeshCheck::checkFaceTets(), and polyMeshTetDecomposition::minQuality().
|
static |
As for findSharedBasePoint, but using neighbour cell.
centre from the mesh. For internal faces.
Definition at line 128 of file polyMeshTetDecomposition.C.
References primitiveMesh::cellCentres(), polyMesh::faceNeighbour(), and polyMeshTetDecomposition::findBasePoint().
|
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 147 of file polyMeshTetDecomposition.C.
References primitiveMesh::cellCentres(), f(), polyMesh::faceOwner(), polyMesh::faces(), polyMeshTetDecomposition::findFaceBasePts(), forAll, and pFaces.
Referenced by Foam::polyMeshCheck::checkFaceTets(), and polyMeshTetDecomposition::findSharedBasePoint().
|
static |
Find a suitable base point for each face for decomposition.
into tets
Definition at line 183 of file polyMeshTetDecomposition.C.
References Foam::abort(), polyMesh::boundaryMesh(), primitiveMesh::cellCentres(), polyMeshTetDecomposition::checkFaceTets(), polyMesh::faceOwner(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), coupledPolyPatch::owner(), patches, patchi, polyBoundaryMesh::patchID(), and List< T >::size().
Referenced by polyMeshTetDecomposition::findBasePoint(), and polyMesh::tetBasePtIs().
|
static |
Check face-decomposition tet volume.
Definition at line 344 of file polyMeshTetDecomposition.C.
References polyMesh::boundaryMesh(), primitiveMesh::cellCentres(), Foam::endl(), f(), primitiveMesh::faceCentres(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMesh::faces(), polyMeshTetDecomposition::faceTetIndices(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), primitiveMesh::isInternalFace(), face::nextLabel(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), p, patches, patchi, polyBoundaryMesh::patchID(), polyMesh::points(), and Foam::reduce().
Referenced by polyMeshTetDecomposition::findFaceBasePts().
|
static |
Return the tet decomposition of the given face, with.
respect to the given cell
Definition at line 504 of file polyMeshTetDecomposition.C.
References polyMeshTetDecomposition::cellTetIndices(), f(), polyMesh::faces(), pFaces, and List< T >::size().
Referenced by polyMeshTetDecomposition::checkFaceTets(), cellPointWeight::findTriangle(), and FreeStream< CloudType >::inflow().
|
static |
Return the tet decomposition of the given cell, see.
findFacePt for the meaning of the indices
Definition at line 528 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::faceTetIndices(), cellPointWeight::findTetrahedron(), and patchInjectionBase::setPositionAndCell().
|
static |
Find the tet decomposition of the cell containing the given point.
Definition at line 559 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().
|
static |
Minimum tetrahedron quality.
Definition at line 64 of file polyMeshTetDecomposition.H.