modelCarnot_TEva_2ndLaw

Test model to verify that the 2nd law is not violated

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example verifies that the 2nd law of thermodynamics is not violated despite of a very small temperature lift.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.TemperatureDifferencedTEva_nominal-4Temperature difference evaporator outlet-inlet
Modelica.Units.SI.TemperatureDifferencedTCon_nominal4Temperature difference condenser outlet-inlet
RealCOPc_nominal3Chiller COP
Modelica.Units.SI.HeatFlowRateQEva_flow_nominal-100E3Evaporator heat flow rate
Modelica.Units.SI.MassFlowRatem2_flow_nominalQEva_flow_nominal/dTEva_nominal/4200Nominal mass flow rate at chilled water side
Modelica.Units.SI.MassFlowRatem1_flow_nominal-m2_flow_nominal/dTCon_nominal*dTEva_nominalNominal mass flow rate at condenser water side

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.ConstantTEvaInEvaporator inlet temperature
Modelica.Blocks.Sources.ConstantdTEvaTemperature difference over evaporator
Modelica.Blocks.Math.AddTSetEvaLvgSet point for evaporator leaving temperature
Modelica.Blocks.Sources.RampdTConEvaTemperature lift condenser inlet minus evaporator outlet
Modelica.Blocks.Math.AddTConInCondenser inlet temperature
Chillerchi_bChiller model that uses port_b to compute Carnot efficiency

Contents

NameDescription
MediumMedium model
ChillerprotectedSubsystem model with the chiller

Revisions

  • February 10, 2023, by Michael Wetter:
    Removed binding of parameter with same value as the default.
    This is for #1692.
  • May 15, 2019, by Jianjun Hu:
    Replaced fluid source. This is for #1072.
  • January 9, 2017, by Michael Wetter:
    Renamed internal protected class Chiller to be upper-case.
  • January 3, 2017, by Michael Wetter:
    Updated model because the option to use the inlet temperatures to compute the COP has been removed.
  • November 18, 2016, by Michael Wetter:
    First implementation.