mixedFvPatchField: Added optional 'valuesRequired' argument to the dictionary constructor

so that derived classes can call the dictionary constructor without reading the
refValue, refGradient or valueFraction entries.  This ensures that the
fvPatchField dictionary constructor is called, setting optional entries like
'libs' as required.
This commit is contained in:
Henry Weller
2022-10-21 12:07:50 +01:00
parent 091cba730d
commit 8d33ad6dda
31 changed files with 83 additions and 51 deletions

View File

@ -60,7 +60,7 @@ Foam::smoluchowskiJumpTFvPatchScalarField::smoluchowskiJumpTFvPatchScalarField
const dictionary& dict
)
:
mixedFvPatchScalarField(p, iF),
mixedFvPatchScalarField(p, iF, dict, false),
UName_(dict.lookupOrDefault<word>("U", "U")),
rhoName_(dict.lookupOrDefault<word>("rho", "rho")),
psiName_(dict.lookupOrDefault<word>("psi", "thermo:psi")),

View File

@ -61,7 +61,7 @@ JohnsonJacksonParticleThetaFvPatchScalarField
const dictionary& dict
)
:
mixedFvPatchScalarField(p, iF),
mixedFvPatchScalarField(p, iF, dict, false),
restitutionCoefficient_
(
"restitutionCoefficient",