diff --git a/applications/utilities/preProcessing/snappyHexMeshConfig/snappyHexMeshConfig.C b/applications/utilities/preProcessing/snappyHexMeshConfig/snappyHexMeshConfig.C index 058cbf33f1..ee260d7b6c 100644 --- a/applications/utilities/preProcessing/snappyHexMeshConfig/snappyHexMeshConfig.C +++ b/applications/utilities/preProcessing/snappyHexMeshConfig/snappyHexMeshConfig.C @@ -107,6 +107,9 @@ Usage - \par -cylindricalBackground Generate a cylindrical background mesh aligned with the z-axis + - \par -noBackground + Do not write a blockMeshDict file + - \par -refineBackground \ Integer multiplier for the number of cells (>= 1) @@ -245,6 +248,12 @@ int main(int argc, char *argv[]) "generate a cylindrical background mesh aligned with the z-axis" ); + argList::addBoolOption + ( + "noBackground", + "do not write a blockMeshDict file" + ); + argList::addOption ( "refineBackground", @@ -513,39 +522,42 @@ int main(int argc, char *argv[]) const bool clearBoundary(args.optionFound("clearBoundary")); - if (args.optionFound("cylindricalBackground")) + if (!args.optionFound("noBackground")) { - blockMeshCylindricalConfiguration blockMeshConfig - ( - "blockMeshDict", - runTime.system(), - runTime, - surfaces, - args.optionFound("bounds"), - nCells, - refineFactor, - patchOpts, - clearBoundary - ); + if (args.optionFound("cylindricalBackground")) + { + blockMeshCylindricalConfiguration blockMeshConfig + ( + "blockMeshDict", + runTime.system(), + runTime, + surfaces, + args.optionFound("bounds"), + nCells, + refineFactor, + patchOpts, + clearBoundary + ); - blockMeshConfig.write(); - } - else - { - blockMeshCartesianConfiguration blockMeshConfig - ( - "blockMeshDict", - runTime.system(), - runTime, - surfaces, - args.optionFound("bounds"), - nCells, - refineFactor, - patchOpts, - clearBoundary - ); + blockMeshConfig.write(); + } + else + { + blockMeshCartesianConfiguration blockMeshConfig + ( + "blockMeshDict", + runTime.system(), + runTime, + surfaces, + args.optionFound("bounds"), + nCells, + refineFactor, + patchOpts, + clearBoundary + ); - blockMeshConfig.write(); + blockMeshConfig.write(); + } } // snappyHexMeshDict options