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.Controls Controls Package of control blocks for distribution systems
Buildings.Experimental.DHC.Networks.Distribution2Pipe Distribution2Pipe Model of a two-pipe distribution network, using fixed resistance pipe model
Buildings.Experimental.DHC.Networks.Combined Combined Package of models for DHC distribution networks
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 .

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

Parameters

TypeNameDefaultDescription
replaceable package MediumPartialMediumMedium model
replaceable model Model_pipDisFluid.FixedResistances.Press... 
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
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
replaceable model Model_pipDis 
replaceable model Model_pipCon 
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
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_pipDis=Fluid.FixedResistances.PressureDrop ( final dp_nominal=dpDis_nominal), redeclare model Model_pipCon=Fluid.FixedResistances.LosslessPipe); parameter Modelica.Units.SI.PressureDifference dpDis_nominal "Pressure drop in distribution line (supply only, not counting return line)"; end Connection2Pipe;

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
replaceable package MediumPartialMediumMedium model
IntegernCon Number of connections
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;