ENH: construct fa::options from fvMesh instead of fvPatch

- these were previously constructing from an fvPatch (for simpler
  integration with regionFaModel) but this unnecessarily restricts
  the finiteArea to a single volume patch.

- adjusted derived faOptions to support multiple patches
This commit is contained in:
Mark Olesen
2022-09-14 14:57:53 +02:00
parent fe7dd51258
commit 0302ba4418
22 changed files with 189 additions and 135 deletions

View File

@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2019-2021 OpenCFD Ltd.
Copyright (C) 2019-2022 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -80,7 +80,7 @@ vibrationShellModel::vibrationShellModel
regionMesh(),
dimensionedScalar(dimAcceleration, Zero)
),
faOptions_(Foam::fa::options::New(p)),
faOptions_(Foam::fa::options::New(primaryMesh())),
solid_(dict.subDict("solid"))
{
if (!faOptions_.optionList::size())