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