Main Content

Resistive Pipe LP

(To be removed) Hydraulic pipeline which accounts for friction losses and port elevations

The Hydraulics (Isothermal) library will be removed in a future release. Use the Isothermal Liquid library instead. (since R2020a)

For more information on updating your models, see Upgrading Hydraulic Models to Use Isothermal Liquid Blocks.

Library

Low-Pressure Blocks

  • Resistive Pipe LP block

Description

The Resistive Pipe LP block models hydraulic pipelines with circular and noncircular cross sections and accounts for resistive property only. In other words, the block is developed with the basic assumption of the steady state fluid momentum conditions. Neither fluid compressibility nor fluid inertia is considered in the model, meaning that features such as water hammer cannot be investigated. If necessary, you can add fluid compressibility, fluid inertia, and other effects to your model using other blocks, thus producing a more comprehensive model.

The end effects are also not considered, assuming that the flow is fully developed along the entire pipe length. To account for local resistances, such as bends, fittings, inlet and outlet losses, and so on, convert the resistances into their equivalent lengths, and then sum up all the resistances to obtain their aggregate length. Then add this length to the pipe geometrical length.

Pressure loss due to friction is computed with the Darcy equation, in which losses are proportional to the flow regime-dependable friction factor and the square of the flow rate. The friction factor in turbulent regime is determined with the Haaland approximation (see [1]). The friction factor during transition from laminar to turbulent regimes is determined with the linear interpolation between extreme points of the regimes. As a result of these assumptions, the tube is simulated according to the following equations:

p=f(L+Leq)DHρ2A2q·|q|+ρ·g(zBzA)

f={Ks/Refor Re<=ReLfL+fTfLReTReL(ReReL)for ReL<Re<ReT1(1.8log10(6.9Re+(r/DH3.7)1.11))2for Re>=ReT

Re=qDHAν

where

pPressure loss along the pipe due to friction
qFlow rate through the pipe
ReReynolds number
ReLMaximum Reynolds number at laminar flow
ReTMinimum Reynolds number at turbulent flow
KsShape factor that characterizes the pipe cross section
fLFriction factor at laminar border
fTFriction factor at turbulent border
APipe cross-sectional area
DHPipe hydraulic diameter
LPipe geometrical length
LeqAggregate equivalent length of local resistances
rHeight of the roughness on the pipe internal surface
νFluid kinematic viscosity
zA, zBElevations of the pipe port A and port B, respectively
gGravity acceleration

The block positive direction is from port A to port B. This means that the flow rate is positive if it flows from A to B, and the pressure loss is determined as p=pApB.

Variables

To set the priority and initial target values for the block variables prior to simulation, use the Initial Targets section in the block dialog box or Property Inspector. For more information, see Set Priority and Initial Target for Block Variables.

Nominal values provide a way to specify the expected magnitude of a variable in a model. Using system scaling based on nominal values increases the simulation robustness. Nominal values can come from different sources, one of which is the Nominal Values section in the block dialog box or Property Inspector. For more information, see Modify Nominal Values for a Block Variable.

Basic Assumptions and Limitations

  • Flow is assumed to be fully developed along the pipe length.

  • Fluid inertia, fluid compressibility, and wall compliance are not taken into account.

Parameters

Basic Parameters Tab

Pipe cross section type

The type of pipe cross section: Circular or Noncircular. For a circular pipe, you specify its internal diameter. For a noncircular pipe, you specify its hydraulic diameter and pipe cross-sectional area. The default value of the parameter is Circular.

Internal diameter

Pipe internal diameter. The parameter is used if Pipe cross section type is set to Circular. The default value is 0.01 m.

Noncircular pipe cross-sectional area

Pipe cross-sectional area. The parameter is used if Pipe cross section type is set to Noncircular. The default value is 1e-4 m^2.

Noncircular pipe hydraulic diameter

Hydraulic diameter of the pipe cross section. The parameter is used if Pipe cross section type is set to Noncircular. The default value is 0.0112 m.

Geometrical shape factor

Used for computing friction factor at laminar flow. The shape of the pipe cross section determines the value. For a pipe with a noncircular cross section, set the factor to an appropriate value, for example, 56 for a square, 96 for concentric annulus, 62 for rectangle (2:1), and so on [1]. The default value is 64, which corresponds to a pipe with a circular cross section.

Pipe length

Pipe geometrical length. The default value is 5 m.

Aggregate equivalent length of local resistances

This parameter represents total equivalent length of all local resistances associated with the pipe. You can account for the pressure loss caused by local resistances, such as bends, fittings, armature, inlet/outlet losses, and so on, by adding to the pipe geometrical length an aggregate equivalent length of all the local resistances. The default value is 1 m.

Internal surface roughness height

Roughness height on the pipe internal surface. The parameter is typically provided in data sheets or manufacturer’s catalogs. The default value is 1.5e-5 m, which corresponds to drawn tubing.

Laminar flow upper margin

Specifies the Reynolds number at which the laminar flow regime is assumed to start converting into turbulent. Mathematically, this is the maximum Reynolds number at fully developed laminar flow. The default value is 2000.

Turbulent flow lower margin

Specifies the Reynolds number at which the turbulent flow regime is assumed to be fully developed. Mathematically, this is the minimum Reynolds number at turbulent flow. The default value is 4000.

Vertical Position Tab

Port A elevation wrt reference plane

The parameter specifies vertical position of the pipe port A with respect to the reference plane. The default value is 0.

Port B elevation wrt reference plane

The parameter specifies vertical position of the pipe port B with respect to the reference plane. The default value is 0.

Gravitational acceleration

Value of the gravitational acceleration constant (g). The block uses this parameter to compute the effects of an elevation gradient between the ports on their pressure differential. The default value is 9.80655 m/s^2.

Restricted Parameters

When your model is in Restricted editing mode, you cannot modify the following parameter:

  • Pipe cross section type

All other block parameters are available for modification. The actual set of modifiable block parameters depends on the value of the Pipe cross section type parameter at the time the model entered Restricted mode.

Global Parameters

Parameters determined by the type of working fluid:

  • Fluid density

  • Fluid kinematic viscosity

Use the Hydraulic Fluid block or the Custom Hydraulic Fluid block to specify the fluid properties.

Ports

The block has the following ports:

A

Hydraulic conserving port associated with the pipe inlet.

B

Hydraulic conserving port associated with the pipe outlet.

References

[1] White, F.M., Viscous Fluid Flow, McGraw-Hill, 1991

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2009a

collapse all

R2023a: To be removed

The Hydraulics (Isothermal) library will be removed in a future release. Use the Isothermal Liquid library instead.

For more information on updating your models, see Upgrading Hydraulic Models to Use Isothermal Liquid Blocks.