|
|
|
hexMatcher.HGo to the documentation of this file.00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. 00006 \\/ M anipulation | 00007 ------------------------------------------------------------------------------- 00008 License 00009 This file is part of OpenFOAM. 00010 00011 OpenFOAM is free software; you can redistribute it and/or modify it 00012 under the terms of the GNU General Public License as published by the 00013 Free Software Foundation; either version 2 of the License, or (at your 00014 option) any later version. 00015 00016 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00018 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00019 for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with OpenFOAM; if not, write to the Free Software Foundation, 00023 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00024 00025 Class 00026 Foam::hexMatcher 00027 00028 Description 00029 A cellMatcher for hex cells 00030 00031 See Also 00032 cellMatcher 00033 00034 SourceFiles 00035 hexMatcher.C 00036 00037 \*---------------------------------------------------------------------------*/ 00038 00039 #ifndef hexMatcher_H 00040 #define hexMatcher_H 00041 00042 #include "cellMatcher.H" 00043 00044 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00045 00046 namespace Foam 00047 { 00048 00049 /*---------------------------------------------------------------------------*\ 00050 Class hexMatcher Declaration 00051 \*---------------------------------------------------------------------------*/ 00052 00053 class hexMatcher 00054 : 00055 public cellMatcher 00056 { 00057 // Static data members 00058 00059 //- constants for this shape 00060 static const label vertPerCell; 00061 static const label facePerCell; 00062 static const label maxVertPerFace; 00063 00064 00065 // Private Member Functions 00066 00067 //- Disallow default bitwise copy construct 00068 hexMatcher(const hexMatcher&); 00069 00070 //- Disallow default bitwise assignment 00071 void operator=(const hexMatcher&); 00072 00073 00074 public: 00075 00076 // Constructors 00077 00078 //- Construct null 00079 hexMatcher(); 00080 00081 // Destructor 00082 00083 ~hexMatcher(); 00084 00085 00086 // Member Functions 00087 00088 virtual label nVertPerCell() const 00089 { 00090 return vertPerCell; 00091 } 00092 00093 virtual label nFacePerCell() const 00094 { 00095 return facePerCell; 00096 } 00097 00098 virtual label nMaxVertPerFace() const 00099 { 00100 return maxVertPerFace; 00101 } 00102 00103 virtual label faceHashValue() const; 00104 00105 virtual bool faceSizeMatch(const faceList&, const labelList&) const; 00106 00107 virtual bool matchShape 00108 ( 00109 const bool checkOnly, 00110 const faceList& faces, 00111 const labelList& faceOwner, 00112 const label cellI, 00113 const labelList& myFaces 00114 ); 00115 00116 virtual bool isA(const primitiveMesh& mesh, const label cellI); 00117 00118 virtual bool isA(const faceList&); 00119 00120 virtual bool matches 00121 ( 00122 const primitiveMesh& mesh, 00123 const label cellI, 00124 cellShape& shape 00125 ); 00126 }; 00127 00128 00129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00130 00131 } // End namespace Foam 00132 00133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00134 00135 #endif 00136 00137 // ************************************************************************* // |