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:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user