fixedMeanFvPatchField: Evaluate on construction from dictionary

to ensure the values on the patch are consistent with the boundary condition
specification and to avoid the need to specify a potentially inconsistent
"value" entry.
This commit is contained in:
Henry Weller
2024-05-20 10:14:59 +01:00
parent 9ed591b6bb
commit efc1fe2742
2 changed files with 4 additions and 3 deletions

View File

@ -36,7 +36,7 @@ Foam::fixedMeanFvPatchField<Type>::fixedMeanFvPatchField
const dictionary& dict
)
:
fixedValueFvPatchField<Type>(p, iF, dict),
fixedValueFvPatchField<Type>(p, iF),
meanValue_
(
Function1<Type>::New
@ -47,7 +47,9 @@ Foam::fixedMeanFvPatchField<Type>::fixedMeanFvPatchField
dict
)
)
{}
{
this->evaluate();
}
template<class Type>

View File

@ -29,7 +29,6 @@ boundaryField
{
type fixedMean;
meanValue constant 1 [bar];
value $internalField;
}
symmetry