Skip to content

Commit

Permalink
Fixed wrong expression for the a = 0, b > 0 case
Browse files Browse the repository at this point in the history
  • Loading branch information
casella committed Feb 26, 2025
1 parent b4a4b03 commit a1d628d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modelica/Fluid/Dissipation.mo
Original file line number Diff line number Diff line change
Expand Up @@ -4622,7 +4622,7 @@ Generally this function is numerically best used for the <strong>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,
Expand Down

0 comments on commit a1d628d

Please sign in to comment.