1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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
13 the Free Software Foundation, either version 3 of the License, or
14 (at your 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, see <http://www.gnu.org/licenses/>.
26 \*---------------------------------------------------------------------------*/
28 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
33 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
35 inline label primitiveMesh::nInternalPoints() const
37 return nInternalPoints_;
41 inline label primitiveMesh::nPoints() const
47 inline label primitiveMesh::nInternal0Edges() const
49 // Force edge calculation
51 return nInternal0Edges_;
55 inline label primitiveMesh::nInternal1Edges() const
57 // Force edge calculation
59 return nInternal1Edges_;
63 inline label primitiveMesh::nInternalEdges() const
65 // Force edge calculation
67 return nInternalEdges_;
71 inline label primitiveMesh::nEdges() const
75 nEdges_ = edges().size();
82 inline label primitiveMesh::nInternalFaces() const
84 return nInternalFaces_;
88 inline label primitiveMesh::nFaces() const
94 inline label primitiveMesh::nCells() const
100 inline bool primitiveMesh::isInternalFace(const label faceIndex) const
102 return faceIndex < nInternalFaces();
106 inline bool primitiveMesh::hasCellShapes() const
108 return cellShapesPtr_;
112 inline bool primitiveMesh::hasEdges() const
118 inline bool primitiveMesh::hasCellCells() const
124 inline bool primitiveMesh::hasEdgeCells() const
130 inline bool primitiveMesh::hasPointCells() const
136 inline bool primitiveMesh::hasCells() const
142 inline bool primitiveMesh::hasEdgeFaces() const
148 inline bool primitiveMesh::hasPointFaces() const
154 inline bool primitiveMesh::hasCellEdges() const
160 inline bool primitiveMesh::hasFaceEdges() const
166 inline bool primitiveMesh::hasPointEdges() const
172 inline bool primitiveMesh::hasPointPoints() const
178 inline bool primitiveMesh::hasCellPoints() const
184 inline bool primitiveMesh::hasCellCentres() const
186 return cellCentresPtr_;
190 inline bool primitiveMesh::hasFaceCentres() const
192 return faceCentresPtr_;
196 inline bool primitiveMesh::hasCellVolumes() const
198 return cellVolumesPtr_;
202 inline bool primitiveMesh::hasFaceAreas() const
204 return faceAreasPtr_;
208 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
210 } // End namespace Foam
212 // ************************************************************************* //