degenerateMatcher.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2016 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::degenerateMatcher
28 
29 Description
30  Collection of all hex degenerate matchers (hex, wedge, prism etc.)
31 
32  Has static member function to match a shape.
33 
34 See also
35  cellMatcher
36 
37 SourceFiles
38  degenerateMatcher.C
39 
40 \*---------------------------------------------------------------------------*/
41 
42 #ifndef degenerateMatcher_H
43 #define degenerateMatcher_H
44 
45 #include "hexMatcher.H"
46 #include "wedgeMatcher.H"
47 #include "prismMatcher.H"
48 #include "tetWedgeMatcher.H"
49 #include "pyrMatcher.H"
50 #include "tetMatcher.H"
51 
52 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
53 
54 namespace Foam
55 {
56 
57 /*---------------------------------------------------------------------------*\
58  Class degenerateMatcher Declaration
59 \*---------------------------------------------------------------------------*/
60 
62 {
63  // Static Data Members
64 
65  //- Matchers for all degenerate hex shapes
66  static hexMatcher hex;
67  static wedgeMatcher wedge;
68  static prismMatcher prism;
69  static tetWedgeMatcher tetWedge;
70  static pyrMatcher pyr;
71  static tetMatcher tet;
72 
73 
74  // Static Functions
75 
76  //- Recognize basic shape
77  static cellShape match
78  (
79  const faceList& faces,
80  const labelList& faceOwner,
81  const label celli,
82  const labelList& cellFaces
83  );
84 
85 public:
86 
87  // Static Functions
88 
89  //- Recognize shape given faces of a cell
90  static cellShape match(const faceList& faces);
91 
92  //- Recognize given uncollapsed shape (usually hex) with duplicate
93  //- vertices. cellShape just used to extract faces.
94  static cellShape match(const cellShape& shape);
95 
96  //- Recognize shape given mesh and celli
97  static cellShape match(const primitiveMesh& mesh, const label celli);
98 };
99 
100 
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 
103 } // End namespace Foam
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 #endif
108 
109 // ************************************************************************* //
Foam::prismMatcher
A cellMatcher for prism cells (cellModel::PRISM)
Definition: prismMatcher.H:53
wedgeMatcher.H
Foam::tetWedgeMatcher
A cellMatcher for tetWedge cells (cellModel::TETWEDGE).
Definition: tetWedgeMatcher.H:53
hexMatcher.H
Foam::tetMatcher
A cellMatcher for tet cells (cellModel::TET)
Definition: tetMatcher.H:54
tetWedgeMatcher.H
Foam::pyrMatcher
A cellMatcher for pyr cells (cellModel::PYR)
Definition: pyrMatcher.H:54
Foam::hexMatcher
A cellMatcher for hex cells (cellModel::HEX).
Definition: hexMatcher.H:54
prismMatcher.H
Foam::degenerateMatcher
Collection of all hex degenerate matchers (hex, wedge, prism etc.)
Definition: degenerateMatcher.H:60
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::cellShape
An analytical geometric cellShape.
Definition: cellShape.H:69
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::wedgeMatcher
A cellMatcher for wedge cells (cellModel::WEDGE).
Definition: wedgeMatcher.H:53
Foam::List< face >
tetMatcher.H
pyrMatcher.H
Foam::primitiveMesh
Cell-face mesh analysis engine.
Definition: primitiveMesh.H:78