1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
26 \*---------------------------------------------------------------------------*/
28 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
33 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
35 inline label primitiveMesh::nPoints() const
41 inline label primitiveMesh::nEdges() const
45 nEdges_ = edges().size();
52 inline label primitiveMesh::nInternalFaces() const
54 return nInternalFaces_;
58 inline label primitiveMesh::nFaces() const
64 inline label primitiveMesh::nCells() const
70 inline bool primitiveMesh::isInternalFace(const label faceIndex) const
72 return faceIndex < nInternalFaces();
76 inline bool primitiveMesh::hasCellShapes() const
78 return cellShapesPtr_;
82 inline bool primitiveMesh::hasEdges() const
88 inline bool primitiveMesh::hasCellCells() const
94 inline bool primitiveMesh::hasEdgeCells() const
100 inline bool primitiveMesh::hasPointCells() const
106 inline bool primitiveMesh::hasCells() const
112 inline bool primitiveMesh::hasEdgeFaces() const
118 inline bool primitiveMesh::hasPointFaces() const
124 inline bool primitiveMesh::hasCellEdges() const
130 inline bool primitiveMesh::hasFaceEdges() const
136 inline bool primitiveMesh::hasPointEdges() const
142 inline bool primitiveMesh::hasPointPoints() const
148 inline bool primitiveMesh::hasCellPoints() const
154 inline bool primitiveMesh::hasCellCentres() const
156 return cellCentresPtr_;
160 inline bool primitiveMesh::hasFaceCentres() const
162 return faceCentresPtr_;
166 inline bool primitiveMesh::hasCellVolumes() const
168 return cellVolumesPtr_;
172 inline bool primitiveMesh::hasFaceAreas() const
174 return faceAreasPtr_;
178 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
180 } // End namespace Foam
182 // ************************************************************************* //