- can help when designing/debugging blockMesh layouts - propagate low-level cellModel methods face() and edge() to cellShape STYLE: relocate blockMesh OBJ output to application only - remove blockTopology files in cleanCase function - improve code consistency in top-level blockMesh, PDRblockMesh generation.
86 lines
2.5 KiB
C
86 lines
2.5 KiB
C
/*---------------------------------------------------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration |
|
|
\\ / A nd | www.openfoam.com
|
|
\\/ M anipulation |
|
|
-------------------------------------------------------------------------------
|
|
Copyright (C) 2020 OpenCFD Ltd.
|
|
-------------------------------------------------------------------------------
|
|
License
|
|
This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
|
|
|
|
Description
|
|
Summary of mesh information (eg, after blockMesh)
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
{
|
|
Info<< "----------------" << nl
|
|
<< "Mesh Information" << nl
|
|
<< "----------------" << nl
|
|
<< " " << "boundingBox: " << boundBox(mesh.points()) << nl
|
|
<< " " << "nPoints: " << mesh.nPoints() << nl
|
|
<< " " << "nCells: " << mesh.nCells() << nl
|
|
<< " " << "nFaces: " << mesh.nFaces() << nl
|
|
<< " " << "nInternalFaces: " << mesh.nInternalFaces() << nl;
|
|
|
|
const auto printZone =
|
|
[](const Foam::zone& zn)
|
|
{
|
|
Info<< " " << "zone " << zn.index()
|
|
<< " (size: " << zn.size()
|
|
<< ") name: " << zn.name() << nl;
|
|
};
|
|
|
|
if (mesh.cellZones().size())
|
|
{
|
|
Info<< "----------------" << nl
|
|
<< "Cell Zones" << nl
|
|
<< "----------------" << nl;
|
|
|
|
for (const cellZone& zn : mesh.cellZones())
|
|
{
|
|
printZone(zn);
|
|
}
|
|
}
|
|
if (mesh.faceZones().size())
|
|
{
|
|
Info<< "----------------" << nl
|
|
<< "Face Zones" << nl
|
|
<< "----------------" << nl;
|
|
|
|
for (const faceZone& zn : mesh.faceZones())
|
|
{
|
|
printZone(zn);
|
|
}
|
|
}
|
|
if (mesh.pointZones().size())
|
|
{
|
|
Info<< "----------------" << nl
|
|
<< "Point Zones" << nl
|
|
<< "----------------" << nl;
|
|
|
|
for (const pointZone& zn : mesh.pointZones())
|
|
{
|
|
printZone(zn);
|
|
}
|
|
}
|
|
|
|
Info<< "----------------" << nl
|
|
<< "Patches" << nl
|
|
<< "----------------" << nl;
|
|
|
|
for (const polyPatch& p : mesh.boundaryMesh())
|
|
{
|
|
Info<< " " << "patch " << p.index()
|
|
<< " (start: " << p.start()
|
|
<< " size: " << p.size()
|
|
<< ") name: " << p.name()
|
|
<< nl;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|