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