Skip to content
Permalink
Browse files
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
  • Loading branch information
Henry Weller committed Nov 12, 2019
1 parent a3f769b commit 16d810c5fe6c455e5ffe17b431ae3d65b66475ea
Showing 1 changed file with 12 additions and 2 deletions.
@@ -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
),

0 comments on commit 16d810c

Please sign in to comment.