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 the worst tet quality. More... | |
static scalar | minQuality (const polyMesh &mesh, const label facei, const label faceBasePtI) |
Given a face and starting index for triangulation determine the worst tet quality (owner or neighbour) 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 into tets. 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 labelList | adjustTetBasePtIs (const polyMesh &mesh, const bool report=false) |
Return an adjusted list of tet base points. 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 54 of file polyMeshTetDecomposition.H.
|
static |
Given a face and cc and starting index for triangulation determine the worst tet quality.
Definition at line 35 of file polyMeshTetDecomposition.C.
References f(), mesh, and tetrahedron< Point, PointRef >::quality().
|
static |
Given a face and starting index for triangulation determine the worst tet quality (owner or neighbour)
Definition at line 88 of file polyMeshTetDecomposition.C.
References mesh.
|
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 127 of file polyMeshTetDecomposition.C.
References f(), forAll, mesh, Foam::min(), and pFaces.
Referenced by polyMeshGeometry::checkFaceTets().
|
static |
As for findSharedBasePoint, but using neighbour cell.
centre from the mesh. For internal faces.
Definition at line 163 of file polyMeshTetDecomposition.C.
References mesh.
|
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 182 of file polyMeshTetDecomposition.C.
References f(), forAll, mesh, and pFaces.
Referenced by polyMeshGeometry::checkFaceTets().
|
static |
Find a suitable base point for each face for decomposition into tets.
Definition at line 218 of file polyMeshTetDecomposition.C.
References Foam::abort(), coupled, Foam::FatalError, FatalErrorInFunction, mesh, coupledPolyPatch::owner(), and patches.
Referenced by polyMesh::tetBasePtIs().
|
static |
Check face-decomposition tet volume.
Definition at line 377 of file polyMeshTetDecomposition.C.
References coupled, Foam::endl(), f(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), mesh, p, patches, and Foam::reduce().
Referenced by wallBoundedStreamLine::read().
|
static |
Return the tet decomposition of the given face, with.
respect to the given cell
Definition at line 535 of file polyMeshTetDecomposition.C.
References f(), mesh, and pFaces.
Referenced by FreeStream< CloudType >::inflow().
|
static |
Return the tet decomposition of the given cell, see.
findFacePt for the meaning of the indices
Definition at line 559 of file polyMeshTetDecomposition.C.
References DynamicList< T, SizeMin >::append(), mesh, and pFaces.
Referenced by patchInjectionBase::setPositionAndCell().
|
static |
Find the tet decomposition of the cell containing the given point.
Definition at line 588 of file polyMeshTetDecomposition.C.
References tetIndices::cell(), f(), tetrahedron< Point, PointRef >::inside(), mesh, pFaces, and tetIndices::tet().
Referenced by polyMesh::findTetFacePt().
|
static |
Return an adjusted list of tet base points.
Definition at line 630 of file polyMeshTetDecomposition.C.
References cells, HashTable< T, Key, Hash >::clear(), Foam::endl(), Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, forAll, forAllConstIters(), mesh, Foam::nl, Foam::Pout, and Foam::returnReduceOr().
Referenced by isoSurfaceTopo::isoSurfaceTopo().
|
static |
Minimum tetrahedron quality.
Definition at line 63 of file polyMeshTetDecomposition.H.
Referenced by wallBoundedStreamLine::read().