mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
blockMesh: Added check for curved-edge/block-edge consistency
This commit is contained in:
@ -29,13 +29,32 @@ License
|
|||||||
|
|
||||||
void Foam::blockMesh::check(const polyMesh& bm) const
|
void Foam::blockMesh::check(const polyMesh& bm) const
|
||||||
{
|
{
|
||||||
if (verboseOutput)
|
Info<< nl << "Check topology" << endl;
|
||||||
{
|
|
||||||
Info<< nl << "Check topology" << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
|
|
||||||
|
// Check curved-edge/block-edge correspondence
|
||||||
|
const edgeList& edges = bm.edges();
|
||||||
|
|
||||||
|
forAll(edges_, cei)
|
||||||
|
{
|
||||||
|
bool found = false;
|
||||||
|
|
||||||
|
forAll(edges, ci)
|
||||||
|
{
|
||||||
|
found = edges_[cei].compare(edges[ci][0], edges[ci][1]) != 0;
|
||||||
|
if (found) break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!found)
|
||||||
|
{
|
||||||
|
Info<< " Curved edge " << edges_[cei]
|
||||||
|
<< " does not correspond to a block edge."
|
||||||
|
<< endl;
|
||||||
|
ok = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const pointField& points = bm.points();
|
const pointField& points = bm.points();
|
||||||
const faceList& faces = bm.faces();
|
const faceList& faces = bm.faces();
|
||||||
const cellList& cells = bm.cells();
|
const cellList& cells = bm.cells();
|
||||||
|
|||||||
Reference in New Issue
Block a user