ENH: consolidate decomposition model, constructors for decomposition methods

- make regionName an optional constructor parameter, which eliminates
  a separate set of constructors and construction tables. Adjust
  internals to treat a missing/empty regionName as a no-op.

- pass in fallback dictionary content via new IOdictionary constructor
  with a pointer

ENH: further relax check for matching number of processor dirs

- if the "numberOfSubdomains" entry is missing (or even zero)
  ignore checks of processor dirs as meaningless.
This commit is contained in:
Mark Olesen
2021-04-23 16:44:09 +02:00
parent dedb1c0c90
commit 86f627b9e6
35 changed files with 369 additions and 667 deletions

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2012 OpenFOAM Foundation
Copyright (C) 2018 OpenCFD Ltd.
Copyright (C) 2018-2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -52,7 +52,7 @@ class structuredDecomp
:
public decompositionMethod
{
// Private data
// Private Data
dictionary methodDict_;
@ -78,8 +78,12 @@ public:
// Constructors
//- Construct given the decomposition dictionary
structuredDecomp(const dictionary& decompDict);
//- Construct given decomposition dictionary. Region ignored
explicit structuredDecomp
(
const dictionary& decompDict,
const word& regionName = ""
);
//- Destructor