diff --git a/applications/utilities/finiteArea/checkFaMesh/checkFaMesh.C b/applications/utilities/finiteArea/checkFaMesh/checkFaMesh.C index 5a155a806..66458407c 100644 --- a/applications/utilities/finiteArea/checkFaMesh/checkFaMesh.C +++ b/applications/utilities/finiteArea/checkFaMesh/checkFaMesh.C @@ -37,9 +37,11 @@ using namespace Foam; int main(int argc, char *argv[]) { +# include "addRegionOption.H" + # include "setRootCase.H" # include "createTime.H" -# include "createMesh.H" +# include "createNamedMesh.H" # include "createFaMesh.H" Info<< "Time = " << runTime.timeName() << nl << endl; diff --git a/applications/utilities/finiteArea/createFaMeshFromStl/createFaMeshFromStl.C b/applications/utilities/finiteArea/createFaMeshFromStl/createFaMeshFromStl.C index 1ea27f407..e5253a028 100644 --- a/applications/utilities/finiteArea/createFaMeshFromStl/createFaMeshFromStl.C +++ b/applications/utilities/finiteArea/createFaMeshFromStl/createFaMeshFromStl.C @@ -50,6 +50,8 @@ using namespace Foam; int main(int argc, char *argv[]) { +# include "addRegionOption.H" + argList::validArgs.append("STL mesh file"); argList args(argc, argv); diff --git a/applications/utilities/finiteArea/createFaMeshFromStl/makePolyMesh.H b/applications/utilities/finiteArea/createFaMeshFromStl/makePolyMesh.H index 13872316c..decbd99ac 100644 --- a/applications/utilities/finiteArea/createFaMeshFromStl/makePolyMesh.H +++ b/applications/utilities/finiteArea/createFaMeshFromStl/makePolyMesh.H @@ -23,11 +23,18 @@ faceRegion[faceI] = patch[faceI].region(); } + word polyRegionName; + + if (!args.optionReadIfPresent("region", polyRegionName)) + { + polyRegionName = polyMesh::defaultRegion; + } + polyMesh mesh ( IOobject ( - polyMesh::defaultRegion, + polyRegionName, runTime.constant(), runTime ), diff --git a/applications/utilities/finiteArea/makeFaMesh/makeFaMesh.C b/applications/utilities/finiteArea/makeFaMesh/makeFaMesh.C index 725b1defb..372e122e4 100644 --- a/applications/utilities/finiteArea/makeFaMesh/makeFaMesh.C +++ b/applications/utilities/finiteArea/makeFaMesh/makeFaMesh.C @@ -63,9 +63,11 @@ public: int main(int argc, char *argv[]) { +# include "addRegionOption.H" + # include "setRootCase.H" # include "createTime.H" -# include "createMesh.H" +# include "createNamedMesh.H" // Reading faMeshDefinition dictionary IOdictionary faMeshDefinition