From a1d628d8d43e72eb438ec91ef031458a7c8b1dc1 Mon Sep 17 00:00:00 2001 From: Francesco Casella Date: Wed, 26 Feb 2025 19:55:11 +0100 Subject: [PATCH] Fixed wrong expression for the a = 0, b > 0 case --- Modelica/Fluid/Dissipation.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modelica/Fluid/Dissipation.mo b/Modelica/Fluid/Dissipation.mo index f63208dd47..b7f1a7902d 100644 --- a/Modelica/Fluid/Dissipation.mo +++ b/Modelica/Fluid/Dissipation.mo @@ -4622,7 +4622,7 @@ Generally this function is numerically best used for the incompressible 0.5) elseif a>0 and b>0 then sign(dp)*(-b/(2*a) + sqrt((b/(2*a))^2 + (1/a)*abs(dp))) - else b*dp); + else dp/b); annotation (Inline=true, smoothOrder(normallyConstant=IN_con) = 2, inverse(dp=Modelica.Fluid.Dissipation.PressureLoss.General.dp_volumeFlowRate_DP( IN_con,