fixed writing out entries in advective bc
[OpenFOAM-1.6-ext.git] / src / OpenFOAM / meshes / meshShapes / cellMatcher / degenerateMatcher.H
blobcb51665d5e844cc0f586207bb110f447f3726d05
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright held by original author
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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
25 Class
26     Foam::degenerateMatcher
28 Description
29     Collection of all hex degenerate matchers (hex, wedge, prism etc.)
30     Has static member function to match a shape.
32 See Also
33     cellMatcher
35 SourceFiles
36     degenerateMatcher.C
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 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 namespace Foam
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;
72     // Static functions
74         //- Recognize basic shape
75         static cellShape match
76         (
77             const faceList& faces,
78             const labelList& faceOwner,
79             const label cellI,
80             const labelList& cellFaces
81         );
83 public:
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 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
105 #endif
107 // ************************************************************************* //