Skip to content
Snippets Groups Projects
Commit c67779b2 authored by mattijs's avatar mattijs Committed by Andrew Heather
Browse files

ENH: refineHexMesh: add option to keep to 2:1 ratio outside cellSet

parent b50f2943
Branches
Tags
No related merge requests found
......@@ -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
)
);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment