mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
surfaceFind: output region/zone number of found face
This commit is contained in:
@ -114,12 +114,23 @@ 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<< endl;
|
||||
|
||||
Info<< "End\n" << endl;
|
||||
|
||||
Reference in New Issue
Block a user