modelPartialCarnot

Model with components for Carnot efficiency calculation

Information

Partial model for equations and componenents used in both heat pump and chiller with the Carnot approach.

Parameters

TypeNameDefaultDescription
BooleanuseForChi=false to use in heat pump models
Nominal condition
RealetaCarnot_nominal0.3Constant Carnot effectiveness
Efficiency
Booleanuse_constAppTemfalse=true to fix approach temperatures at nominal values. This can improve simulation speed
Modelica.Units.SI.TemperatureDifferenceTAppCon_nominalTemperature difference between refrigerant and working fluid outlet in condenser
Modelica.Units.SI.TemperatureDifferenceTAppEva_nominalTemperature difference between refrigerant and working fluid outlet in evaporator
Advanced
Modelica.Units.SI.TemperatureDifferencedTCarMin5Minimal temperature difference, used to avoid division errors

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.RealExpressionreaCarnotCOPInternal calculation of Carnot COP
Modelica.Blocks.Math.MultiProductproQUse_flowCalculate QUse_flow
Modelica.Blocks.Math.ProductproPEleCalculate electrical power consumption
Modelica.Blocks.Sources.ConstantconstPEleConstant electrical power consumption
Modelica.Blocks.Routing.RealPassThroughpasThrYMeaFrom signal bus
Modelica.Units.SI.TemperatureTUseSidActif useForChi then TEvaAct else TConActUseful side refrigerant temperature
Modelica.Units.SI.TemperatureTConActpasThrTCon.y + TAppConRefrigerant condensation temperature
Modelica.Units.SI.TemperatureTEvaActpasThrTEva.y - TAppEvaRefrigerant evaporation temperature
Modelica.Units.SI.TemperatureDifferenceTAppConif use_constAppTem then TAppCon_nominal else TAppCon_nominal*QCon_flow_internal/QCon_flow_nominalCondenser approach temperature
Modelica.Units.SI.TemperatureDifferenceTAppEvaif use_constAppTem then TAppEva_nominal else TAppEva_nominal*QEva_flow_internal/QEva_flow_nominalEvaporator approach temperature
Modelica.Blocks.Sources.ConstantconstZerConstant zero value if off
Modelica.Blocks.Logical.SwitchswiPEleIf device is off, no heat exchange occurs
Modelica.Blocks.Logical.SwitchswiQUseIf device is off, no heat exchange occurs
Modelica.Blocks.Routing.RealPassThroughpasThrTEvaEvaporator outlet pass through
Modelica.Blocks.Routing.RealPassThroughpasThrTConCondenser outlet pass through
Modelica.Blocks.Sources.RealExpressionreaCarnotEffInternal calculation of Carnot effectiveness

Revisions

  • November 17, 2025, by Michael Wetter:
    Corrected typo in annotation.
    This is for Buildings, #4406.
  • May 2, 2025, by Michael Wetter:
    Set Evaluate=true for use_constAppTem. This is a structural parameter, if evaluated during translation, it has shown to remove a 2x2 nonlinear system of equations to compute the approach temperatures.
    This is for IBPSA, #2005.
  • October 2, 2022 by Fabian Wuellhorst:
    First implementation (see issue #1576)