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:
@ -36,7 +36,7 @@ Foam::fixedMeanFvPatchField<Type>::fixedMeanFvPatchField
|
|||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedValueFvPatchField<Type>(p, iF, dict),
|
fixedValueFvPatchField<Type>(p, iF),
|
||||||
meanValue_
|
meanValue_
|
||||||
(
|
(
|
||||||
Function1<Type>::New
|
Function1<Type>::New
|
||||||
@ -47,7 +47,9 @@ Foam::fixedMeanFvPatchField<Type>::fixedMeanFvPatchField
|
|||||||
dict
|
dict
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
{}
|
{
|
||||||
|
this->evaluate();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
|
|||||||
@ -29,7 +29,6 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type fixedMean;
|
type fixedMean;
|
||||||
meanValue constant 1 [bar];
|
meanValue constant 1 [bar];
|
||||||
value $internalField;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
symmetry
|
symmetry
|
||||||
|
|||||||
Reference in New Issue
Block a user