1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::degenerateMatcher
29 Collection of all hex degenerate matchers (hex, wedge, prism etc.)
30 Has static member function to match a shape.
38 \*---------------------------------------------------------------------------*/
40 #ifndef degenerateMatcher_H
41 #define degenerateMatcher_H
43 #include "hexMatcher.H"
44 #include "wedgeMatcher.H"
45 #include "prismMatcher.H"
46 #include "tetWedgeMatcher.H"
47 #include "pyrMatcher.H"
48 #include "tetMatcher.H"
50 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
55 /*---------------------------------------------------------------------------*\
56 Class degenerateMatcher Declaration
57 \*---------------------------------------------------------------------------*/
59 class degenerateMatcher
62 // Static data members
64 //- Matchers for all degenerate hex shapes
65 static hexMatcher hex;
66 static wedgeMatcher wedge;
67 static prismMatcher prism;
68 static tetWedgeMatcher tetWedge;
69 static pyrMatcher pyr;
70 static tetMatcher tet;
74 //- Recognize basic shape
75 static cellShape match
77 const faceList& faces,
78 const labelList& faceOwner,
80 const labelList& cellFaces
85 // Static data members
87 //- Recognize shape given faces of a cell
88 static cellShape match(const faceList& faces);
90 //- Recognize given uncollapsed shape (usually hex) with duplicate
91 // vertices. cellShape just used to extract faces.
92 static cellShape match(const cellShape& shape);
94 //- Recognize shape given mesh and cellI
95 static cellShape match(const primitiveMesh& mesh, const label cellI);
99 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 } // End namespace Foam
103 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 // ************************************************************************* //