modelPartialBuildingWithPartialETS
Information
Partial model to be used for modeling
- an energy transfer station and the optional in-building primary systems, based on a model extending Buildings.DHC.ETS.BaseClasses.PartialETS, and
- the served building, based on a model extending Buildings.DHC.Loads.BaseClasses.PartialBuilding.
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.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | idxPHeaETS | max(Modelica.Math.BooleanVectors.countTrue({bui.have_eleHea, ets.have_eleHea}), 1) | Index for connecting the ETS output connector |
| Integer | idxPCooETS | max(Modelica.Math.BooleanVectors.countTrue({bui.have_eleCoo, ets.have_eleCoo}), 1) | Index for connecting the ETS output connector |
| Integer | idxPFanETS | max(Modelica.Math.BooleanVectors.countTrue({bui.have_fan, ets.have_fan}), 1) | Index for connecting the ETS output connector |
| Integer | idxPPumETS | max(Modelica.Math.BooleanVectors.countTrue({bui.have_pum, ets.have_pum}), 1) | Index for connecting the ETS output connector |
| Configuration | |||
| Integer | nPorts_heaWat | 0 | Number of heating water fluid ports |
| Integer | nPorts_chiWat | 0 | Number of chilled water fluid ports |
| TypDisSys | typ | ets.typ | Type of district system |
| Boolean | have_heaWat | ets.have_heaWat | Set to true if the ETS supplies heating water |
| Boolean | have_hotWat | ets.have_hotWat | Set to true if the ETS supplies domestic hot water |
| Boolean | have_chiWat | ets.have_chiWat | Set to true if the ETS supplies chilled water |
| Boolean | have_eleHea | bui.have_eleHea or ets.have_eleHea | Set to true if the building or ETS has electric heating system |
| Integer | nFue | ets.nFue | Number of fuel types (0 means no combustion system) |
| Boolean | have_eleCoo | bui.have_eleCoo or ets.have_eleCoo | Set to true if the building or ETS has electric cooling system |
| Boolean | have_fan | bui.have_fan or ets.have_fan | Set to true if fan power is computed |
| Boolean | have_pum | bui.have_pum or ets.have_pum | Set to true if pump power is computed |
| Boolean | have_weaBus | bui.have_weaBus or ets.have_weaBus | Set to true to use a weather bus |
| Scaling | |||
| Real | facMul | 1 | Multiplier factor |
| 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 |
| Nominal condition | |||
| Modelica.Units.SI.HeatFlowRate | QHeaWat_flow_nominal | ets.QHeaWat_flow_nominal | Nominal capacity of heating system (>=0) |
| Modelica.Units.SI.HeatFlowRate | QHotWat_flow_nominal | ets.QHotWat_flow_nominal | Nominal capacity of hot water production system (>=0) |
| Modelica.Units.SI.HeatFlowRate | QChiWat_flow_nominal | ets.QChiWat_flow_nominal | Nominal capacity of cooling system (<=0) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPort_a | port_aSerAmb | Fluid connector for ambient water service supply line | |
| Modelica.Fluid.Interfaces.FluidPort_b | port_bSerAmb | Fluid connector for ambient water service return line | |
| Modelica.Fluid.Interfaces.FluidPort_a | port_aSerHea | Fluid connector for heating service supply line | |
| Modelica.Fluid.Interfaces.FluidPort_b | port_bSerHea | Fluid connector for heating service return line | |
| Modelica.Fluid.Interfaces.FluidPort_a | port_aSerCoo | Fluid connector for cooling service supply line | |
| Modelica.Fluid.Interfaces.FluidPort_b | port_bSerCoo | Fluid connector for cooling service return line | |
| BoundaryConditions.WeatherData.Bus | weaBus | Weather data bus | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | QHea_flow | Total heating heat flow rate transferred to the loads (>=0) | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | QCoo_flow | Total cooling heat flow rate transferred to the loads (<=0) | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | PHea | Power drawn by heating system | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | PCoo | Power drawn by cooling system | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | PFan | Power drawn by fan motors | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | PPum | Power drawn by pump motors | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput[nFue] | QFue_flow | Fuel energy input rate |
Components
Contents
| Name | Description |
|---|---|
Revisions
-
December 21, 2022, by Kathryn Hinkelman:
Added conditional requirementhave_pumto instancetotPPumfor cases where ETS and building both don't have pumping.
This is for #2912. -
December 14, 2020, by Antoine Gautier:
First implementation.