From a1622077e211cc71ce625d2c165acf0b9f962646 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Thu, 18 Nov 2021 14:49:41 +0000 Subject: [PATCH] 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. --- src/fvConstraints/limitPressure/limitPressure.C | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/fvConstraints/limitPressure/limitPressure.C b/src/fvConstraints/limitPressure/limitPressure.C index 4d6c615728..e0461429f7 100644 --- a/src/fvConstraints/limitPressure/limitPressure.C +++ b/src/fvConstraints/limitPressure/limitPressure.C @@ -71,7 +71,11 @@ void Foam::fv::limitPressure::readCoeffs() forAll(pbf, patchi) { - if (pbf[patchi].fixesValue()) + if + ( + pbf[patchi].fixesValue() + || isA>(pbf[patchi]) + ) { pLimits = true;