diff --git a/src/OpenFOAM/meshes/polyMesh/polyMesh.C b/src/OpenFOAM/meshes/polyMesh/polyMesh.C index 945e727b..a8156d24 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMesh.C +++ b/src/OpenFOAM/meshes/polyMesh/polyMesh.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -1456,6 +1456,17 @@ bool Foam::polyMesh::pointInCell return true; } break; + + case CELL_TETS: + { + label tetFacei; + label tetPti; + + findTetFacePt(cellI, p, tetFacei, tetPti); + + return tetFacei != -1; + } + break; } return false; } diff --git a/src/OpenFOAM/meshes/polyMesh/polyMesh.H b/src/OpenFOAM/meshes/polyMesh/polyMesh.H index ffabc4c7..bfcf438e 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMesh.H +++ b/src/OpenFOAM/meshes/polyMesh/polyMesh.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -100,7 +100,8 @@ public: { FACEPLANES, // cell bound by planes of faces FACECENTRETETS, // tet decomposition using facectr and cellctr - FACEDIAGTETS // tet decomposition using face diagonal and cellctr + FACEDIAGTETS, // tet decomposition using face diagonal and cellctr + CELL_TETS // Cell decomposed into tets }; @@ -693,14 +694,14 @@ public: ( const point&, label cellI, - const cellRepresentation = FACEDIAGTETS + const cellRepresentation = CELL_TETS ) const; //- Find cell enclosing this location (-1 if not in mesh) label findCell ( const point&, - const cellRepresentation = FACEDIAGTETS + const cellRepresentation = CELL_TETS ) const; };