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.
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.