fvConstraints::limitPressure: Added support for maxFactor and minFactor when p has calculated BCs

When limiting the pressure in p_rgh based solvers p typically has calculated BCs
which are now supported when calculating the max and min pressure from maxFactor
and minFactor.
This commit is contained in:
Henry Weller
2021-11-18 14:49:41 +00:00
parent 4b5491300f
commit a1622077e2

View File

@ -71,7 +71,11 @@ void Foam::fv::limitPressure::readCoeffs()
forAll(pbf, patchi)
{
if (pbf[patchi].fixesValue())
if
(
pbf[patchi].fixesValue()
|| isA<calculatedFvPatchField<scalar>>(pbf[patchi])
)
{
pLimits = true;