polyMeshGenAddressingClear.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | cfMesh: A library for mesh generation
4  \\ / O peration |
5  \\ / A nd | Copyright held by the original author
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of cfMesh.
10 
11  cfMesh 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.
15 
16  cfMesh 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
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with cfMesh. If not, see <http://www.gnu.org/licenses/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
26 #include "polyMeshGenAddressing.H"
27 #include "demandDrivenData.H"
28 
29 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
33 
34 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
35 
37 {
38  Pout << "polyMeshGenAddressing allocated :" << endl;
39 
40  if( edgesPtr_ )
41  {
42  Pout<< " Edges" << endl;
43  }
44 
45  if( ccPtr_ )
46  {
47  Pout<< " Cell-cells" << endl;
48  }
49 
50  if( ecPtr_ )
51  {
52  Pout<< " Edge-cells" << endl;
53  }
54 
55  if (pcPtr_)
56  {
57  Pout<< " Point-cells" << endl;
58  }
59 
60  if( efPtr_ )
61  {
62  Pout<< " Edge-faces" << endl;
63  }
64 
65  if (pfPtr_)
66  {
67  Pout<< " Point-faces" << endl;
68  }
69 
70  if( cePtr_ )
71  {
72  Pout<< " Cell-edges" << endl;
73  }
74 
75  if( fePtr_ )
76  {
77  Pout<< " Face-edges" << endl;
78  }
79 
80  if( pePtr_ )
81  {
82  Pout<< " Point-edges" << endl;
83  }
84 
85  if( ppPtr_ )
86  {
87  Pout<< " Point-point" << endl;
88  }
89 
90  if( cpPtr_ )
91  {
92  Pout<< " Cell-point" << endl;
93  }
94 
95  // Geometry
96  if( cellCentresPtr_ )
97  {
98  Pout<< " Cell-centres" << endl;
99  }
100 
101  if( faceCentresPtr_ )
102  {
103  Pout<< " Face-centres" << endl;
104  }
105 
106  if( cellVolumesPtr_ )
107  {
108  Pout<< " Cell-volumes" << endl;
109  }
110 
111  if( faceAreasPtr_ )
112  {
113  Pout<< " Face-areas" << endl;
114  }
115 }
116 
118 {
119  if( debug )
120  {
121  Pout<< "polyMeshGenAddressing::clearGeom() : "
122  << "clearing geometric data"
123  << endl;
124  }
125 
130 }
131 
133 {
134  if( debug )
135  {
136  Pout<< "polyMeshGenAddressing::clearAddressing() : "
137  << "clearing topology"
138  << endl;
139  }
140 
141  clearOutEdges();
142 
146 
149 
155 }
156 
158 {
163 
170 }
171 
173 {
174  clearGeom();
175  clearAddressing();
177 }
178 
179 
181 {
182  clearGeom();
183  clearAddressing();
185 }
186 
187 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
188 
189 } // End namespace Foam
190 
191 // ************************************************************************* //
Foam::polyMeshGenAddressing::cellCentresPtr_
vectorField * cellCentresPtr_
Cell centres.
Definition: polyMeshGenAddressing.H:118
Foam::polyMeshGenAddressing::pePtr_
VRWGraph * pePtr_
Point-edges.
Definition: polyMeshGenAddressing.H:106
Foam::polyMeshGenAddressing::clearParallelAddressing
void clearParallelAddressing()
Clear parallel addressing.
Definition: polyMeshGenAddressingClear.C:157
demandDrivenData.H
Template functions to aid in the implementation of demand driven data.
Foam::polyMeshGenAddressing::cellVolumesPtr_
scalarField * cellVolumesPtr_
Cell volumes.
Definition: polyMeshGenAddressing.H:124
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
Foam::polyMeshGenAddressing::globalFaceLabelPtr_
labelLongList * globalFaceLabelPtr_
global face labels
Definition: polyMeshGenAddressing.H:135
Foam::polyMeshGenAddressing::pointNeiProcsPtr_
DynList< label > * pointNeiProcsPtr_
neighbour processors sharing a point with this processor
Definition: polyMeshGenAddressing.H:152
Foam::polyMeshGenAddressing::efPtr_
VRWGraph * efPtr_
Edge-faces.
Definition: polyMeshGenAddressing.H:94
Foam::polyMeshGenAddressing::faceCentresPtr_
vectorField * faceCentresPtr_
Face centres.
Definition: polyMeshGenAddressing.H:121
Foam::polyMeshGenAddressing::faceAreasPtr_
vectorField * faceAreasPtr_
Face areas.
Definition: polyMeshGenAddressing.H:127
Foam::polyMeshGenAddressing::clearAll
void clearAll()
Clear everything primitive, geometry and addressing.
Definition: polyMeshGenAddressingClear.C:180
Foam::polyMeshGenAddressing::globalPointLabelPtr_
labelLongList * globalPointLabelPtr_
global point labels
Definition: polyMeshGenAddressing.H:132
Foam::polyMeshGenAddressing::pfPtr_
VRWGraph * pfPtr_
Point-faces.
Definition: polyMeshGenAddressing.H:97
Foam::deleteDemandDrivenData
void deleteDemandDrivenData(DataPtr &dataPtr)
Definition: demandDrivenData.H:40
Foam::polyMeshGenAddressing::fePtr_
VRWGraph * fePtr_
Face-edges.
Definition: polyMeshGenAddressing.H:103
Foam::polyMeshGenAddressing::clearAddressing
void clearAddressing()
Clear topological data.
Definition: polyMeshGenAddressingClear.C:132
Foam::polyMeshGenAddressing::ccPtr_
VRWGraph * ccPtr_
Cell-cells.
Definition: polyMeshGenAddressing.H:85
Foam::polyMeshGenAddressing::globalToLocalEdgeAddressingPtr_
Map< label > * globalToLocalEdgeAddressingPtr_
global to local edge addressing
Definition: polyMeshGenAddressing.H:158
Foam::polyMeshGenAddressing::cpPtr_
VRWGraph * cpPtr_
Cell-points.
Definition: polyMeshGenAddressing.H:112
Foam::polyMeshGenAddressing::clearOutEdges
void clearOutEdges()
Definition: polyMeshGenAddressingEdges.C:176
Foam::polyMeshGenAddressing::edgeNeiProcsPtr_
DynList< label > * edgeNeiProcsPtr_
neighbour processors sharing an edge with the current processor
Definition: polyMeshGenAddressing.H:161
Foam::polyMeshGenAddressing::cePtr_
VRWGraph * cePtr_
Cell-edges.
Definition: polyMeshGenAddressing.H:100
Foam::polyMeshGenAddressing::edgesPtr_
edgeList * edgesPtr_
Edges.
Definition: polyMeshGenAddressing.H:79
Foam::polyMeshGenAddressing::pProcsPtr_
VRWGraph * pProcsPtr_
processors containing a vertex
Definition: polyMeshGenAddressing.H:146
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::polyMeshGenAddressing::eProcsPtr_
VRWGraph * eProcsPtr_
processors containing an edge
Definition: polyMeshGenAddressing.H:155
Foam::polyMeshGenAddressing::globalToLocalPointAddressingPtr_
Map< label > * globalToLocalPointAddressingPtr_
global to local point adressing
Definition: polyMeshGenAddressing.H:149
Foam::polyMeshGenAddressing::clearGeom
void clearGeom()
Clear geometry.
Definition: polyMeshGenAddressingClear.C:117
Foam::Pout
prefixOSstream Pout(cout, "Pout")
Definition: IOstreams.H:53
Foam::polyMeshGenAddressing::pcPtr_
VRWGraph * pcPtr_
Point-cells.
Definition: polyMeshGenAddressing.H:91
Foam::polyMeshGenAddressing::ppPtr_
VRWGraph * ppPtr_
Point-points.
Definition: polyMeshGenAddressing.H:109
Foam::polyMeshGenAddressing::ecPtr_
VRWGraph * ecPtr_
Edge-cells.
Definition: polyMeshGenAddressing.H:88
Foam::polyMeshGenAddressing::globalEdgeLabelPtr_
labelLongList * globalEdgeLabelPtr_
global edge labels
Definition: polyMeshGenAddressing.H:141
Foam::polyMeshGenAddressing::printAllocated
void printAllocated() const
Print a list of all the currently allocated mesh data.
Definition: polyMeshGenAddressingClear.C:36
Foam::polyMeshGenAddressing::globalCellLabelPtr_
labelLongList * globalCellLabelPtr_
global cell labels
Definition: polyMeshGenAddressing.H:138
polyMeshGenAddressing.H
Foam::polyMeshGenAddressing::clearOut
void clearOut()
Clear all geometry and addressing unnecessary for CFD.
Definition: polyMeshGenAddressingClear.C:172