Buildings.DHC.Loads.Heating.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.Cooling.

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

Package Content

Name Description
Buildings.DHC.Loads.Heating.BaseClasses.PartialBuildingWithETS PartialBuildingWithETS Partial model with ETS model for heating and partial building model

Buildings.DHC.Loads.Heating.BaseClasses.PartialBuildingWithETS Buildings.DHC.Loads.Heating.BaseClasses.PartialBuildingWithETS

Partial model with ETS model for heating and partial building model

Buildings.DHC.Loads.Heating.BaseClasses.PartialBuildingWithETS

Information

This model is composed of a direct controlled energy transfer station model for cooling Buildings.DHC.ETS.Cooling.Direct 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

TypeNameDefaultDescription
replaceable package MediumSerWaterService side medium
replaceable package MediumSerHea_aWaterService side medium at heating inlet
replaceable package MediumBuiWaterBuilding side medium
PartialBuildingbuiredeclare Buildings.DHC.Load...Building model
PressureDifferencedpSup5000Pressure drop in the ETS supply side [Pa]
PressureDifferencedpRet5000Pressure drop in the ETS return side [Pa]
Configuration
IntegernPorts_heaWat1Number of heating water fluid ports
IntegernPorts_chiWat0Number of chilled water fluid ports
Scaling
RealfacMul1Multiplier factor
Nominal condition
MassFlowRatemBui_flow_nominal Nominal mass flow rate [kg/s]
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
Assumptions
BooleanallowFlowReversalSerfalseSet to true to allow flow reversal on service side
BooleanallowFlowReversalBuifalseSet to true to allow flow reversal on building side

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 RealInputTDisRetSetSetpoint for the maximum district return temperature [K]

Modelica definition

model PartialBuildingWithETS "Partial model with ETS model for heating and partial building model" extends Buildings.DHC.Loads.BaseClasses.PartialBuildingWithPartialETS( nPorts_heaWat=1, redeclare Buildings.DHC.ETS.Heating.Direct ets( final mBui_flow_nominal=mBui_flow_nominal, final controllerType=controllerType, final k=k, final Ti=Ti, final Td=Td, final yMax=yMax, final yMin=yMin)); parameter Modelica.Units.SI.MassFlowRate mBui_flow_nominal( final min=0, final start=0.5) "Nominal mass flow rate"; parameter Modelica.Units.SI.PressureDifference dpSup( final min=0, displayUnit="Pa")=5000 "Pressure drop in the ETS supply side"; parameter Modelica.Units.SI.PressureDifference dpRet( final min=0, displayUnit="Pa")=5000 "Pressure drop in the ETS return side"; // Controller parameters parameter Modelica.Blocks.Types.SimpleController controllerType=Modelica.Blocks.Types.SimpleController.PI "Type of controller"; parameter Real k( final min=0, final unit="1")=0.1 "Gain of controller"; parameter Modelica.Units.SI.Time Ti( final min=Modelica.Constants.small)=60 "Time constant of integrator block"; parameter Modelica.Units.SI.Time Td( final min=0)=0.1 "Time constant of derivative block"; parameter Real yMax( final start=1)=1 "Upper limit of output"; parameter Real yMin=0 "Lower limit of output"; Modelica.Blocks.Interfaces.RealInput TDisRetSet( final unit="K", displayUnit="degC") "Setpoint for the maximum district return temperature"; equation connect(TDisRetSet,ets.TDisRetSet); end PartialBuildingWithETS;