modelPartialDistribution2Pipe

Partial model for two-pipe distribution network

Extends from PartialDistribution (Partial model for distribution network).

Information

Partial model of a two-pipe distribution network.

An array of replaceable partial models is used to represent the connections along the network, including the pipe segment immediately upstream each connection.

A replaceable partial model is used to represent the pipe segment of the supply and return line after the last connection.

The parameter iConDpSen is provided to specify the index of the connection where the pressure drop is measured. Use zero for a sensor connected to the supply pipe inlet and return pipe outlet. Use a negative value if no sensor is needed.

Optionally the heat flow rate transferred to each connected load can be output.

Parameters

TypeNameDefaultDescription
Booleanshow_entFlofalseSet to true to output enthalpy flow rate difference at each connection
General
IntegernCon (from PartialDistribution2Medium)Number of connections
IntegeriConDpSennConIndex of the connection where the pressure drop is measured
Assumptions
BooleanallowFlowReversal (from PartialDistribution2Medium)false= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
General › Nominal condition
Modelica.Units.SI.MassFlowRatemDis_flow_nominalNominal mass flow rate in the distribution line before the first connection
Modelica.Units.SI.MassFlowRate[nCon]mCon_flow_nominalNominal mass flow rate in each connection line
Modelica.Units.SI.MassFlowRatemEnd_flow_nominalmDis_flow_nominal - sum(mCon_flow_nominal)Nominal mass flow rate in the end of the distribution line
Modelica.Units.SI.MassFlowRate[nCon]mDisCon_flow_nominalcat(1, {mDis_flow_nominal}, {mDis_flow_nominal - sum(mCon_flow_nominal[1:i]) for i in 1:(nCon - 1)})Nominal mass flow rate in the distribution line before each connection
Dynamics › Conservation equations
Modelica.Fluid.Types.DynamicsenergyDynamicsModelica.Fluid.Types.Dynamics.FixedInitialType of energy balance: dynamic (3 initialization options) or steady state
Dynamics › Nominal condition
Modelica.Units.SI.Timetau10Time constant at nominal flow for dynamic energy and momentum balance

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPorts_a[nCon]ports_aCon (from PartialDistribution2Medium)Connection return ports
Modelica.Fluid.Interfaces.FluidPorts_b[nCon]ports_bCon (from PartialDistribution2Medium)Connection supply ports
Modelica.Fluid.Interfaces.FluidPort_aport_aDisSup (from PartialDistribution2Medium)Distribution supply inlet port
Modelica.Fluid.Interfaces.FluidPort_bport_bDisSup (from PartialDistribution2Medium)Distribution supply outlet port
Modelica.Fluid.Interfaces.FluidPort_bport_bDisRetDistribution return outlet port
Modelica.Fluid.Interfaces.FluidPort_aport_aDisRetDistribution return inlet port
Buildings.Controls.OBC.CDL.Interfaces.RealOutputdpPressure difference at given location (measured)
Buildings.Controls.OBC.CDL.Interfaces.RealOutput[nCon]dH_flowDifference in enthalpy flow rate between connection supply and return
Buildings.Controls.OBC.CDL.Interfaces.RealOutput[nCon]mCon_flowConnection supply mass flow rate (measured)

Components

TypeNameDefaultDescription
Buildings.DHC.Networks.BaseClasses.PartialConnection2Pipe[nCon]conConnection to agent
Model_pipDispipEndPipe representing the end of the distribution line (after last connection)
Fluid.Sensors.RelativePressuresenRelPreRelative pressure sensor

Contents

NameDescription
Model_pipDisModel for distribution pipe

Revisions

  • February 21, 2020, by Antoine Gautier:
    First implementation.