1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
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
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
27 \*---------------------------------------------------------------------------*/
29 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
34 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
36 inline label primitiveMesh::nInternalPoints() const
38 return nInternalPoints_;
42 inline label primitiveMesh::nPoints() const
48 inline label primitiveMesh::nInternal0Edges() const
50 // Force edge calculation
52 return nInternal0Edges_;
56 inline label primitiveMesh::nInternal1Edges() const
58 // Force edge calculation
60 return nInternal1Edges_;
64 inline label primitiveMesh::nInternalEdges() const
66 // Force edge calculation
68 return nInternalEdges_;
72 inline label primitiveMesh::nEdges() const
76 nEdges_ = edges().size();
83 inline label primitiveMesh::nInternalFaces() const
85 return nInternalFaces_;
89 inline label primitiveMesh::nFaces() const
95 inline label primitiveMesh::nCells() const
101 inline bool primitiveMesh::isInternalFace(const label faceIndex) const
103 return faceIndex < nInternalFaces();
107 inline bool primitiveMesh::hasCellShapes() const
109 return cellShapesPtr_;
113 inline bool primitiveMesh::hasEdges() const
119 inline bool primitiveMesh::hasCellCells() const
125 inline bool primitiveMesh::hasEdgeCells() const
131 inline bool primitiveMesh::hasPointCells() const
137 inline bool primitiveMesh::hasCells() const
143 inline bool primitiveMesh::hasEdgeFaces() const
149 inline bool primitiveMesh::hasPointFaces() const
155 inline bool primitiveMesh::hasCellEdges() const
161 inline bool primitiveMesh::hasFaceEdges() const
167 inline bool primitiveMesh::hasPointEdges() const
173 inline bool primitiveMesh::hasPointPoints() const
179 inline bool primitiveMesh::hasCellPoints() const
185 inline bool primitiveMesh::hasCellCentres() const
187 return cellCentresPtr_;
191 inline bool primitiveMesh::hasFaceCentres() const
193 return faceCentresPtr_;
197 inline bool primitiveMesh::hasCellVolumes() const
199 return cellVolumesPtr_;
203 inline bool primitiveMesh::hasFaceAreas() const
205 return faceAreasPtr_;
209 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
211 } // End namespace Foam
213 // ************************************************************************* //