mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
surfaceFind: output region/zone number of found face
This commit is contained in:
committed by
Andrew Heather
parent
0bc9a459c8
commit
3c1982e205
@ -117,12 +117,24 @@ int main(int argc, char *argv[])
|
||||
<< " index : " << minIndex << nl
|
||||
<< " centre : " << f.centre(points) << nl
|
||||
<< " face : " << f << nl
|
||||
<< " vertex coords:\n";
|
||||
<< " vertex coords:" << endl;
|
||||
|
||||
forAll(f, fp)
|
||||
{
|
||||
Info<< " " << points[f[fp]] << "\n";
|
||||
Info<< " " << points[f[fp]] << nl;
|
||||
}
|
||||
|
||||
const List<surfZone>& surfZones = surf1.surfZones();
|
||||
label surfZone = -1;
|
||||
forAll(surfZones, zonei)
|
||||
{
|
||||
if (minIndex >= surfZones[zonei].start())
|
||||
{
|
||||
surfZone = zonei;
|
||||
}
|
||||
}
|
||||
Info<< " zone/region : " << surfZone << endl;
|
||||
|
||||
Info<< nl
|
||||
<< "End\n" << endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user