modelPartialHeatPumpSystem

Partial model containing the basic heat pump block and different control blocks(optional)

Extends from AixLib.Fluid.Interfaces.PartialFourPortInterface, AixLib.Obsolete.Year2024.Systems.HeatPumpSystems.BaseClasses.HeatPumpSystemParameters.

Information

Partial heat pump system. This model is used to enable the use of different heat pump models in the resulting heat pump system.

Characteristics

  1. HPSystemController: Model used to calculate a relative compressor speed and heat pump mode based on the ambient temperature and current supply temperature.
  2. HeatPump: Any model out of AixLib.Fluid.HeatPumps. Only restrain is the use of the signal bus. One has to first add the sigBus to the existing heat pump model.
  3. Movers: Any model out of AixLib.Fluid.Movers to move the used sink or source medium through the heat exchanger.
  4. Second heat generator: Any two port interface. This model should represent an auxiliar heater or a boiler in order to simulate a bivalent or hybrid heat pump system.

Parameters

TypeNameDefaultDescription
Medium_con.ThermodynamicStatestateCon_defaultMedium_con.setState_pTX(T = Medium_con.T_default, p = Medium_con.p_default, X = Medium_con.X_default[1:Medium_con.nXi])Medium state in condenser at default values
Medium_eva.ThermodynamicStatestateEva_defaultMedium_eva.setState_pTX(T = Medium_eva.T_default, p = Medium_eva.p_default, X = Medium_eva.X_default[1:Medium_eva.nXi])Medium state in evaporator at default values
AixLib.Fluid.Movers.Data.GenericperEva
AixLib.Fluid.Movers.Data.GenericperCon
Nominal condition
Modelica.Units.SI.MassFlowRatemFlow_conNominalNominal mass flow rate, used for regularization near zero flow
Modelica.Units.SI.MassFlowRatemFlow_evaNominalNominal mass flow rate
System
Booleanuse_secHeaGentrueTrue if a bivalent setup is required
Modelica.Units.SI.HeatFlowRateQ_flow_nominalNominal heat flow rate of second heat generator. Used to calculate input singal y.
Sink
Booleanuse_conPumtrueTrue if pump or fan at condenser side are included into this model
Source
Booleanuse_evaPumtrueTrue if pump or fan at evaporator side are included into this model
Heat Pump Control › Heating Curve
Booleanuse_tableDatatrueChoose between tables or function to calculate TSet
AixLib.DataBase.Boiler.DayNightMode.HeatingCurvesDayNightBaseDataDefinitionheatingCurveRecordAixLib.DataBase.Boiler.DayNightMode.HeatingCurves_Vitotronic_Day25_Night10()Record with information about heating curve data
Realdeclination2Declination of heating curve
Realday_hour6Hour of day at which day mode is enabled
Realnight_hour22Hour of day at which night mode is enabled
AixLib.Utilities.Time.Types.ZeroTimezerTimAixLib.Utilities.Time.Types.ZeroTime.NY2017Enumeration for choosing how reference time (time = 0) should be defined. Used for heating curve and antilegionella
Heat Pump Control › Anti Legionella
Booleanuse_antLegtrueTrue if Anti-Legionella control is considered
Modelica.Units.SI.ThermodynamicTemperatureTLegMin333.15Temperature at which the legionella in DWH dies
Modelica.Units.SI.TimeminTimeAntLegMinimal duration of antilegionella control
BooleanweeklytrueSwitch between a daily or weekly trigger approach
IntegertrigWeekDay5Day of the week at which control is triggered
IntegertrigHour3Hour of the day at which control is triggered
Safety Control › General
Booleanuse_sectrueFalse if the Safety block should be disabled
Safety Control › On-/Off Control
Booleanuse_minRunTimefalseFalse if minimal runtime of HP is not considered
Modelica.Units.SI.TimeminRunTime300Minimum runtime of heat pump
Booleanuse_minLocTimefalseFalse if minimal locktime of HP is not considered
Modelica.Units.SI.TimeminLocTime300Minimum lock time of heat pump
Booleanuse_runPerHoufalseFalse if maximal runs per hour of HP are not considered
IntegermaxRunPerHou3Maximal number of on/off cycles in one hour
Booleanpre_n_startfalseStart value of pre(n) at initial time
Safety Control › Operational Envelope
Booleanuse_opeEnvtrueFalse to allow HP to run out of operational envelope
Booleanuse_opeEnvFroRecfalseUse a the operational envelope given in the datasheet
Obsolete.Year2024.DataBase.HeatPump.HeatPumpBaseDataDefinitiondataTableData Table of HP
Real[:,2]tableUpp[0, 60; 5, 70; 30, 70]Upper boundary of envelope
Modelica.Units.SI.TemperatureDifferencedTHystOperEnv5Temperature difference used for both upper and lower hysteresis in the operational envelope.
Safety Control › Defrost
Booleanuse_deFrotrueFalse if defrost in not considered
RealminIceFacMinimal value above which no defrost is necessary
RealdeltaIceFac0.1Bandwitdth for hystereses. If the icing factor is based on the duration of defrost, this value is necessary to avoid state-events.
Booleanuse_chillerfalseTrue if defrost operates by changing mode to cooling. False to use an electrical heater
Modelica.Units.SI.PowercalcPel_deFroCalculate how much eletrical energy is used to melt ice
Safety Control › Anti Freeze Control
Booleanuse_antFrefalseTrue if anti freeze control is part of safety control
Modelica.Units.SI.ThermodynamicTemperatureTantFre276.15Limit temperature for anti freeze control
Initialization › Parameters
Modelica.Blocks.Types.InitinitTypeModelica.Blocks.Types.Init.InitialStateType of initialization (InitialState and InitialOutput are identical)
Initialization › Condenser
Modelica.Media.Interfaces.Types.AbsolutePressurepCon_startMedium_con.p_defaultStart value of pressure
Modelica.Media.Interfaces.Types.TemperatureTCon_startMedium_con.T_defaultStart value of temperature
Modelica.Media.Interfaces.Types.MassFraction[Medium_con.nX]XCon_startMedium_con.X_defaultStart value of mass fractions m_i/m
Initialization › Evaporator
Modelica.Media.Interfaces.Types.AbsolutePressurepEva_startMedium_eva.p_defaultStart value of pressure
Modelica.Media.Interfaces.Types.TemperatureTEva_startMedium_eva.T_defaultStart value of temperature
Modelica.Media.Interfaces.Types.MassFraction[Medium_eva.nX]XEva_startMedium_eva.X_defaultStart value of mass fractions m_i/m
Dynamics › Equation
Modelica.Fluid.Types.DynamicsmassDynamicsType of mass balance: dynamic (3 initialization options) or steady state (only affects fluid-models)
Modelica.Fluid.Types.DynamicsenergyDynamicsType of energy balance: dynamic (3 initialization options) or steady state (only affects fluid-models)
Assumptions › Temperature sensors
Modelica.Units.SI.TimetauSenT1Time constant at nominal flow rate (use tau=0 for steady-state sensor, but see user guide for potential problems)
BooleantransferHeattrueIf true, temperature T converges towards TAmb when no flow
Modelica.Units.SI.TimetauHeaTraEva1200Time constant for heat transfer in temperature sensors in evaporator, default 20 minutes
Modelica.Units.SI.TemperatureTAmbEva_nominal273.15Fixed ambient temperature for heat transfer of sensors at the evaporator side
Modelica.Units.SI.TimetauHeaTraCon1200Time constant for heat transfer in temperature sensors in condenser, default 20 minutes
Modelica.Units.SI.TemperatureTAmbCon_nominal291.15Fixed ambient temperature for heat transfer of sensors at the condenser side
Assumptions › Evaporator
BooleanallowFlowReversalEvafalse= false to simplify equations, assuming, but not enforcing, no flow reversal
BooleanaddPowerToMediumEvatrueSet to false to avoid any power (=heat and flow work) being added to medium (may give simpler equations)
Assumptions › Condenser
BooleanallowFlowReversalConfalse= false to simplify equations, assuming, but not enforcing, no flow reversal
BooleanaddPowerToMediumContrueSet to false to avoid any power (=heat and flow work) being added to medium (may give simpler equations)

Components

TypeNameDefaultDescription
AixLib.Fluid.Interfaces.PartialFourPortInterfaceheatPump
AixLib.Fluid.Movers.SpeedControlled_ypumSinFan or pump at sink side of HP
AixLib.Fluid.Movers.SpeedControlled_ypumSouFan or pump at source side of HP
Modelica.Blocks.Interfaces.RealInputT_odaOutdoor air temperature
AixLib.Fluid.Interfaces.PassThroughMediummediumPassThroughSin
AixLib.Fluid.Interfaces.PassThroughMediummediumPassThroughSou
SecHeatGensecHeaGen
AixLib.Fluid.Interfaces.PassThroughMediummediumPassThroughSecHeaGenUsed if monovalent HP System
AixLib.Obsolete.Year2024.Systems.HeatPumpSystems.BaseClasses.HPSystemControllerhPSystemController
Modelica.Blocks.Interfaces.RealInputTActSupply temperature for controls

Contents

NameDescription
Medium_conMedium at sink side
Medium_evaMedium at source side
SecHeatGen
TSetToNSet
HeatingCurveFunction

Revisions

  • May 22, 2019 by Julian Matthes:
    Rebuild due to the introducion of the thermal machine partial model (see issue #715)
  • November 26, 2018  by Fabian Wüllhorst:
    First implementation (see issue #577)