Buildings.DHC.ETS.Combined.Data.BaseClasses

Package with base classes for Buildings.DHC.ETS.Combined.Data

Information

This package contains base classes that are used to construct the models in Buildings.DHC.ETS.Combined.Data.

Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).

Package Content

Name Description
Buildings.DHC.ETS.Combined.Data.BaseClasses.scalePerformanceTable scalePerformanceTable Function that scales the heat pump performance table

Buildings.DHC.ETS.Combined.Data.BaseClasses.scalePerformanceTable Buildings.DHC.ETS.Combined.Data.BaseClasses.scalePerformanceTable

Function that scales the heat pump performance table

Information

Function to scale the performance data for the heat pump heat capacity and electrical power use.

The data record Buildings.Fluid.HeatPumps.ModularReversible.Data.TableData2D.GenericHeatPump contains performance data arrays tabPEle and tabQCon_flow that list for different temperatures the capacity. This function takes such arrays as input, and returns these arrays after multiplying the capacity by the input argument s.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

TypeNameDefaultDescription
Realx[nR, nC] Table with performance data
IntegernR Number of rows in x
IntegernC Number of columns in x
Reals Scaling factor

Outputs

TypeNameDescription
Realy[nR, nC]Scaled table with performance data

Modelica definition

function scalePerformanceTable "Function that scales the heat pump performance table" extends Modelica.Icons.Function; input Real x[nR, nC] "Table with performance data"; input Integer nR "Number of rows in x"; input Integer nC "Number of columns in x"; input Real s(min=Modelica.Constants.eps) "Scaling factor"; output Real y[nR, nC] "Scaled table with performance data"; algorithm y[1,:]:=x[1, :]; for i in 2:nR loop y[i,1]:=x[i, 1] "Temperature assignment"; y[i,2:nC]:=x[i, 2:nC]*s "Scaling of thermal capacity or electricity"; end for; end scalePerformanceTable;