modelPartialBuildingWithPartialETS

Partial model of a building with an energy transfer station

Information

Partial model to be used for modeling

See the schematics below for a description of the physical boundaries of the composing systems.

The parameters defining the set of outside connectors of this class are propagated up from the ETS and building components. The connect clauses between the ETS and the building connectors are automatically generated based on the previous parameters and the additional parameters nPorts_heaWat and nPorts_chiWat that need to be specified. In case of a heating service line, the model allows for using two different media at the inlet port_aSerHea and at the oulet port_bSerHea to represent a steam supply and condensate return.

Scaling

Scaling is implemented by means of a multiplier factor facMul. Each extensive quantity (mass and heat flow rate, electric power) flowing out through fluid ports, or connected to an output connector is multiplied by facMul. Each extensive quantity (mass and heat flow rate, electric power) flowing in through fluid ports, or connected to an input connector is multiplied by 1/facMul. This allows modeling, with a single instance, multiple identical buildings with identical energy transfer stations, served by the same service line.


image

Parameters

TypeNameDefaultDescription
IntegeridxPHeaETSmax(Modelica.Math.BooleanVectors.countTrue({bui.have_eleHea, ets.have_eleHea}), 1)Index for connecting the ETS output connector
IntegeridxPCooETSmax(Modelica.Math.BooleanVectors.countTrue({bui.have_eleCoo, ets.have_eleCoo}), 1)Index for connecting the ETS output connector
IntegeridxPFanETSmax(Modelica.Math.BooleanVectors.countTrue({bui.have_fan, ets.have_fan}), 1)Index for connecting the ETS output connector
IntegeridxPPumETSmax(Modelica.Math.BooleanVectors.countTrue({bui.have_pum, ets.have_pum}), 1)Index for connecting the ETS output connector
Configuration
IntegernPorts_heaWat0Number of heating water fluid ports
IntegernPorts_chiWat0Number of chilled water fluid ports
TypDisSystypets.typType of district system
Booleanhave_heaWatets.have_heaWatSet to true if the ETS supplies heating water
Booleanhave_hotWatets.have_hotWatSet to true if the ETS supplies domestic hot water
Booleanhave_chiWatets.have_chiWatSet to true if the ETS supplies chilled water
Booleanhave_eleHeabui.have_eleHea or ets.have_eleHeaSet to true if the building or ETS has electric heating system
IntegernFueets.nFueNumber of fuel types (0 means no combustion system)
Booleanhave_eleCoobui.have_eleCoo or ets.have_eleCooSet to true if the building or ETS has electric cooling system
Booleanhave_fanbui.have_fan or ets.have_fanSet to true if fan power is computed
Booleanhave_pumbui.have_pum or ets.have_pumSet to true if pump power is computed
Booleanhave_weaBusbui.have_weaBus or ets.have_weaBusSet to true to use a weather bus
Scaling
RealfacMul1Multiplier factor
Assumptions
BooleanallowFlowReversalSerfalseSet to true to allow flow reversal on service side
BooleanallowFlowReversalBuifalseSet to true to allow flow reversal on building side
Nominal condition
Modelica.Units.SI.HeatFlowRateQHeaWat_flow_nominalets.QHeaWat_flow_nominalNominal capacity of heating system (>=0)
Modelica.Units.SI.HeatFlowRateQHotWat_flow_nominalets.QHotWat_flow_nominalNominal capacity of hot water production system (>=0)
Modelica.Units.SI.HeatFlowRateQChiWat_flow_nominalets.QChiWat_flow_nominalNominal capacity of cooling system (<=0)

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_aSerAmbFluid connector for ambient water service supply line
Modelica.Fluid.Interfaces.FluidPort_bport_bSerAmbFluid connector for ambient water service return line
Modelica.Fluid.Interfaces.FluidPort_aport_aSerHeaFluid connector for heating service supply line
Modelica.Fluid.Interfaces.FluidPort_bport_bSerHeaFluid connector for heating service return line
Modelica.Fluid.Interfaces.FluidPort_aport_aSerCooFluid connector for cooling service supply line
Modelica.Fluid.Interfaces.FluidPort_bport_bSerCooFluid connector for cooling service return line
BoundaryConditions.WeatherData.BusweaBusWeather data bus
Buildings.Controls.OBC.CDL.Interfaces.RealOutputQHea_flowTotal heating heat flow rate transferred to the loads (>=0)
Buildings.Controls.OBC.CDL.Interfaces.RealOutputQCoo_flowTotal cooling heat flow rate transferred to the loads (<=0)
Buildings.Controls.OBC.CDL.Interfaces.RealOutputPHeaPower drawn by heating system
Buildings.Controls.OBC.CDL.Interfaces.RealOutputPCooPower drawn by cooling system
Buildings.Controls.OBC.CDL.Interfaces.RealOutputPFanPower drawn by fan motors
Buildings.Controls.OBC.CDL.Interfaces.RealOutputPPumPower drawn by pump motors
Buildings.Controls.OBC.CDL.Interfaces.RealOutput[nFue]QFue_flowFuel energy input rate

Components

TypeNameDefaultDescription
Buildings.DHC.Loads.BaseClasses.PartialBuildingbuiBuilding model
Buildings.DHC.ETS.BaseClasses.PartialETSetsEnergy transfer station model
Buildings.Controls.OBC.CDL.Reals.MultiSumtotPHeaTotal power drawn by heating system
Buildings.Controls.OBC.CDL.Reals.MultiSumtotPCooTotal power drawn by cooling system
Buildings.Controls.OBC.CDL.Reals.MultiSumtotPFanTotal power drawn by fan motors
Buildings.Controls.OBC.CDL.Reals.MultiSumtotPPumTotal power drawn by pump motors
Buildings.Controls.OBC.CDL.Reals.MultiplyByParametermulQHea_flowScaling
Buildings.Controls.OBC.CDL.Reals.MultiplyByParametermulQCoo_flowScaling
Buildings.Controls.OBC.CDL.Reals.MultiplyByParametermulPHeaScaling
Buildings.Controls.OBC.CDL.Reals.MultiplyByParametermulPCooScaling
Buildings.Controls.OBC.CDL.Reals.MultiplyByParametermulPFanScaling
Buildings.Controls.OBC.CDL.Reals.MultiplyByParametermulPPumScaling
Fluid.BaseClasses.MassFlowRateMultipliermulSerAmbInlMass flow rate multiplier
Fluid.BaseClasses.MassFlowRateMultipliermulSerAmbOutMass flow rate multiplier
Fluid.BaseClasses.MassFlowRateMultipliermulSerHeaInlMass flow rate multiplier
Fluid.BaseClasses.MassFlowRateMultipliermulSerHeaOutMass flow rate multiplier
Fluid.BaseClasses.MassFlowRateMultipliermulSerCooInlMass flow rate multiplier
Fluid.BaseClasses.MassFlowRateMultipliermulSerCooOutMass flow rate multiplier
Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter[nFue]mulQFue_flowScaling

Contents

NameDescription
MediumSer
MediumSerHea_a
MediumBui

Revisions

  • December 21, 2022, by Kathryn Hinkelman:
    Added conditional requirement have_pum to instance totPPum for cases where ETS and building both don't have pumping.
    This is for #2912.
  • December 14, 2020, by Antoine Gautier:
    First implementation.