You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The value of evaluate_etaPL is incorrect, but it is also used incorrectly, leading to the correct results. The following change should be made
Real etaPL(final unit ="1")=if evaluate_etaPL
-then1-else IBPSA.Utilities.Math.Functions.polynomial(a=a, x=yPL)
+then IBPSA.Utilities.Math.Functions.polynomial(a=a, x=yPL)
+else1"Efficiency due to part load (etaPL(yPL=1)=1)";
Real COP(min=0, final unit="1") = etaCarnot_nominal_internal * COPCar * etaPL
@@ -157,8+157,8 @@ protected// For Carnot_y, computing etaPL = f(yPL) introduces a nonlinear equation.// The parameter below avoids this if a = {1}.-finalparameterBoolean evaluate_etaPL=- (size(a, 1) ==1andabs(a[1] -1) < Modelica.Constants.eps)
+finalparameterBoolean evaluate_etaPL=not (
+ (size(a, 1) ==1andabs(a[1] -1) < Modelica.Constants.eps))
"Flag, true if etaPL should be computed as it depends on yPL"annotation(Evaluate=true);
The text was updated successfully, but these errors were encountered:
The value of
evaluate_etaPL
is incorrect, but it is also used incorrectly, leading to the correct results. The following change should be madeThe text was updated successfully, but these errors were encountered: