Buildings.Experimental.DHC.Networks

Package of models for district energy network

Information

This package contains models for elements that form the district network.

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

Package Content

Name Description
Buildings.Experimental.DHC.Networks.Connection2Pipe Connection2Pipe Model for connecting an agent to a two-pipe distribution network, using fixed resistance pipe model
Buildings.Experimental.DHC.Networks.Connection2PipePlugFlow Connection2PipePlugFlow Model for connecting an agent to a two-pipe distribution network, using plug flow pipe models in the main line
Buildings.Experimental.DHC.Networks.Distribution2Pipe Distribution2Pipe Model of a two-pipe distribution network, using fixed resistance pipe model
Buildings.Experimental.DHC.Networks.Distribution2PipePlugFlow Distribution2PipePlugFlow Model of a two-pipe distribution network, using plug flow pipe models in the main line
Buildings.Experimental.DHC.Networks.Combined Combined Package of models for DHC distribution networks
Buildings.Experimental.DHC.Networks.Controls Controls Package of control blocks for distribution systems
Buildings.Experimental.DHC.Networks.Steam Steam Collection of models for distribution networks involving steam
Buildings.Experimental.DHC.Networks.BaseClasses BaseClasses Package with base classes that are used by multiple models

Buildings.Experimental.DHC.Networks.Connection2Pipe Buildings.Experimental.DHC.Networks.Connection2Pipe

Model for connecting an agent to a two-pipe distribution network, using fixed resistance pipe model

Buildings.Experimental.DHC.Networks.Connection2Pipe

Information

This is a model of a connection with a two-pipe distribution network using as pipe model a fixed hydraulic resistance with no heat loss. The pressure drop of this hydraulic resistance is scaled based on the mass flow rate.

Extends from Buildings.Experimental.DHC.Networks.BaseClasses.PartialConnection2Pipe (Partial model for connecting an agent to a two-pipe distribution network).

Parameters

TypeNameDefaultDescription
replaceable model Model_pipDisSupPartialTwoPortInterfaceInterface for inlet pipe for the distribution supply
replaceable model Model_pipDisRetPartialTwoPortInterfaceInterface for outlet pipe for the distribution return
replaceable package MediumPartialMediumMedium model
replaceable model Model_pipConFluid.FixedResistances.Lossl... 
Booleanshow_entFlofalseSet to true to output enthalpy flow rate difference
PressureDifferencedpDis_nominal Pressure drop in distribution line (supply only, not counting return line) [Pa]
Nominal condition
MassFlowRatemDis_flow_nominal Nominal mass flow rate in the distribution line [kg/s]
MassFlowRatemCon_flow_nominal Nominal mass flow rate in the connection line [kg/s]
Assumptions
BooleanallowFlowReversalfalse= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Dynamics
Equations
DynamicsenergyDynamicsModelica.Fluid.Types.Dynamic...Type of energy balance: dynamic (3 initialization options) or steady state
Nominal condition
Timetau10Time constant at nominal flow for dynamic energy and momentum balance [s]

Connectors

TypeNameDescription
replaceable model Model_pipDisSupInterface for inlet pipe for the distribution supply
replaceable model Model_pipDisRetInterface for outlet pipe for the distribution return
FluidPort_aport_aDisSupDistribution supply inlet port
FluidPort_bport_bDisSupDistribution supply outlet port
FluidPort_aport_aDisRetDistribution return inlet port
FluidPort_bport_bDisRetDistribution return outlet port
FluidPort_bport_bConConnection supply port
FluidPort_aport_aConConnection return port
replaceable model Model_pipCon 
output RealOutputmCon_flowConnection supply mass flow rate [kg/s]
output RealOutputdpPressure drop accross the connection (measured) [Pa]
output RealOutputdH_flowDifference in enthalpy flow rate between connection supply and return [W]

Modelica definition

model Connection2Pipe "Model for connecting an agent to a two-pipe distribution network, using fixed resistance pipe model" extends Buildings.Experimental.DHC.Networks.BaseClasses.PartialConnection2Pipe ( redeclare model Model_pipDisSup=Fluid.FixedResistances.PressureDrop ( final dp_nominal=dpDis_nominal), redeclare model Model_pipDisRet=Fluid.FixedResistances.PressureDrop ( final dp_nominal=dpDis_nominal), redeclare model Model_pipCon=Fluid.FixedResistances.LosslessPipe); parameter Modelica.Units.SI.PressureDifference dpDis_nominal( displayUnit="Pa") "Pressure drop in distribution line (supply only, not counting return line)"; end Connection2Pipe;

Buildings.Experimental.DHC.Networks.Connection2PipePlugFlow Buildings.Experimental.DHC.Networks.Connection2PipePlugFlow

Model for connecting an agent to a two-pipe distribution network, using plug flow pipe models in the main line

Buildings.Experimental.DHC.Networks.Connection2PipePlugFlow

Information

This is a model of a connection with a two-pipe distribution network using a plug flow pipe model that includes pressure drop, heat transfer, and transport delays.

The plug flow pipe model is used in the main distribution line, but not in the connection to the building, as the latter is typically short.

Extends from Buildings.Experimental.DHC.Networks.BaseClasses.PartialConnection2Pipe (Partial model for connecting an agent to a two-pipe distribution network).

Parameters

TypeNameDefaultDescription
replaceable model Model_pipDisSupPartialTwoPortInterfaceInterface for inlet pipe for the distribution supply
replaceable model Model_pipDisRetPartialTwoPortInterfaceInterface for outlet pipe for the distribution return
replaceable package MediumPartialMediumMedium model
replaceable model Model_pipConFluid.FixedResistances.Lossl... 
Booleanshow_entFlofalseSet to true to output enthalpy flow rate difference
Nominal condition
MassFlowRatemDis_flow_nominal Nominal mass flow rate in the distribution line [kg/s]
MassFlowRatemCon_flow_nominal Nominal mass flow rate in the connection line [kg/s]
Pipe
Lengthlength Pipe length [m]
LengthdIns Thickness of pipe insulation, used to compute R [m]
ThermalConductivitykIns Heat conductivity of pipe insulation, used to compute R [W/(m.K)]
Assumptions
BooleanallowFlowReversalfalse= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Dynamics
Equations
DynamicsenergyDynamicsModelica.Fluid.Types.Dynamic...Type of energy balance: dynamic (3 initialization options) or steady state
Nominal condition
Timetau10Time constant at nominal flow for dynamic energy and momentum balance [s]

Connectors

TypeNameDescription
replaceable model Model_pipDisSupInterface for inlet pipe for the distribution supply
replaceable model Model_pipDisRetInterface for outlet pipe for the distribution return
FluidPort_aport_aDisSupDistribution supply inlet port
FluidPort_bport_bDisSupDistribution supply outlet port
FluidPort_aport_aDisRetDistribution return inlet port
FluidPort_bport_bDisRetDistribution return outlet port
FluidPort_bport_bConConnection supply port
FluidPort_aport_aConConnection return port
replaceable model Model_pipCon 
output RealOutputmCon_flowConnection supply mass flow rate [kg/s]
output RealOutputdpPressure drop accross the connection (measured) [Pa]
output RealOutputdH_flowDifference in enthalpy flow rate between connection supply and return [W]
HeatPort_aheatPortHeat transfer to or from surroundings (positive if pipe is colder than surrounding)

Modelica definition

model Connection2PipePlugFlow "Model for connecting an agent to a two-pipe distribution network, using plug flow pipe models in the main line" extends Buildings.Experimental.DHC.Networks.BaseClasses.PartialConnection2Pipe ( redeclare model Model_pipDisSup = Buildings.Fluid.FixedResistances.PlugFlowPipe ( final length=length, final dIns=dIns, final kIns=kIns), redeclare model Model_pipDisRet = Buildings.Fluid.FixedResistances.PlugFlowPipe ( final length=length, final dIns=dIns, final kIns=kIns), redeclare model Model_pipCon=Fluid.FixedResistances.LosslessPipe); parameter Modelica.Units.SI.Length length "Pipe length"; parameter Modelica.Units.SI.Length dIns "Thickness of pipe insulation, used to compute R"; parameter Modelica.Units.SI.ThermalConductivity kIns "Heat conductivity of pipe insulation, used to compute R"; Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a heatPort "Heat transfer to or from surroundings (positive if pipe is colder than surrounding)"; equation connect(pipDisRet.heatPort, heatPort); connect(pipDisSup.heatPort, heatPort); end Connection2PipePlugFlow;

Buildings.Experimental.DHC.Networks.Distribution2Pipe Buildings.Experimental.DHC.Networks.Distribution2Pipe

Model of a two-pipe distribution network, using fixed resistance pipe model

Buildings.Experimental.DHC.Networks.Distribution2Pipe

Information

This is a model of a two-pipe distribution network using

Extends from Buildings.Experimental.DHC.Networks.BaseClasses.PartialDistribution2Pipe (Partial model for two-pipe distribution network).

Parameters

TypeNameDefaultDescription
IntegernCon Number of connections
replaceable package MediumPartialMediumMedium model
replaceable model Model_pipDisFluid.FixedResistances.Lossl...Model for distribution pipe
IntegeriConDpSennConIndex of the connection where the pressure drop is measured
Booleanshow_entFlofalseSet to true to output enthalpy flow rate difference at each connection
Nominal condition
MassFlowRatemDis_flow_nominal Nominal mass flow rate in the distribution line before the first connection [kg/s]
MassFlowRatemCon_flow_nominal[nCon] Nominal mass flow rate in each connection line [kg/s]
MassFlowRatemEnd_flow_nominalmDis_flow_nominal - sum(mCon...Nominal mass flow rate in the end of the distribution line [kg/s]
MassFlowRatemDisCon_flow_nominal[nCon]cat(1, {mDis_flow_nominal}, ...Nominal mass flow rate in the distribution line before each connection [kg/s]
PressureDifferencedpDis_nominal[nCon] Pressure drop in distribution line (supply only, not counting return line) [Pa]
Assumptions
BooleanallowFlowReversalfalse= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Dynamics
Conservation equations
DynamicsenergyDynamicsModelica.Fluid.Types.Dynamic...Type of energy balance: dynamic (3 initialization options) or steady state
Nominal condition
Timetau10Time constant at nominal flow for dynamic energy and momentum balance [s]

Connectors

TypeNameDescription
FluidPorts_aports_aCon[nCon]Connection return ports
FluidPorts_bports_bCon[nCon]Connection supply ports
FluidPort_aport_aDisSupDistribution supply inlet port
FluidPort_bport_bDisSupDistribution supply outlet port
replaceable model Model_pipDisModel for distribution pipe
FluidPort_bport_bDisRetDistribution return outlet port
FluidPort_aport_aDisRetDistribution return inlet port
output RealOutputdpPressure difference at given location (measured) [Pa]
output RealOutputdH_flow[nCon]Difference in enthalpy flow rate between connection supply and return [W]
output RealOutputmCon_flow[nCon]Connection supply mass flow rate (measured) [kg/s]

Modelica definition

model Distribution2Pipe "Model of a two-pipe distribution network, using fixed resistance pipe model" extends Buildings.Experimental.DHC.Networks.BaseClasses.PartialDistribution2Pipe ( redeclare Connection2Pipe con[nCon]( final dpDis_nominal=dpDis_nominal), redeclare model Model_pipDis=Fluid.FixedResistances.LosslessPipe); parameter Modelica.Units.SI.PressureDifference dpDis_nominal[nCon] "Pressure drop in distribution line (supply only, not counting return line)"; end Distribution2Pipe;

Buildings.Experimental.DHC.Networks.Distribution2PipePlugFlow Buildings.Experimental.DHC.Networks.Distribution2PipePlugFlow

Model of a two-pipe distribution network, using plug flow pipe models in the main line

Buildings.Experimental.DHC.Networks.Distribution2PipePlugFlow

Information

This is a model of a two-pipe distribution network using

Extends from Buildings.Experimental.DHC.Networks.BaseClasses.PartialDistribution2Pipe (Partial model for two-pipe distribution network).

Parameters

TypeNameDefaultDescription
IntegernCon Number of connections
replaceable package MediumPartialMediumMedium model
replaceable model Model_pipDisFluid.FixedResistances.Lossl...Model for distribution pipe
IntegeriConDpSennConIndex of the connection where the pressure drop is measured
Booleanshow_entFlofalseSet to true to output enthalpy flow rate difference at each connection
Nominal condition
MassFlowRatemDis_flow_nominal Nominal mass flow rate in the distribution line before the first connection [kg/s]
MassFlowRatemCon_flow_nominal[nCon] Nominal mass flow rate in each connection line [kg/s]
MassFlowRatemEnd_flow_nominalmDis_flow_nominal - sum(mCon...Nominal mass flow rate in the end of the distribution line [kg/s]
MassFlowRatemDisCon_flow_nominal[nCon]cat(1, {mDis_flow_nominal}, ...Nominal mass flow rate in the distribution line before each connection [kg/s]
Pipe
Lengthlength[nCon] Pipe length [m]
LengthdIns[nCon]fill(0.05, nCon)Thickness of pipe insulation, used to compute R [m]
ThermalConductivitykIns[nCon]fill(0.028, nCon)Heat conductivity of pipe insulation, used to compute R [W/(m.K)]
Assumptions
BooleanallowFlowReversalfalse= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Dynamics
Conservation equations
DynamicsenergyDynamicsModelica.Fluid.Types.Dynamic...Type of energy balance: dynamic (3 initialization options) or steady state
Nominal condition
Timetau10Time constant at nominal flow for dynamic energy and momentum balance [s]

Connectors

TypeNameDescription
FluidPorts_aports_aCon[nCon]Connection return ports
FluidPorts_bports_bCon[nCon]Connection supply ports
FluidPort_aport_aDisSupDistribution supply inlet port
FluidPort_bport_bDisSupDistribution supply outlet port
replaceable model Model_pipDisModel for distribution pipe
FluidPort_bport_bDisRetDistribution return outlet port
FluidPort_aport_aDisRetDistribution return inlet port
output RealOutputdpPressure difference at given location (measured) [Pa]
output RealOutputdH_flow[nCon]Difference in enthalpy flow rate between connection supply and return [W]
output RealOutputmCon_flow[nCon]Connection supply mass flow rate (measured) [kg/s]
HeatPort_aheatPortHeat transfer to or from surroundings (positive if pipe is colder than surrounding)

Modelica definition

model Distribution2PipePlugFlow "Model of a two-pipe distribution network, using plug flow pipe models in the main line" extends Buildings.Experimental.DHC.Networks.BaseClasses.PartialDistribution2Pipe ( redeclare Connection2PipePlugFlow con[nCon]( final length=length, final dIns=dIns, final kIns=kIns), redeclare model Model_pipDis=Fluid.FixedResistances.LosslessPipe); parameter Modelica.Units.SI.Length length[nCon] "Pipe length"; parameter Modelica.Units.SI.Length dIns[nCon]=fill(0.05, nCon) "Thickness of pipe insulation, used to compute R"; parameter Modelica.Units.SI.ThermalConductivity kIns[nCon]=fill(0.028, nCon) "Heat conductivity of pipe insulation, used to compute R"; Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a heatPort "Heat transfer to or from surroundings (positive if pipe is colder than surrounding)"; protected Modelica.Thermal.HeatTransfer.Components.ThermalCollector theCol(final m=nCon) "Thermal collector"; equation connect(heatPort, theCol.port_b); connect(con.heatPort, theCol.port_a); end Distribution2PipePlugFlow;