modelDistribution2Pipe_R
Extends from Buildings.DHC.Networks.BaseClasses.PartialDistribution2Pipe (Partial model for two-pipe distribution network).
Information
This is a model of a two-pipe distribution network using a connection model with pipes in the main lines whose hydraulic diameters are calculated at initialization based on the pressure drop per pipe length at nominal flow rate Buildings.DHC.Networks.Connections.Connection2Pipe_R. The same pipe model is also used at the end of the distribution line (after the last connection) only on the supply side.
Modeling considerations
Note that dhDis needs to be vectorized, even if the same value
is computed for each array element in case of a one-pipe network.
This is because the pipe diameter is computed at initialization by the model
Buildings.DHC.Networks.Pipes.PipeAutosize
which is instantiated for each connection.
So the initialization system of equations would be overdetermined if using
a parameter binding with a scalar variable.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | show_entFlo (from PartialDistribution2Pipe) | false | Set to true to output enthalpy flow rate difference at each connection |
| Real | dp_length_nominal | 250 | Pressure drop per pipe length at nominal flow rate |
| Modelica.Units.SI.Length[nCon] | lDis | Length of the distribution pipe before each connection (supply only, not counting return line) | |
| Modelica.Units.SI.Length | lEnd | Length of the end of the distribution line (supply only, not counting return line) | |
| Modelica.Units.SI.Length[nCon] | dhDis | Hydraulic diameter of the distribution pipe before each connection | |
| Modelica.Units.SI.Length[nCon] | dhDisRet | Hydraulic diameter of the distribution pipe before each connection | |
| Modelica.Units.SI.Length | dhEnd | Hydraulic diameter of the end of the distribution line | |
| General | |||
| Integer | nCon (from PartialDistribution2Medium) | Number of connections | |
| Integer | iConDpSen (from PartialDistribution2Pipe) | nCon | Index of the connection where the pressure drop is measured |
| Assumptions | |||
| Boolean | allowFlowReversal (from PartialDistribution2Medium) | false | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
| General › Nominal condition | |||
| Modelica.Units.SI.MassFlowRate | mDis_flow_nominal (from PartialDistribution2Pipe) | Nominal mass flow rate in the distribution line before the first connection | |
| Modelica.Units.SI.MassFlowRate[nCon] | mCon_flow_nominal (from PartialDistribution2Pipe) | Nominal mass flow rate in each connection line | |
| Modelica.Units.SI.MassFlowRate | mEnd_flow_nominal (from PartialDistribution2Pipe) | mDis_flow_nominal - sum(mCon_flow_nominal) | Nominal mass flow rate in the end of the distribution line |
| Modelica.Units.SI.MassFlowRate[nCon] | mDisCon_flow_nominal (from PartialDistribution2Pipe) | cat(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.Dynamics | energyDynamics (from PartialDistribution2Pipe) | Modelica.Fluid.Types.Dynamics.FixedInitial | Type of energy balance: dynamic (3 initialization options) or steady state |
| Dynamics › Nominal condition | |||
| Modelica.Units.SI.Time | tau (from PartialDistribution2Pipe) | 10 | Time constant at nominal flow for dynamic energy and momentum balance |
Connectors
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.DHC.Networks.BaseClasses.PartialConnection2Pipe[nCon] | con (from PartialDistribution2Pipe) | Connection to agent | |
| Model_pipDis | pipEnd (from PartialDistribution2Pipe) | Pipe representing the end of the distribution line (after last connection) | |
| Fluid.Sensors.RelativePressure | senRelPre (from PartialDistribution2Pipe) | Relative pressure sensor |
Revisions
-
March 15, 2024, by David Blum:
Renamed. This is for issue 3712. -
December 20, 2023, by Ettore Zanetti:
This is for issue 3431. -
February 23, 2021, by Antoine Gautier:
First implementation.