Buildings.Experimental.DHC.Examples.Combined.Generation5.Networks.BaseClasses
Package with base classes that are used by multiple models
Information
This package contains base classes that are used to construct the classes in Buildings.Experimental.DHC.Examples.Combined.Generation5.Networks.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Package Content
Name | Description |
---|---|
ConnectionParallelAutosize | Model for connecting an agent to the DHC system |
ConnectionParallelStandard | Model for connecting an agent to the DHC system |
ConnectionSeriesAutosize | Model for connecting an agent to the DHC system |
ConnectionSeriesStandard | Model for connecting an agent to the DHC system |
PipeAutosize | Pipe model parameterized with pressure drop per pipe length |
PipeStandard | Pipe model parameterized with hydraulic diameter |
Buildings.Experimental.DHC.Examples.Combined.Generation5.Networks.BaseClasses.ConnectionParallelAutosize
Model for connecting an agent to the DHC system
Information
This model represents the supply and return lines to connect an agent (e.g., an energy transfer station) to a two-pipe main distribution system. The instances of the pipe model are autosized based on the pressure drop per pipe length at nominal flow rate.
Extends from ConnectionParallelStandard (Model for connecting an agent to the DHC system).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium model | |
replaceable model Model_pipDis | PipeAutosize (roughness=7e-6... | ||
replaceable model Model_pipCon | PipeAutosize (roughness=2.5e... | ||
Boolean | show_entFlo | false | Set to true to output enthalpy flow rate difference |
Length | lDis | Length of the distribution pipe before the connection [m] | |
Length | lCon | Length of the connection pipe (supply only, not counting return line) [m] | |
Length | dhDis | Hydraulic diameter of the distribution pipe [m] | |
Length | dhCon | Hydraulic diameter of the connection pipe [m] | |
Real | dp_length_nominal | 250 | Pressure drop per pipe length at nominal flow rate [Pa/m] |
Length | dhDisRet | Hydraulic diameter of the return distribution pipe [m] | |
Nominal condition | |||
MassFlowRate | mDis_flow_nominal | Nominal mass flow rate in the distribution line [kg/s] | |
MassFlowRate | mCon_flow_nominal | Nominal mass flow rate in the connection line [kg/s] | |
Assumptions | |||
Boolean | allowFlowReversal | false | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
Dynamics | |||
Equations | |||
Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamic... | Type of energy balance: dynamic (3 initialization options) or steady state |
Nominal condition | |||
Time | tau | 5*60 | Time constant at nominal flow for dynamic energy and momentum balance [s] |
Connectors
Type | Name | Description |
---|---|---|
replaceable model Model_pipDis | ||
replaceable model Model_pipCon | ||
FluidPort_a | port_aDisSup | Distribution supply inlet port |
FluidPort_b | port_bDisSup | Distribution supply outlet port |
FluidPort_a | port_aDisRet | Distribution return inlet port |
FluidPort_b | port_bDisRet | Distribution return outlet port |
FluidPort_b | port_bCon | Connection supply port |
FluidPort_a | port_aCon | Connection return port |
output RealOutput | mCon_flow | Connection supply mass flow rate [kg/s] |
output RealOutput | dp | Pressure drop accross the connection (measured) [Pa] |
output RealOutput | dH_flow | Difference in enthalpy flow rate between connection supply and return [W] |
Modelica definition
Buildings.Experimental.DHC.Examples.Combined.Generation5.Networks.BaseClasses.ConnectionParallelStandard
Model for connecting an agent to the DHC system
Information
This model represents the supply and return lines to connect an agent (e.g., an energy transfer station) to a two-pipe main distribution system. The instances of the pipe model are parameterized with the hydraulic diameter.
Extends from DHC.Networks.BaseClasses.PartialConnection2Pipe (Partial model for connecting an agent to a two-pipe distribution network).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium model | |
replaceable model Model_pipDis | PipeStandard (roughness=7e-6... | ||
replaceable model Model_pipCon | PipeStandard (roughness=2.5e... | ||
Boolean | show_entFlo | false | Set to true to output enthalpy flow rate difference |
Length | lDis | Length of the distribution pipe before the connection [m] | |
Length | lCon | Length of the connection pipe (supply only, not counting return line) [m] | |
Length | dhDis | Hydraulic diameter of the distribution pipe [m] | |
Length | dhCon | Hydraulic diameter of the connection pipe [m] | |
Nominal condition | |||
MassFlowRate | mDis_flow_nominal | Nominal mass flow rate in the distribution line [kg/s] | |
MassFlowRate | mCon_flow_nominal | Nominal mass flow rate in the connection line [kg/s] | |
Assumptions | |||
Boolean | allowFlowReversal | false | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
Dynamics | |||
Equations | |||
Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamic... | Type of energy balance: dynamic (3 initialization options) or steady state |
Nominal condition | |||
Time | tau | 5*60 | Time constant at nominal flow for dynamic energy and momentum balance [s] |
Connectors
Type | Name | Description |
---|---|---|
replaceable model Model_pipDis | ||
replaceable model Model_pipCon | ||
FluidPort_a | port_aDisSup | Distribution supply inlet port |
FluidPort_b | port_bDisSup | Distribution supply outlet port |
FluidPort_a | port_aDisRet | Distribution return inlet port |
FluidPort_b | port_bDisRet | Distribution return outlet port |
FluidPort_b | port_bCon | Connection supply port |
FluidPort_a | port_aCon | Connection return port |
output RealOutput | mCon_flow | Connection supply mass flow rate [kg/s] |
output RealOutput | dp | Pressure drop accross the connection (measured) [Pa] |
output RealOutput | dH_flow | Difference in enthalpy flow rate between connection supply and return [W] |
Modelica definition
Buildings.Experimental.DHC.Examples.Combined.Generation5.Networks.BaseClasses.ConnectionSeriesAutosize
Model for connecting an agent to the DHC system
Information
This model represents the supply and return lines to connect an agent (e.g., an energy transfer station) to a one-pipe main distribution system. The instances of the pipe model are autosized based on the pressure drop per pipe length at nominal flow rate.
Extends from ConnectionSeriesStandard (Model for connecting an agent to the DHC system).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium model | |
replaceable model Model_pipDis | PipeAutosize (roughness=7e-6... | ||
replaceable model Model_pipCon | PipeAutosize (roughness=2.5e... | ||
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 |
MassFlowRate | mDis_flow_nominal | Nominal mass flow rate in the distribution line [kg/s] | |
MassFlowRate | mCon_flow_nominal | Nominal mass flow rate in the connection line [kg/s] | |
Length | lDis | Length of the distribution pipe before the connection [m] | |
Length | lCon | Length of the connection pipe (supply only, not counting return line) [m] | |
Length | dhDis | Hydraulic diameter of the distribution pipe [m] | |
Length | dhCon | Hydraulic diameter of the connection pipe [m] | |
Real | dp_length_nominal | 250 | Pressure drop per pipe length at nominal flow rate [Pa/m] |
Assumptions | |||
Boolean | allowFlowReversal | false | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
Dynamics | |||
Equations | |||
Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamic... | Type of energy balance: dynamic (3 initialization options) or steady state |
Nominal condition | |||
Time | tau | 5*60 | Time constant at nominal flow for dynamic energy and momentum balance [s] |
Connectors
Type | Name | Description |
---|---|---|
replaceable model Model_pipDis | ||
replaceable model Model_pipCon | ||
FluidPort_a | port_aDis | Distribution inlet port |
FluidPort_b | port_bDis | Distribution outlet port |
FluidPort_a | port_aCon | Connection return port |
FluidPort_b | port_bCon | Connection supply port |
output RealOutput | mCon_flow | Connection supply mass flow rate (measured) [kg/s] |
output RealOutput | dH_flow | Difference in enthalpy flow rate between connection supply and return [W] |
output RealOutput | mByp_flow | Bypass mass flow rate [kg/s] |
output RealOutput | TOut | Temperature in distribution line at connection outlet [K] |
Modelica definition
Buildings.Experimental.DHC.Examples.Combined.Generation5.Networks.BaseClasses.ConnectionSeriesStandard
Model for connecting an agent to the DHC system
Information
This model represents the supply and return lines to connect an agent (e.g., an energy transfer station) to a one-pipe main distribution system. The instances of the pipe model are parameterized with the hydraulic diameter.
Extends from DHC.Networks.BaseClasses.PartialConnection1Pipe (Partial model for connecting an agent to a one-pipe distribution network).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium model | |
replaceable model Model_pipDis | PipeStandard (roughness=7e-6... | ||
replaceable model Model_pipCon | PipeStandard (roughness=2.5e... | ||
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 |
MassFlowRate | mDis_flow_nominal | Nominal mass flow rate in the distribution line [kg/s] | |
MassFlowRate | mCon_flow_nominal | Nominal mass flow rate in the connection line [kg/s] | |
Length | lDis | Length of the distribution pipe before the connection [m] | |
Length | lCon | Length of the connection pipe (supply only, not counting return line) [m] | |
Length | dhDis | Hydraulic diameter of the distribution pipe [m] | |
Length | dhCon | Hydraulic diameter of the connection pipe [m] | |
Assumptions | |||
Boolean | allowFlowReversal | false | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
Dynamics | |||
Equations | |||
Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamic... | Type of energy balance: dynamic (3 initialization options) or steady state |
Nominal condition | |||
Time | tau | 5*60 | Time constant at nominal flow for dynamic energy and momentum balance [s] |
Connectors
Type | Name | Description |
---|---|---|
replaceable model Model_pipDis | ||
replaceable model Model_pipCon | ||
FluidPort_a | port_aDis | Distribution inlet port |
FluidPort_b | port_bDis | Distribution outlet port |
FluidPort_a | port_aCon | Connection return port |
FluidPort_b | port_bCon | Connection supply port |
output RealOutput | mCon_flow | Connection supply mass flow rate (measured) [kg/s] |
output RealOutput | dH_flow | Difference in enthalpy flow rate between connection supply and return [W] |
output RealOutput | mByp_flow | Bypass mass flow rate [kg/s] |
output RealOutput | TOut | Temperature in distribution line at connection outlet [K] |
Modelica definition
Buildings.Experimental.DHC.Examples.Combined.Generation5.Networks.BaseClasses.PipeAutosize
Pipe model parameterized with pressure drop per pipe length
Information
This model is similar to Buildings.Fluid.FixedResistances.HydraulicDiameter except for the modifications below which allow to use this model for computing the hydraulic diameter at initialization, based on the pressure drop per pipe length at nominal flow rate.
-
The parameter
v_nominal
is computed based on the nominal flow rate. -
The equation
dp_nominal = fac*dpStraightPipe_nominal
is solved at initialization for the hydraulic diameterdh
. -
The parameter
dp_nominal
is assigned a value that does not need to be computed at initialization. This is required per Modelica specification because the structural parametercomputeFlowResistance
depends ondp_nominal
and must be evaluated at compile time.
Extends from Buildings.Fluid.FixedResistances.PressureDrop (Fixed flow resistance with dp and m_flow as parameter).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Length | dh | Hydraulic diameter (assuming a round cross section area) [m] | |
Real | dp_length_nominal | 250 | Pressure drop per pipe length at nominal flow rate [Pa/m] |
Length | length | Length of the pipe [m] | |
Real | ReC | 4000 | Reynolds number where transition to turbulent starts |
Length | roughness | 2.5e-5 | Absolute roughness of pipe, with a default for a smooth steel pipe (PE100: 7E-6) [m] |
Real | fac | 2 | Factor to take into account resistance of bends etc., fac=dp_nominal/dpStraightPipe_nominal |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate [kg/s] | |
PressureDifference | dp_nominal | dp_length_nominal*length | Pressure drop at nominal mass flow rate [Pa] |
Velocity | v_nominal | m_flow_nominal/(rho_default*... | Velocity at m_flow_nominal (used to compute default value for hydraulic diameter dh) [m/s] |
Transition to laminar | |||
Real | deltaM | eta_default*dh/4*Modelica.Co... | Fraction of nominal mass flow rate where transition to turbulent occurs |
Assumptions | |||
Boolean | allowFlowReversal | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
Advanced | |||
Diagnostics | |||
Boolean | show_T | false | = true, if actual temperature at port is computed |
Boolean | from_dp | false | = true, use m_flow = f(dp) else dp = f(m_flow) |
Boolean | linearized | false | = true, use linear relation between m_flow and dp for any flow rate |
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.Experimental.DHC.Examples.Combined.Generation5.Networks.BaseClasses.PipeStandard
Pipe model parameterized with hydraulic diameter
Information
This model is similar to Buildings.Fluid.FixedResistances.HydraulicDiameter except that a binding equation is provided to compute the nominal fluid velocity from the hydraulic diameter (as opposed to the hydraulic diameter being computed from the nominal fluid velocity in the original model).
Extends from Buildings.Fluid.FixedResistances.HydraulicDiameter (Fixed flow resistance with hydraulic diameter and m_flow as parameter).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Length | dh | sqrt(4*m_flow_nominal/rho_de... | Hydraulic diameter (assuming a round cross section area) [m] |
Length | length | Length of the pipe [m] | |
Real | ReC | 4000 | Reynolds number where transition to turbulent starts |
Length | roughness | 2.5e-5 | Absolute roughness of pipe, with a default for a smooth steel pipe (dummy if use_roughness = false) [m] |
Real | fac | 2 | Factor to take into account resistance of bends etc., fac=dp_nominal/dpStraightPipe_nominal |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate [kg/s] | |
Velocity | v_nominal | m_flow_nominal*4/(rho_defaul... | Velocity at m_flow_nominal (used to compute default value for hydraulic diameter dh) [m/s] |
Assumptions | |||
Boolean | allowFlowReversal | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
Advanced | |||
Diagnostics | |||
Boolean | show_T | false | = true, if actual temperature at port is computed |
Boolean | from_dp | false | = true, use m_flow = f(dp) else dp = f(m_flow) |
Boolean | linearized | false | = true, use linear relation between m_flow and dp for any flow rate |
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) |