Buildings.Templates.Components.Routing
Connection models for fluid routing
Information
This package contains models that allow connecting component fluid ports together with various routing arrangements.
Extends from Modelica.Icons.VariantsPackage (Icon for package containing variants).
Package Content
Name | Description |
---|---|
Junction | Flow splitter with fixed resistance at each port |
MultipleToMultiple | Multiple inlet ports, multiple outlet ports |
MultipleToSingle | Multiple inlet port, single outlet ports |
PassThroughFluid | Direct fluid pass-through |
SingleToMultiple | Single inlet port, multiple outlet ports |
Buildings.Templates.Components.Routing.Junction
Flow splitter with fixed resistance at each port
Information
This is a model of a flow junction with an optional fixed resistance in each flow leg and an optional mixing volume at the junction. This model is identical to Buildings.Fluid.FixedResistances.Junction except for the icon which has been changed for better integration into the templates.
Extends from Buildings.Fluid.FixedResistances.Junction (Flow splitter with fixed resistance at each port).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Nominal condition | |||
MassFlowRate | m_flow_nominal[3] | Mass flow rate. Set negative at outflowing ports. [kg/s] | |
Pressure | dp_nominal[3] | Pressure drop at nominal mass flow rate, set to zero or negative number at outflowing ports. [Pa] | |
Transition to laminar | |||
Real | deltaM | 0.3 | Fraction of nominal mass flow rate where transition to turbulent occurs |
Dynamics | |||
Conservation equations | |||
Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamic... | Type of energy balance: dynamic (3 initialization options) or steady state |
MassFlowRate | mDyn_flow_nominal | sum(abs(m_flow_nominal[:])/3) | Nominal mass flow rate for dynamic momentum and energy balance [kg/s] |
Nominal condition | |||
Time | tau | 10 | Time constant at nominal flow for dynamic energy and momentum balance [s] |
Initialization | |||
AbsolutePressure | p_start | Medium.p_default | Start value of pressure [Pa] |
Temperature | T_start | Medium.T_default | Start value of temperature [K] |
MassFraction | X_start[Medium.nX] | Medium.X_default | Start value of mass fractions m_i/m [kg/kg] |
ExtraProperty | C_start[Medium.nC] | fill(0, Medium.nC) | Start value of trace substances |
ExtraProperty | C_nominal[Medium.nC] | fill(1E-2, Medium.nC) | Nominal value of trace substances. (Set to typical order of magnitude.) |
Advanced | |||
Boolean | from_dp | true | = true, use m_flow = f(dp) else dp = f(m_flow) |
PortFlowDirection | portFlowDirection_1 | Modelica.Fluid.Types.PortFlo... | Flow direction for port_1 |
PortFlowDirection | portFlowDirection_2 | Modelica.Fluid.Types.PortFlo... | Flow direction for port_2 |
PortFlowDirection | portFlowDirection_3 | Modelica.Fluid.Types.PortFlo... | Flow direction for port_3 |
Boolean | verifyFlowReversal | false | =true, to assert that the flow does not reverse when portFlowDirection_* does not equal Bidirectional |
MassFlowRate | m_flow_small | mDyn_flow_nominal*1e-4 | Small mass flow rate for checking flow reversal [kg/s] |
Boolean | linearized | false | = true, use linear relation between m_flow and dp for any flow rate |
Graphics | |||
IconPipe | icon_pipe1 | Buildings.Templates.Componen... | Pipe symbol - Branch 1 |
IconPipe | icon_pipe2 | icon_pipe1 | Pipe symbol - Branch 2 |
IconPipe | icon_pipe3 | icon_pipe1 | Pipe symbol - Branch 3 |
Connectors
Type | Name | Description |
---|---|---|
FluidPort_a | port_1 | First port, typically inlet |
FluidPort_b | port_2 | Second port, typically outlet |
FluidPort_a | port_3 | Third port, can be either inlet or outlet |
Modelica definition
Buildings.Templates.Components.Routing.MultipleToMultiple
Multiple inlet ports, multiple outlet ports
Information
This is a model of a many-to-many fluid connector with an optional control volume, and an optional mixing port (common leg). It is typically used to connect parallel pumps with parallel chillers or boilers. Selecting a mixing port allows modeling a headered pumping arrangement. Without any mixing port, a dedicated pumping arrangement is modeled.
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | Modelica.Media.Interfaces.Pa... | Medium in the component | |
Configuration | |||
Integer | nPorts_a | Number of inlet ports | |
Integer | nPorts_b | nPorts_a | Number of outlet ports |
Boolean | have_comLeg | false | Set to true for common leg between inlet and outlet ports (headered connection) |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate [kg/s] | |
Dynamics | |||
Nominal condition | |||
Time | tau | 10 | Time constant at nominal flow [s] |
Conservation equations | |||
Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamic... | Type of energy balance: dynamic (3 initialization options) or steady state |
Assumptions | |||
Boolean | allowFlowReversal | true | = true to allow flow reversal, false restricts to design direction (ports_a -> ports_b) |
Advanced | |||
Diagnostics | |||
Boolean | show_T | false | Set to true if actual temperature at port is computed |
Connectors
Type | Name | Description |
---|---|---|
replaceable package Medium | Medium in the component | |
FluidPorts_a | ports_a[nPorts_a] | Fluid connector a (positive design flow direction is from ports_a to ports_b) |
FluidPorts_b | ports_b[nPorts_b] | Fluid connectors b (positive design flow direction is from ports_a to ports_b) |
FluidPort_a | port_aComLeg | Common leg port - Case with common leg |
Modelica definition
Buildings.Templates.Components.Routing.MultipleToSingle
Multiple inlet port, single outlet ports
Information
This is a model of a many-to-one fluid connector with an optional control volume. It is typically used to represent an outlet manifold or multiple junctions converging into a single pipe.
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | Modelica.Media.Interfaces.Pa... | Medium in the component | |
Configuration | |||
Integer | nPorts | Number of ports | |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate [kg/s] | |
Dynamics | |||
Nominal condition | |||
Time | tau | 10 | Time constant at nominal flow [s] |
Conservation equations | |||
Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamic... | Type of energy balance: dynamic (3 initialization options) or steady state |
Assumptions | |||
Boolean | allowFlowReversal | true | Set to true to allow flow reversal, false restricts to design direction (ports_a -> port_b) |
Advanced | |||
Diagnostics | |||
Boolean | show_T | false | Set to true if actual temperature at port is computed |
Connectors
Type | Name | Description |
---|---|---|
replaceable package Medium | Medium in the component | |
FluidPorts_a | ports_a[nPorts] | Fluid connector a (positive design flow direction is from ports_a to port_b) |
FluidPort_b | port_b | Fluid connectors b (positive design flow direction is from ports_a to port_b) |
Modelica definition
Buildings.Templates.Components.Routing.PassThroughFluid
Direct fluid pass-through
Information
This is a model of a direct fluid pass-through used for templating purposes.
Extends from Buildings.Fluid.Interfaces.PartialTwoPort (Partial component with two ports).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Assumptions | |||
Boolean | allowFlowReversal | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
Graphics | |||
IconPipe | icon_pipe | Buildings.Templates.Componen... | Pipe symbol |
Connectors
Type | Name | Description |
---|---|---|
FluidPort_a | port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
Modelica definition
Buildings.Templates.Components.Routing.SingleToMultiple
Single inlet port, multiple outlet ports
Information
This is a model of a one-to-many fluid connector with an optional control volume. It is typically used to represent an inlet manifold or a single pipe diverging into multiple junctions.
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | Modelica.Media.Interfaces.Pa... | Medium in the component | |
Configuration | |||
Integer | nPorts | Number of ports | |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate [kg/s] | |
Dynamics | |||
Nominal condition | |||
Time | tau | 10 | Time constant at nominal flow [s] |
Conservation equations | |||
Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamic... | Type of energy balance: dynamic (3 initialization options) or steady state |
Assumptions | |||
Boolean | allowFlowReversal | true | Set to true to allow flow reversal, false restricts to design direction (port_a -> ports_b) |
Advanced | |||
Diagnostics | |||
Boolean | show_T | false | Set to true if actual temperature at port is computed |
Connectors
Type | Name | Description |
---|---|---|
replaceable package Medium | Medium in the component | |
FluidPort_a | port_a | Fluid connector a (positive design flow direction is from port_a to ports_b) |
FluidPorts_b | ports_b[nPorts] | Fluid connectors b (positive design flow direction is from port_a to ports_b) |