modelPipeAutosize
Pipe model parameterized with pressure drop per pipe length
Extends from Buildings.Fluid.FixedResistances.PressureDrop.
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_nominalis computed based on the nominal flow rate. -
The equation
dp_nominal = fac*dpStraightPipe_nominalis solved at initialization for the hydraulic diameterdh. -
The parameter
dp_nominalis assigned a value that does not need to be computed at initialization. This is required per Modelica specification because the structural parametercomputeFlowResistancedepends ondp_nominaland must be evaluated at compile time.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Length | dh | Hydraulic diameter (assuming a round cross section area) | |
| Real | dp_length_nominal | 250 | Pressure drop per pipe length at nominal flow rate |
| Modelica.Units.SI.Length | length | Length of the pipe | |
| Real | ReC | 4000 | Reynolds number where transition to turbulence starts |
| Modelica.Units.SI.Length | roughness | 2.5e-5 | Absolute roughness of pipe, with a default for a smooth steel pipe (PE100: 7E-6) |
| Real | fac | 2 | Factor to take into account resistance of bends etc., fac=dp_nominal/dpStraightPipe_nominal |
| Modelica.Units.SI.PressureDifference | dpStraightPipe_nominal | Modelica.Fluid.Pipes.BaseClasses.WallFriction.Detailed.pressureLoss_m_flow(m_flow = m_flow_nominal, rho_a = rho_default, rho_b = rho_default, mu_a = mu_default, mu_b = mu_default, length = length, diameter = dh, roughness = roughness, m_flow_small = m_flow_small) | Pressure loss of a straight pipe at m_flow_nominal |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Velocity | v | m_flow/(rho_default*ARound) | Flow velocity (assuming a round cross section area) |
Revisions
-
November 18, 2022, by David Blum:
startattribute for parameterdhchanged to 0.01.
minattribute for parameterdhchanged to 0.001.
This is for issue 2510. -
February 23, 2021, by Antoine Gautier:
First implementation.