Buildings.Experimental.DHC.Examples.Combined.Generation5.Loads.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.Experimental.DHC.Examples.Combined.Generation5.Loads.
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.Experimental.DHC.Examples.Combined.Generation5.Loads.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.Experimental.DHC.EnergyTransferStations.Combined.Generation5.HeatPumpHeatExchanger connected to a repleacable building load model.
Extends from 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 DHC.Loads.BaseClas... | Building 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 | |||
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] |
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 DHC.Loads.BaseClasses.PartialBuildingWithPartialETS(
nPorts_heaWat=1,
nPorts_chiWat=1,
redeclare DHC.EnergyTransferStations.Combined.Generation5.HeatPumpHeatExchanger
ets(
final dT_nominal=dT_nominal,
final TDisWatMin=datDes.TLooMin,
final TDisWatMax=datDes.TLooMax,
final TChiWatSup_nominal=TChiWatSup_nominal,
final THeaWatSup_nominal=THeaWatSup_nominal,
final dp_nominal=dp_nominal,
final COPHeaWat_nominal=COPHeaWat_nominal,
final COPHotWat_nominal=COPHotWat_nominal));
outer parameter Data.DesignDataSeries datDes "DHC system design data";
parameter Modelica.SIunits.TemperatureDifference dT_nominal(min=0)=4
"Water temperature drop/increase accross load and source-side HX (always positive)";
parameter Modelica.SIunits.Temperature TChiWatSup_nominal=18+273.15
"Chilled water supply temperature";
parameter Modelica.SIunits.Temperature THeaWatSup_nominal=38+273.15
"Heating water supply temperature";
parameter Modelica.SIunits.Pressure dp_nominal=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
Controls.OBC.CDL.Continuous.Line resTHeaWatSup
"HW supply temperature reset";
Controls.OBC.CDL.Continuous.Sources.Constant zer(k=0)
"Zero";
Controls.OBC.CDL.Continuous.Sources.Constant one(k=1)
"One";
Controls.OBC.CDL.Continuous.Gain mulPPumETS(
u(final unit="W"), final k=facMul) if have_pum
"Scaling";
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;