Different variants for pressure drops due to pipe wall friction
This package provides functions to compute pressure losses due to wall friction in a pipe. Every correlation is defined by a package that is derived by inheritance from the package WallFriction.PartialWallFriction. The details of the underlying pipe wall friction model are described in the UsersGuide. Basically, different variants of the equation
dp = λ(Re,D)*(L/D)*ρ*v*|v|/2
are used, where the friction loss factor λ is shown in the next figure:
Extends from Modelica.Icons.Package (Icon for standard packages).
Name | Description |
---|---|
PartialWallFriction | Partial wall friction characteristic (base package of all wall friction characteristics) |
NoFriction | No pipe wall friction, no static head |
Laminar | Pipe wall friction for laminar flow in circular tubes (linear correlation) |
QuadraticTurbulent | Pipe wall friction for turbulent flow in circular tubes (simple characteristic, mu not used) |
LaminarAndQuadraticTurbulent | Pipe wall friction for laminar and turbulent flow in circular tubes (simple characteristic) |
Detailed | Pipe wall friction for laminar and turbulent flow (detailed characteristic) |
TestWallFrictionAndGravity | Pressure loss in pipe due to wall friction and gravity (only for test purposes; if needed use Pipes.StaticPipe instead) |
Pressure loss in pipe due to wall friction and gravity (only for test purposes; if needed use Pipes.StaticPipe instead)
This model describes pressure losses due to wall friction in a pipe and due to gravity. It is assumed that no mass or energy is stored in the pipe. Correlations of different complexity and validity can be selected via the replaceable package WallFriction (see parameter menu below). The details of the pipe wall friction model are described in the UsersGuide. Basically, different variants of the equation
dp = λ(Re,D)*(L/D)*ρ*v*|v|/2
are used, where the friction loss factor λ is shown in the next figure:
By default, the correlations are computed with media data at the actual time instant. In order to reduce non-linear equation systems, parameter use_nominal provides the option to compute the correlations with constant media values at the desired operating point. This might speed-up the simulation and/or might give a more robust simulation.
Extends from Modelica.Fluid.Interfaces.PartialTwoPortTransport (Partial element transporting fluid between two ports without storage of mass or energy).
Name | Description |
---|---|
replaceable package Medium | Medium in the component |
replaceable package WallFriction | Characteristic of wall friction |
length | Length of pipe [m] |
diameter | Inner (hydraulic) diameter of pipe [m] |
crossArea | Inner cross section area [m2] |
height_ab | Height(port_b) - Height(port_a) [m] |
roughness | Absolute roughness of pipe (default = smooth steel pipe) [m] |
use_nominal | = true, if mu_nominal and rho_nominal are used, otherwise computed from medium |
mu_nominal | Nominal dynamic viscosity (e.g., mu_liquidWater = 1e-3, mu_air = 1.8e-5) [Pa.s] |
rho_nominal | Nominal density (e.g., rho_liquidWater = 995, rho_air = 1.2) [kg/m3] |
Nominal operating point | |
m_flow_nominal | Nominal mass flow rate [kg/s] |
Assumptions | |
allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
Advanced | |
dp_start | Guess value of dp = port_a.p - port_b.p [Pa] |
m_flow_start | Guess value of m_flow = port_a.m_flow [kg/s] |
m_flow_small | Small mass flow rate for regularization of zero flow [kg/s] |
show_Re | = true, if Reynolds number is included for plotting |
from_dp | = true, use m_flow = f(dp), otherwise dp = f(m_flow) |
Diagnostics | |
show_T | = true, if temperatures at port_a and port_b are computed |
show_V_flow | = true, if volume flow rate at inflowing port is computed |
Name | Description |
---|---|
port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
replaceable package WallFriction | Characteristic of wall friction |