|
|
|
tetCell.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::tetCell 00027 00028 Description 00029 A tetrahedral cell primitive. 00030 00031 It is important that the ordering of edges is the same for a tetrahedron 00032 class, a tetrahedron cell shape model and a tetCell 00033 00034 SourceFiles 00035 tetCell.C 00036 tetCellI.H 00037 00038 \*---------------------------------------------------------------------------*/ 00039 00040 #ifndef tetCell_H 00041 #define tetCell_H 00042 00043 #include "FixedList.H" 00044 #include "triFace.H" 00045 #include "edge.H" 00046 #include "pointField.H" 00047 #include "tetPointRef.H" 00048 00049 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00050 00051 namespace Foam 00052 { 00053 00054 class cellShape; 00055 00056 /*---------------------------------------------------------------------------*\ 00057 class tetCell Declaration 00058 \*---------------------------------------------------------------------------*/ 00059 00060 class tetCell 00061 : 00062 public FixedList<label, 4> 00063 { 00064 00065 public: 00066 00067 // Constructors 00068 00069 //- Construct null 00070 inline tetCell(); 00071 00072 //- Construct from four points 00073 inline tetCell 00074 ( 00075 const label a, 00076 const label b, 00077 const label c, 00078 const label d 00079 ); 00080 00081 //- Construct from FixedList 00082 inline tetCell(const FixedList<label, 4>&); 00083 00084 //- Construct from Istream 00085 inline tetCell(Istream&); 00086 00087 00088 // Member Functions 00089 00090 // Access 00091 00092 //- Return i-th face 00093 inline triFace face(const label faceI) const; 00094 00095 //- Return first face adjacent to the given edge 00096 inline label edgeFace(const label edgeI) const; 00097 00098 //- Return face adjacent to the given face sharing the same edge 00099 inline label edgeAdjacentFace 00100 ( 00101 const label edgeI, 00102 const label faceI 00103 ) const; 00104 00105 //- Return i-th edge 00106 inline edge tetEdge(const label edgeI) const; 00107 00108 00109 // Operations 00110 00111 //- Return tet shape cell 00112 cellShape tetCellShape() const; 00113 00114 //- Return the tetrahedron 00115 inline tetPointRef tet(const pointField&) const; 00116 }; 00117 00118 00119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00120 00121 } // End namespace Foam 00122 00123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00124 00125 #include "tetCellI.H" 00126 00127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00128 00129 #endif 00130 00131 // ************************************************************************* // |