MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / printMeshInfo

Function printMeshInfo

src/dynamicMesh/fvMeshDistribute/fvMeshDistribute.C:240–296  ·  view source on GitHub ↗

Print some info on mesh.

Source from the content-addressed store, hash-verified

238
239// Print some info on mesh.
240void Foam::fvMeshDistribute::printMeshInfo(const fvMesh& mesh)
241{
242 Pout<< "Primitives:" << nl
243 << " points :" << mesh.nPoints() << nl
244 << " bb :" << boundBox(mesh.points(), false) << nl
245 << " internalFaces:" << mesh.nInternalFaces() << nl
246 << " faces :" << mesh.nFaces() << nl
247 << " cells :" << mesh.nCells() << nl;
248
249 const fvBoundaryMesh& patches = mesh.boundary();
250
251 Pout<< "Patches:" << endl;
252 forAll(patches, patchi)
253 {
254 const polyPatch& pp = patches[patchi].patch();
255
256 Pout<< " " << patchi << " name:" << pp.name()
257 << " size:" << pp.size()
258 << " start:" << pp.start()
259 << " type:" << pp.type()
260 << endl;
261 }
262
263 if (mesh.pointZones().size())
264 {
265 Pout<< "PointZones:" << endl;
266 forAll(mesh.pointZones(), zoneI)
267 {
268 const pointZone& pz = mesh.pointZones()[zoneI];
269 Pout<< " " << zoneI << " name:" << pz.name()
270 << " size:" << pz.size()
271 << endl;
272 }
273 }
274 if (mesh.faceZones().size())
275 {
276 Pout<< "FaceZones:" << endl;
277 forAll(mesh.faceZones(), zoneI)
278 {
279 const faceZone& fz = mesh.faceZones()[zoneI];
280 Pout<< " " << zoneI << " name:" << fz.name()
281 << " size:" << fz.size()
282 << endl;
283 }
284 }
285 if (mesh.cellZones().size())
286 {
287 Pout<< "CellZones:" << endl;
288 forAll(mesh.cellZones(), zoneI)
289 {
290 const cellZone& cz = mesh.cellZones()[zoneI];
291 Pout<< " " << zoneI << " name:" << cz.name()
292 << " size:" << cz.size()
293 << endl;
294 }
295 }
296}
297

Callers 1

fvMeshDistribute.CFile · 0.70

Calls 12

patchMethod · 0.80
boundBoxClass · 0.50
forAllFunction · 0.50
nPointsMethod · 0.45
pointsMethod · 0.45
nInternalFacesMethod · 0.45
nFacesMethod · 0.45
nCellsMethod · 0.45
nameMethod · 0.45
sizeMethod · 0.45
startMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected