FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

primitiveMeshI.H

Go 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-2010 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
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your 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, see <http://www.gnu.org/licenses/>.
00023 
00024 Description
00025 
00026 \*---------------------------------------------------------------------------*/
00027 
00028 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00029 
00030 namespace Foam
00031 {
00032 
00033 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
00034 
00035 inline label primitiveMesh::nInternalPoints() const
00036 {
00037     return nInternalPoints_;
00038 }
00039 
00040 
00041 inline label primitiveMesh::nPoints() const
00042 {
00043     return nPoints_;
00044 }
00045 
00046 
00047 inline label primitiveMesh::nInternal0Edges() const
00048 {
00049     // Force edge calculation
00050     (void)nEdges();
00051     return nInternal0Edges_;
00052 }
00053 
00054 
00055 inline label primitiveMesh::nInternal1Edges() const
00056 {
00057     // Force edge calculation
00058     (void)nEdges();
00059     return nInternal1Edges_;
00060 }
00061 
00062 
00063 inline label primitiveMesh::nInternalEdges() const
00064 {
00065     // Force edge calculation
00066     (void)nEdges();
00067     return nInternalEdges_;
00068 }
00069 
00070 
00071 inline label primitiveMesh::nEdges() const
00072 {
00073     if (nEdges_ < 0)
00074     {
00075         nEdges_ = edges().size();
00076     }
00077 
00078     return nEdges_;
00079 }
00080 
00081 
00082 inline label primitiveMesh::nInternalFaces() const
00083 {
00084     return nInternalFaces_;
00085 }
00086 
00087 
00088 inline label primitiveMesh::nFaces() const
00089 {
00090     return nFaces_;
00091 }
00092 
00093 
00094 inline label primitiveMesh::nCells() const
00095 {
00096     return nCells_;
00097 }
00098 
00099 
00100 inline bool primitiveMesh::isInternalFace(const label faceIndex) const
00101 {
00102     return faceIndex < nInternalFaces();
00103 }
00104 
00105 
00106 inline bool primitiveMesh::hasCellShapes() const
00107 {
00108     return cellShapesPtr_;
00109 }
00110 
00111 
00112 inline bool primitiveMesh::hasEdges() const
00113 {
00114     return edgesPtr_;
00115 }
00116 
00117 
00118 inline bool primitiveMesh::hasCellCells() const
00119 {
00120     return ccPtr_;
00121 }
00122 
00123 
00124 inline bool primitiveMesh::hasEdgeCells() const
00125 {
00126     return ecPtr_;
00127 }
00128 
00129 
00130 inline bool primitiveMesh::hasPointCells() const
00131 {
00132     return pcPtr_;
00133 }
00134 
00135 
00136 inline bool primitiveMesh::hasCells() const
00137 {
00138     return cfPtr_;
00139 }
00140 
00141 
00142 inline bool primitiveMesh::hasEdgeFaces() const
00143 {
00144     return efPtr_;
00145 }
00146 
00147 
00148 inline bool primitiveMesh::hasPointFaces() const
00149 {
00150     return pfPtr_;
00151 }
00152 
00153 
00154 inline bool primitiveMesh::hasCellEdges() const
00155 {
00156     return cePtr_;
00157 }
00158 
00159 
00160 inline bool primitiveMesh::hasFaceEdges() const
00161 {
00162     return fePtr_;
00163 }
00164 
00165 
00166 inline bool primitiveMesh::hasPointEdges() const
00167 {
00168     return pePtr_;
00169 }
00170 
00171 
00172 inline bool primitiveMesh::hasPointPoints() const
00173 {
00174     return ppPtr_;
00175 }
00176 
00177 
00178 inline bool primitiveMesh::hasCellPoints() const
00179 {
00180     return cpPtr_;
00181 }
00182 
00183 
00184 inline bool primitiveMesh::hasCellCentres() const
00185 {
00186     return cellCentresPtr_;
00187 }
00188 
00189 
00190 inline bool primitiveMesh::hasFaceCentres() const
00191 {
00192     return faceCentresPtr_;
00193 }
00194 
00195 
00196 inline bool primitiveMesh::hasCellVolumes() const
00197 {
00198     return cellVolumesPtr_;
00199 }
00200 
00201 
00202 inline bool primitiveMesh::hasFaceAreas() const
00203 {
00204     return faceAreasPtr_;
00205 }
00206 
00207 
00208 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00209 
00210 } // End namespace Foam
00211 
00212 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines