snappyHexMeshConfig: new -closedDomain, -minDimCells, -region options

-closedDomain        domain does not contain inlets or outlets
    -minDimCells <int>   number of cells in the shortest direction, e.g. 10
    -region <name>       specify alternative mesh region
This commit is contained in:
Chris Greenshields
2024-12-12 17:30:50 +00:00
parent aebfc940a1
commit deaea4fe77
6 changed files with 146 additions and 64 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2023 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2023-2024 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -57,6 +57,9 @@ class blockMeshCartesianConfiguration
//- Number of cells in background mesh block
Vector<label> nCells_;
//- Number of cells in background mesh shortest direction
const label minDimCells_;
//- Refinement factor used to scale nCells
const label refineFactor_;
@ -118,6 +121,7 @@ public:
const meshingSurfaceList& surfaces,
const bool& boundsOpt,
const Vector<label>& nCells,
const label minDimCells,
const label refineFactor,
const HashTable<Pair<word>>& patchOpts,
const bool clearBoundary