diff --git a/applications/utilities/mesh/advanced/refineHexMesh/refineHexMesh.C b/applications/utilities/mesh/advanced/refineHexMesh/refineHexMesh.C index b6669b09..1f91954e 100644 --- a/applications/utilities/mesh/advanced/refineHexMesh/refineHexMesh.C +++ b/applications/utilities/mesh/advanced/refineHexMesh/refineHexMesh.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -55,6 +55,12 @@ int main(int argc, char *argv[]) { # include "addOverwriteOption.H" argList::validArgs.append("cellSet"); + argList::addBoolOption + ( + "minSet", + "remove cells from input cellSet to keep to 2:1 ratio" + " (default is to extend set)" + ); # include "setRootCase.H" # include "createTime.H" @@ -65,6 +71,8 @@ int main(int argc, char *argv[]) word cellSetName(args.args()[1]); const bool overwrite = args.optionFound("overwrite"); + const bool minSet = args.optionFound("minSet"); + Info<< "Reading cells to refine from cellSet " << cellSetName << nl << endl; @@ -143,7 +151,7 @@ int main(int argc, char *argv[]) meshCutter.consistentRefinement ( cellsToRefine.toc(), - true // extend set + !minSet // extend set ) );