modelHeatPump_ExergyDestruction_Heating

Extends from HVACAgentBasedControl.BaseClasses.PartialCostFunction.

Information

Overview

  • This model determines the exergy destruction of a heat pump in heating mode based on the inputs of the component.
  • It is used together with a HeatProducerAgent.

Concept

Heat pump

The figure above shows the control volume for the heat pump. Based on this volume the following function for exergy destruction has been developed. Details can be found in the reference.

Heat pump heating cost function

References

  • Felix Bünning. Development of a Modelica-library for agent-based control of HVAC systems. Bachelor thesis, 2016, RWTH Aachen University, Aachen, Germany.

Parameters

TypeNameDefaultDescription
RealT_0298.15Exergy reference temperature
Real[:,:]tablePowerfill(0.0, 0, 2)table matrix (grid u1 = first column, grid u2 = first row; e.g., table=[0,0;0,1])
Real[:,:]tableHeatFlowCondenserfill(0.0, 0, 2)table matrix (grid u1 = first column, grid u2 = first row; e.g., table=[0,0;0,1])

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputcapacity (from PartialCostFunction)Input to connect with ProducerAgent
Modelica.Blocks.Interfaces.RealOutputcost (from PartialCostFunction)Output to connect with ProducerAgent
Modelica.Blocks.Interfaces.RealInputT_cold
Modelica.Blocks.Interfaces.RealInputT_hot

Components

TypeNameDefaultDescription
RealCOPCooefficient of performance
Modelica.Blocks.Sources.RealExpressionrealExpression
Modelica.Blocks.Math.Addadd1
Modelica.Blocks.Math.Addadd2
Modelica.Blocks.Math.Divisiondivision
Modelica.Blocks.Math.Addadd3
Modelica.Blocks.Math.Addadd4
Modelica.Blocks.Math.Divisiondivision1
Modelica.Blocks.Sources.RealExpressionrealExpression1
Modelica.Blocks.Sources.RealExpressionrealExpression2
Modelica.Blocks.Math.Productproduct
Modelica.Blocks.Math.Divisiondivision2
Modelica.Blocks.Sources.RealExpressionrealExpression3
Modelica.Blocks.Sources.RealExpressionrealExpression4
Modelica.Blocks.Math.Addadd5
Modelica.Blocks.Math.Productproduct1
Modelica.Blocks.Tables.CombiTable2DsHeatFlowCondenserTable
Modelica.Blocks.Tables.CombiTable2DsPowerTable

Revisions

  • October 2015, by Felix Bünning: Developed and implemented
  • December 2016, by Roozbeh Sangi:
    revised