modelDistribution1Pipe_R
Extends from Buildings.DHC.Networks.BaseClasses.PartialDistribution1Pipe (Partial model for one-pipe distribution network).
Information
This is a model of a one-pipe distribution network using a connection model with pipes in the main line whose hydraulic diameters are calculated at initialization based on the pressure drop per pipe length at nominal flow rate Buildings.DHC.Networks.Connections.Connection1Pipe_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 PartialDistribution1Pipe) | false | Set to true to output enthalpy flow rate difference at each connection |
| Boolean | show_TOut (from PartialDistribution1Pipe) | false | Set to true to output temperature at connection outlet |
| 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 | |
| Modelica.Units.SI.Length | lEnd | Length of the end of the distribution line (after last connection) | |
| Modelica.Units.SI.Length[nCon] | dhDis | Hydraulic diameter of the distribution pipe before each connection | |
| Modelica.Units.SI.Length | dhEnd | Hydraulic diameter of of the end of the distribution line (after last connection) | |
| General | |||
| Integer | nCon (from PartialDistribution2Medium) | Number of connections | |
| 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 PartialDistribution1Pipe) | Nominal mass flow rate in the distribution line | |
| Modelica.Units.SI.MassFlowRate[nCon] | mCon_flow_nominal (from PartialDistribution1Pipe) | Nominal mass flow rate in each connection line | |
| Dynamics › Conservation equations | |||
| Modelica.Fluid.Types.Dynamics | energyDynamics (from PartialDistribution1Pipe) | 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 PartialDistribution1Pipe) | 10 | Time constant at nominal flow for dynamic energy and momentum balance |
Connectors
Components
| Type | Name | Default | Description |
|---|---|---|---|
| PartialConnection1Pipe[nCon] | con (from PartialDistribution1Pipe) | Connection to agent | |
| Model_pipDis | pipEnd (from PartialDistribution1Pipe) | Pipe representing the end of the distribution line (after last connection) |
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.