Print some info on mesh.
| 238 | |
| 239 | // Print some info on mesh. |
| 240 | void 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 |
no test coverage detected