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:
@ -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
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user