ENH: KirchhoffShell: reduce code footprint

This commit is contained in:
Kutalmis Bercin
2024-01-24 17:35:17 +00:00
parent 6e2bdb0613
commit 7891960bd1
4 changed files with 91 additions and 91 deletions

View File

@ -49,8 +49,6 @@ vibrationShellModel::vibrationShellModel
)
:
regionFaModel(mesh, "vibratingShell", modelType, dict, true),
pName_(dict.get<word>("p")),
pa_(mesh.lookupObject<volScalarField>(pName_)),
w_
(
IOobject
@ -76,8 +74,10 @@ vibrationShellModel::vibrationShellModel
regionMesh(),
dimensionedScalar(dimAcceleration, Zero)
),
faOptions_(Foam::fa::options::New(mesh)),
solid_(dict.subDict("solid"))
solid_(dict.subDict("solid")),
pName_(dict.get<word>("p")),
pa_(mesh.lookupObject<volScalarField>(pName_)),
faOptions_(Foam::fa::options::New(mesh))
{
if (faOptions_.optionList::empty())
{