mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: refineHexMesh: added new option to avoid refining outside cellSet
This commit is contained in:
@ -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
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user