ideasUnvToFoam: added region option

This allows mesh conversion of several UNV files into region meshes of a
multi-region case.

Patch contributed by Tobias Holzmann
This commit is contained in:
Henry Weller
2019-11-12 09:28:51 +00:00
parent a3f769ba4a
commit 16d810c5fe

View File

@ -667,6 +667,11 @@ int main(int argc, char *argv[])
"dump",
"dump boundary faces as boundaryFaces.obj (for debugging)"
);
argList::addOption
(
"region",
"specify the mesh region"
);
#include "setRootCase.H"
#include "createTime.H"
@ -681,7 +686,6 @@ int main(int argc, char *argv[])
<< exit(FatalError);
}
// Switch on additional debug info
const bool verbose = false; // true;
@ -1161,14 +1165,20 @@ int main(int argc, char *argv[])
Info<< endl;
// Set regions path if set
word regionName = polyMesh::defaultRegion;
if (args.optionFound("region"))
{
regionName = args.option("region");
}
// Construct mesh
polyMesh mesh
(
IOobject
(
polyMesh::defaultRegion,
regionName,
runTime.constant(),
runTime
),