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/>.
24 \*---------------------------------------------------------------------------*/
26 #include "primitiveMesh.H"
27 #include "demandDrivenData.H"
30 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
32 void Foam::primitiveMesh::printAllocated() const
34 Pout<< "primitiveMesh allocated :" << endl;
39 Pout<< " Cell shapes" << endl;
44 Pout<< " Edges" << endl;
49 Pout<< " Cell-cells" << endl;
54 Pout<< " Edge-cells" << endl;
59 Pout<< " Point-cells" << endl;
64 Pout<< " Cell-faces" << endl;
69 Pout<< " Edge-faces" << endl;
74 Pout<< " Point-faces" << endl;
79 Pout<< " Cell-edges" << endl;
84 Pout<< " Face-edges" << endl;
89 Pout<< " Point-edges" << endl;
94 Pout<< " Point-point" << endl;
99 Pout<< " Cell-point" << endl;
105 Pout<< " Cell-centres" << endl;
110 Pout<< " Face-centres" << endl;
115 Pout<< " Cell-volumes" << endl;
120 Pout<< " Face-areas" << endl;
126 void Foam::primitiveMesh::clearGeom()
130 Pout<< "primitiveMesh::clearGeom() : "
131 << "clearing geometric data"
135 deleteDemandDrivenData(cellCentresPtr_);
136 deleteDemandDrivenData(faceCentresPtr_);
137 deleteDemandDrivenData(cellVolumesPtr_);
138 deleteDemandDrivenData(faceAreasPtr_);
142 void Foam::primitiveMesh::clearAddressing()
146 Pout<< "primitiveMesh::clearAddressing() : "
147 << "clearing topology"
151 deleteDemandDrivenData(cellShapesPtr_);
155 deleteDemandDrivenData(ccPtr_);
156 deleteDemandDrivenData(ecPtr_);
157 deleteDemandDrivenData(pcPtr_);
159 deleteDemandDrivenData(cfPtr_);
160 deleteDemandDrivenData(efPtr_);
161 deleteDemandDrivenData(pfPtr_);
163 deleteDemandDrivenData(cePtr_);
164 deleteDemandDrivenData(fePtr_);
165 deleteDemandDrivenData(pePtr_);
166 deleteDemandDrivenData(ppPtr_);
167 deleteDemandDrivenData(cpPtr_);
171 void Foam::primitiveMesh::clearOut()
178 // ************************************************************************* //