1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 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
25 \*---------------------------------------------------------------------------*/
27 #include "primitiveMesh.H"
28 #include "demandDrivenData.H"
30 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
35 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
37 void primitiveMesh::printAllocated() const
39 Pout<< "primitiveMesh allocated :" << endl;
44 Pout<< " Cell shapes" << endl;
49 Pout<< " Edges" << endl;
54 Pout<< " Cell-cells" << endl;
59 Pout<< " Edge-cells" << endl;
64 Pout<< " Point-cells" << endl;
69 Pout<< " Cell-faces" << endl;
74 Pout<< " Edge-faces" << endl;
79 Pout<< " Point-faces" << endl;
84 Pout<< " Cell-edges" << endl;
89 Pout<< " Face-edges" << endl;
94 Pout<< " Point-edges" << endl;
99 Pout<< " Point-point" << endl;
104 Pout<< " Cell-point" << endl;
110 Pout<< " Cell-centres" << endl;
115 Pout<< " Face-centres" << endl;
120 Pout<< " Cell-volumes" << endl;
125 Pout<< " Face-areas" << endl;
131 void primitiveMesh::clearGeom()
135 Pout<< "primitiveMesh::clearGeom() : "
136 << "clearing geometric data"
140 deleteDemandDrivenData(cellCentresPtr_);
141 deleteDemandDrivenData(faceCentresPtr_);
142 deleteDemandDrivenData(cellVolumesPtr_);
143 deleteDemandDrivenData(faceAreasPtr_);
147 void primitiveMesh::clearAddressing()
151 Pout<< "primitiveMesh::clearAddressing() : "
152 << "clearing topology"
156 deleteDemandDrivenData(cellShapesPtr_);
160 deleteDemandDrivenData(ccPtr_);
161 deleteDemandDrivenData(ecPtr_);
162 deleteDemandDrivenData(pcPtr_);
164 deleteDemandDrivenData(cfPtr_);
165 deleteDemandDrivenData(efPtr_);
166 deleteDemandDrivenData(pfPtr_);
168 deleteDemandDrivenData(cePtr_);
169 deleteDemandDrivenData(fePtr_);
170 deleteDemandDrivenData(pePtr_);
171 deleteDemandDrivenData(ppPtr_);
172 deleteDemandDrivenData(cpPtr_);
176 void primitiveMesh::clearOut()
183 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
185 } // End namespace Foam
187 // ************************************************************************* //