@@ -368,10 +368,10 @@ partial model PartialReversibleRefrigerantMachine
368368 final unit= "W" ) "Actual cooling heat flow rate removed from fluid 2"
369369 annotation (Placement(transformation(extent={{140,-140},{160,-120}}),
370370 iconTransformation(extent={{100,-100},{120,-80}})));
371- Modelica.Blocks.Interfaces.RealOutput EER(unit= "1" ) if use_EER
371+ Modelica.Blocks.Interfaces.RealOutput EER(unit= "1" ) if use_EER and calEff
372372 "Energy efficieny ratio" annotation (Placement(transformation(extent={{140,-40},
373373 {160,-20}}), iconTransformation(extent={{100,-40},{120,-20}})));
374- Modelica.Blocks.Interfaces.RealOutput COP(unit= "1" ) if use_COP
374+ Modelica.Blocks.Interfaces.RealOutput COP(unit= "1" ) if use_COP and calEff
375375 "Coefficient of performance" annotation (Placement(transformation(extent={{140,
376376 20},{160,40}}), iconTransformation(extent={{100,20},{120,40}})));
377377
@@ -648,12 +648,12 @@ equation
648648 Text(
649649 extent={{72,40},{96,16}},
650650 textColor={0,0,127},
651- visible=use_COP,
651+ visible=use_COP and calEff ,
652652 textString="COP" ),
653653 Text(
654654 extent={{72,-18},{96,-42}},
655655 textColor={0,0,127},
656- visible=use_EER,
656+ visible=use_EER and calEff ,
657657 textString="EER" ),
658658 Rectangle(
659659 extent={{34,42},{38,-46}},
@@ -690,6 +690,12 @@ equation
690690 fillPattern=FillPattern.Solid)}),
691691 Diagram(coordinateSystem(extent={{-140,-160},{140,160}})),
692692 Documentation(revisions="<html><ul>
693+ <li>
694+ <i>February 27, 2025</i> by Jianjun Hu:<br/>
695+ Corrected conditions for removing COP and EER output connector.<br/>
696+ This is for
697+ <a href=\" https://github.com/ibpsa/modelica-ibpsa/issues/1979\">IBPSA #1979</a>.
698+ </li>
693699 <li>
694700 May 2, 2024, by Michael Wetter:<br/>
695701 Refactored check for device identifiers.<br/>
0 commit comments