modelPartialConnection1Pipe
Partial model for connecting an agent to a one-pipe distribution network
Information
Partial model to be used for connecting an agent (e.g. energy transfer station) to a one-pipe distribution network.
Two instances of a replaceable partial model are used to represent the pipes:
- One representing the main distribution pipe immediately upstream the connection.
- The other one representing both the supply and return lines of the connection. When replacing that model with a pipe model computing the pressure drop, one must double the length so that both the supply and return lines are accounted for.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | show_entFlo | false | Set to true to output enthalpy flow rate difference |
| Boolean | show_TOut | false | Set to true to output temperature at connection outlet |
| Modelica.Units.SI.MassFlowRate | mDis_flow_nominal | Nominal mass flow rate in the distribution line | |
| Modelica.Units.SI.MassFlowRate | mCon_flow_nominal | Nominal mass flow rate in the connection line | |
| Assumptions | |||
| Boolean | allowFlowReversal | false | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
| Dynamics › Conservation equations | |||
| Modelica.Fluid.Types.Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamics.FixedInitial | Type of energy balance: dynamic (3 initialization options) or steady state |
| Advanced › Dynamics | |||
| Modelica.Fluid.Types.Dynamics | massDynamics | energyDynamics | Type of mass balance: dynamic (3 initialization options) or steady state, must be steady state if energyDynamics is steady state |
| Dynamics › Nominal condition | |||
| Modelica.Units.SI.Time | tau | 10 | Time constant at nominal flow for dynamic energy and momentum balance |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPort_a | port_aDis | Distribution inlet port | |
| Modelica.Fluid.Interfaces.FluidPort_b | port_bDis | Distribution outlet port | |
| Modelica.Fluid.Interfaces.FluidPort_a | port_aCon | Connection return port | |
| Modelica.Fluid.Interfaces.FluidPort_b | port_bCon | Connection supply port | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | mCon_flow | Connection supply mass flow rate (measured) | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | dH_flow | Difference in enthalpy flow rate between connection supply and return | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | mByp_flow | Bypass mass flow rate | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | TOut | Temperature in distribution line at connection outlet | |
| Fluid.FixedResistances.Junction | junConSup | Junction with connection supply | |
| Fluid.FixedResistances.Junction | junConRet | Junction with connection return | |
| Model_pipDis | pipDis | Distribution pipe | |
| Model_pipCon | pipCon | Connection pipe | |
| Buildings.Fluid.Sensors.MassFlowRate | senMasFloCon | Connection supply mass flow rate (measured) | |
| Buildings.Fluid.Sensors.MassFlowRate | senMasFloByp | Bypass mass flow rate (measured) | |
| DifferenceEnthalpyFlowRate | senDifEntFlo | Difference in enthalpy flow rate | |
| Fluid.Sensors.TemperatureTwoPort | senTOut | Temperature in distribution line at connection outlet |
Contents
| Name | Description |
|---|---|
| Medium | Medium model |
| Model_pipDis | |
| Model_pipCon |
Revisions
-
March 3, 2022, by Michael Wetter:
RemovedmassDynamics.
This is for issue 1542. -
February 21, 2020, by Antoine Gautier:
First implementation.