Buildings.DHC.Loads.Combined.BaseClasses
Package with base classes that are used by multiple models
Information
This package contains base classes that are used to construct the classes in Buildings.DHC.Loads.Combined.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Package Content
Name | Description |
---|---|
PartialBuildingWithETS | Partial model with ETS model and partial building model |
Buildings.DHC.Loads.Combined.BaseClasses.PartialBuildingWithETS
Partial model with ETS model and partial building model
Information
This model is composed of a heat pump based energy transfer station model Buildings.DHC.ETS.Combined.HeatPumpHeatExchanger connected to a repleacable building load model.
Extends from Buildings.DHC.Loads.BaseClasses.PartialBuildingWithPartialETS (Partial model of a building with an energy transfer station).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package MediumSer | Water | Service side medium | |
replaceable package MediumSerHea_a | Water | Service side medium at heating inlet | |
replaceable package MediumBui | Water | Building side medium | |
PartialBuilding | bui | redeclare Buildings.DHC.Load... | Building model |
PartialETS | ets | redeclare Buildings.DHC.ETS.... | Energy transfer station model |
Configuration | |||
Integer | nPorts_heaWat | 1 | Number of heating water fluid ports |
Integer | nPorts_chiWat | 1 | Number of chilled water fluid ports |
Scaling | |||
Real | facMul | 1 | Multiplier factor |
ETS model parameters | |||
Temperature | TDisWatMin | 6 + 273.15 | District water minimum temperature [K] |
Temperature | TDisWatMax | 17 + 273.15 | District water maximum temperature [K] |
TemperatureDifference | dT_nominal | 4 | Water temperature drop/increase accross load and source-side HX (always positive) [K] |
Temperature | TChiWatSup_nominal | 18 + 273.15 | Chilled water supply temperature [K] |
Temperature | THeaWatSup_nominal | 38 + 273.15 | Heating water supply temperature [K] |
Temperature | THotWatSup_nominal | 63 + 273.15 | Domestic hot water supply temperature to fixtures [K] |
Temperature | TColWat_nominal | 288.15 | Cold water temperature (for hot water production) [K] |
Pressure | dp_nominal | 50000 | Pressure difference at nominal flow rate (for each flow leg) [Pa] |
Real | COPHeaWat_nominal | 4.0 | COP of heat pump for heating water production [1] |
Real | COPHotWat_nominal | 2.3 | COP of heat pump for hot water production [1] |
Assumptions | |||
Boolean | allowFlowReversalSer | false | Set to true to allow flow reversal on service side |
Boolean | allowFlowReversalBui | false | Set to true to allow flow reversal on building side |
Connectors
Type | Name | Description |
---|---|---|
FluidPort_a | port_aSerAmb | Fluid connector for ambient water service supply line |
FluidPort_b | port_bSerAmb | Fluid connector for ambient water service return line |
FluidPort_a | port_aSerHea | Fluid connector for heating service supply line |
FluidPort_b | port_bSerHea | Fluid connector for heating service return line |
FluidPort_a | port_aSerCoo | Fluid connector for cooling service supply line |
FluidPort_b | port_bSerCoo | Fluid connector for cooling service return line |
Bus | weaBus | Weather data bus |
output RealOutput | QHea_flow | Total heating heat flow rate transferred to the loads (>=0) [W] |
output RealOutput | QCoo_flow | Total cooling heat flow rate transferred to the loads (<=0) [W] |
output RealOutput | PHea | Power drawn by heating system [W] |
output RealOutput | PCoo | Power drawn by cooling system [W] |
output RealOutput | PFan | Power drawn by fan motors [W] |
output RealOutput | PPum | Power drawn by pump motors [W] |
output RealOutput | QFue_flow[nFue] | Fuel energy input rate [W] |
input RealInput | TChiWatSupSet | Chilled water supply temperature set point [K] |
input RealInput | THeaWatSupMaxSet | Heating water supply temperature set point - Maximum value [K] |
input RealInput | THeaWatSupMinSet | Heating water supply temperature set point - Minimum value [K] |
output RealOutput | PPumETS | ETS pump power [W] |
Modelica definition
model PartialBuildingWithETS
"Partial model with ETS model and partial building model"
extends Buildings.DHC.Loads.BaseClasses.PartialBuildingWithPartialETS(
nPorts_heaWat=1,
nPorts_chiWat=1);
parameter Modelica.Units.SI.Temperature TDisWatMin=6 + 273.15
"District water minimum temperature";
parameter Modelica.Units.SI.Temperature TDisWatMax=17 + 273.15
"District water maximum temperature";
parameter Modelica.Units.SI.TemperatureDifference dT_nominal(min=0) = 4
"Water temperature drop/increase accross load and source-side HX (always positive)";
parameter Modelica.Units.SI.Temperature TChiWatSup_nominal=18 + 273.15
"Chilled water supply temperature";
parameter Modelica.Units.SI.Temperature THeaWatSup_nominal=38 + 273.15
"Heating water supply temperature";
parameter Modelica.Units.SI.Temperature THotWatSup_nominal=63 + 273.15
"Domestic hot water supply temperature to fixtures";
parameter Modelica.Units.SI.Temperature TColWat_nominal=288.15
"Cold water temperature (for hot water production)";
parameter Modelica.Units.SI.Pressure dp_nominal(displayUnit="Pa")=50000
"Pressure difference at nominal flow rate (for each flow leg)";
parameter Real COPHeaWat_nominal(final unit="1") = 4.0
"COP of heat pump for heating water production";
parameter Real COPHotWat_nominal(final unit="1") = 2.3
"COP of heat pump for hot water production";
// IO CONNECTORS
Buildings.Controls.OBC.CDL.Interfaces.RealInput TChiWatSupSet(
final unit="K",
displayUnit="degC")
"Chilled water supply temperature set point";
Buildings.Controls.OBC.CDL.Interfaces.RealInput THeaWatSupMaxSet(
final unit="K",
displayUnit="degC")
"Heating water supply temperature set point - Maximum value";
Buildings.Controls.OBC.CDL.Interfaces.RealInput THeaWatSupMinSet(
final unit="K",
displayUnit="degC")
"Heating water supply temperature set point - Minimum value";
// COMPONENTS
Buildings.Controls.OBC.CDL.Reals.Line resTHeaWatSup
"HW supply temperature reset";
Buildings.Controls.OBC.CDL.Reals.Sources.Constant zer(k=0)
"Zero";
Buildings.Controls.OBC.CDL.Reals.Sources.Constant one(k=1)
"One";
Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter mulPPumETS(u(final
unit="W"), final k=facMul) if have_pum "Scaling";
Buildings.Controls.OBC.CDL.Interfaces.RealOutput PPumETS(
final unit="W") if have_pum
"ETS pump power";
equation
connect(TChiWatSupSet, ets.TChiWatSupSet);
connect(resTHeaWatSup.y, ets.THeaWatSupSet);
connect(THeaWatSupMaxSet, resTHeaWatSup.f2);
connect(THeaWatSupMinSet, resTHeaWatSup.f1);
connect(one.y, resTHeaWatSup.x2);
connect(zer.y, resTHeaWatSup.x1);
connect(mulPPumETS.y, PPumETS);
connect(ets.PPum, mulPPumETS.u);
end PartialBuildingWithETS;