Buildings.Experimental.DHC.Loads.Heating

This package contains models for loads used in district heating systems.

Information

This package contains models of building loads that are used to build example models of district cooling systems.

Extends from Modelica.Icons.VariantsPackage (Icon for package containing variants).

Package Content

Name Description
Buildings.Experimental.DHC.Loads.Heating.BuildingTimeSeriesWithETS BuildingTimeSeriesWithETS Model of a building with loads provided as time series, connected to an ETS for heating
Buildings.Experimental.DHC.Loads.Heating.Examples Examples  
Buildings.Experimental.DHC.Loads.Heating.BaseClasses BaseClasses Package with base classes that are used by multiple models

Buildings.Experimental.DHC.Loads.Heating.BuildingTimeSeriesWithETS Buildings.Experimental.DHC.Loads.Heating.BuildingTimeSeriesWithETS

Model of a building with loads provided as time series, connected to an ETS for heating

Buildings.Experimental.DHC.Loads.Heating.BuildingTimeSeriesWithETS

Information

This model is composed of a direct controlled energy transfer station model for heating Buildings.Experimental.DHC.EnergyTransferStations.Heating.Direct connected to a simplified building model Buildings.Experimental.DHC.Loads.Heating.BaseClasses.BuildingTimeSeries where the space heating loads are provided as time series.

Extends from BaseClasses.PartialBuildingWithETS (Partial model with ETS model for heating and partial building model).

Parameters

TypeNameDefaultDescription
replaceable package MediumSerWaterService side medium
replaceable package MediumSerHea_aWaterService side medium at heating inlet
replaceable package MediumBuiWaterBuilding side medium
PressureDifferencedpSup5000Pressure drop in the ETS supply side [Pa]
PressureDifferencedpRet5000Pressure drop in the ETS return side [Pa]
StringfilNam Library path of the file with thermal loads as time series
Configuration
IntegernPorts_heaWat1Number of heating water fluid ports
IntegernPorts_chiWat0Number of chilled water fluid ports
Scaling
RealfacMul1Multiplier factor
Nominal condition
MassFlowRatemBui_flow_nominalQHea_flow_nominal/(cp*dT_nom...Nominal mass flow rate [kg/s]
TemperatureDifferencedT_nominal10Water temperature drop/increase accross load and source-side HX (always positive) [K]
PID controller
SimpleControllercontrollerTypeModelica.Blocks.Types.Simple...Type of controller
Realk0.1Gain of controller [1]
TimeTi60Time constant of integrator block [s]
TimeTd0.1Time constant of derivative block [s]
RealyMax1Upper limit of output
RealyMin0Lower limit of output
Nominal conditions
TemperatureTHeaWatSup_nominal50 + 273.15Heating water supply temperature [K]
Assumptions
BooleanallowFlowReversalSerfalseSet to true to allow flow reversal on service side
BooleanallowFlowReversalBuifalseSet to true to allow flow reversal on building side
Dynamics
Conservation equations
DynamicsenergyDynamicsModelica.Fluid.Types.Dynamic...Type of energy balance
Pump
Booleanuse_inputFilterfalse= true, if pump speed is filtered with a 2nd order CriticalDamping filter

Connectors

TypeNameDescription
FluidPort_aport_aSerAmbFluid connector for ambient water service supply line
FluidPort_bport_bSerAmbFluid connector for ambient water service return line
FluidPort_aport_aSerHeaFluid connector for heating service supply line
FluidPort_bport_bSerHeaFluid connector for heating service return line
FluidPort_aport_aSerCooFluid connector for cooling service supply line
FluidPort_bport_bSerCooFluid connector for cooling service return line
BusweaBusWeather data bus
output RealOutputQHea_flowTotal heating heat flow rate transferred to the loads (>=0) [W]
output RealOutputQCoo_flowTotal cooling heat flow rate transferred to the loads (<=0) [W]
output RealOutputPHeaPower drawn by heating system [W]
output RealOutputPCooPower drawn by cooling system [W]
output RealOutputPFanPower drawn by fan motors [W]
output RealOutputPPumPower drawn by pump motors [W]
output RealOutputQFue_flow[nFue]Fuel energy input rate [W]
input RealInputTSetDisRetSetpoint for the maximum district return temperature [K]

Modelica definition

model BuildingTimeSeriesWithETS "Model of a building with loads provided as time series, connected to an ETS for heating" extends BaseClasses.PartialBuildingWithETS( redeclare Buildings.Experimental.DHC.Loads.BaseClasses.Examples.BaseClasses.BuildingTimeSeries bui( final have_heaWat=true, final have_chiWat=false, final have_hotWat=false, final filNam=filNam, T_aHeaWat_nominal=THeaWatSup_nominal, T_bHeaWat_nominal=THeaWatRet_nominal), mBui_flow_nominal=QHea_flow_nominal/(cp*dT_nominal), ets( QHeaWat_flow_nominal=QHea_flow_nominal)); final parameter Modelica.Units.SI.HeatFlowRate QHea_flow_nominal= bui.facMul * bui.QHea_flow_nominal "Space heating design load (>=0)"; parameter Modelica.Units.SI.TemperatureDifference dT_nominal(min=0)=10 "Water temperature drop/increase accross load and source-side HX (always positive)"; parameter Modelica.Units.SI.Temperature THeaWatSup_nominal=50 + 273.15 "Heating water supply temperature"; final parameter Modelica.Units.SI.Temperature THeaWatRet_nominal= THeaWatSup_nominal - dT_nominal "Heating water return temperature"; parameter Modelica.Fluid.Types.Dynamics energyDynamics=Modelica.Fluid.Types.Dynamics.SteadyState "Type of energy balance"; parameter Boolean use_inputFilter=false "= true, if pump speed is filtered with a 2nd order CriticalDamping filter"; parameter String filNam "Library path of the file with thermal loads as time series"; protected parameter Modelica.Units.SI.SpecificHeatCapacity cp=MediumSer.specificHeatCapacityCp( MediumSer.setState_pTX( MediumSer.p_default, MediumSer.T_default, MediumSer.X_default)) "Default specific heat capacity of medium"; end BuildingTimeSeriesWithETS;