Main Content

Local Restriction (2P)

Restriction in flow area in two-phase fluid network

  • Local Restriction (2P) block

Libraries:
Simscape / Foundation Library / Two-Phase Fluid / Elements

Description

The Local Restriction (2P) block models the pressure drop due to a localized reduction in flow area, such as a valve or an orifice, in a two-phase fluid network.

Ports A and B represent the restriction inlet and outlet. The input physical signal at port AR specifies the restriction area. Alternatively, you can specify a fixed restriction area as a block parameter.

The block icon changes depending on the value of the Restriction type parameter.

Restriction TypeBlock Icon

Variable

Variable Local Restriction (2P) block icon

Fixed

Fixed Local Restriction (2P) block icon

The restriction is adiabatic. It does not exchange heat with the environment.

The restriction consists of a contraction followed by a sudden expansion in flow area. The fluid accelerates during the contraction, which causes the pressure to drop. In the expansion zone, if the Pressure recovery parameter is off, the momentum of the accelerated fluid is lost. If the Pressure recovery parameter is on, the sudden expansion recovers some of the momentum and allows the pressure to rise slightly after the restriction.

Local Restriction Schematic

fluid flow through a local restriction

Mass Balance

The mass balance equation is

m˙A+m˙B=0,

where:

  • m˙A and m˙B are the mass flow rates into the restriction through port A and port B.

Energy Balance

The energy balance equation is

ϕA+ϕB=0,

where ϕA and ϕB are the energy flow rates into the restriction through port A and port B.

The local restriction is assumed to be adiabatic, and therefore, the change in specific total enthalpy is zero. At port A,

uA+pAνA+wA22=uR+pRνR+wR22,

while at port B,

uB+pBνB+wB22=uR+pRνR+wR22,

where:

  • uA, uB, and uR are the specific internal energies at port A, at port B, and the restriction aperture.

  • pA, pB, and pR are the pressures at port A, port B, and the restriction aperture.

  • νA, νB, and νR are the specific volumes at port A, port B, and the restriction aperture.

  • wA, wB, and wR are the ideal flow velocities at port A, port B, and the restriction aperture.

The block computes the ideal flow velocity as

wA=m˙idealνAS

at port A, as

wB=m˙idealνBS

at port B, and as

wR=m˙idealνRSR,

inside the restriction, where:

  • m˙ideal is the ideal mass flow rate through the restriction.

  • S is the flow area at port A and port B.

  • SR is the flow area of the restriction aperture.

The block computes the ideal mass flow rate through the restriction as:

m˙ideal=m˙ACD,

where CD is the flow discharge coefficient for the local restriction.

Local Restriction Variables

schematic representation of variables in a local restriction

Momentum Balance

The change in momentum between the ports reflects in the pressure loss across the restriction. That loss depends on the mass flow rate through the restriction, though the exact dependence varies with flow regime. When the flow is turbulent,

m˙=SR(pApB)2|pApB|νRKT,

where KT is defined as:

KT=(1+SRS)(1νinνRSRS)2SRS(1νoutνRSRS),

in which the subscript in denotes the inlet port and the subscript out the outlet port. Which port serves as the inlet and which serves as the outlet depends on the pressure differential across the restriction. If pressure is greater at port A than at port B, then port A is the inlet; if pressure is greater at port B, then port B is the inlet.

When the flow is laminar,

m˙=SR(pApB)2ΔpThνR(1SRS)2,

where ΔpTh denotes the threshold pressure drop at which the flow begins to smoothly transition between laminar and turbulent,

ΔpTh=(pA+pB2)(1BL),

in which BLam is the Laminar flow pressure ratio parameter. The flow is laminar if the pressure drop from port A to port B is below the threshold value; otherwise, the flow is turbulent.

The pressure at the restriction area, pR likewise depends on the flow regime. When the flow is turbulent:

pR,L=pinνR2(m˙SR)2(1+SRS)(1νinνRSRS).

When the flow is laminar:

pR,L=pA+pB2.

Assumptions and Limitations

  • The restriction is adiabatic. It does not exchange heat with its surroundings.

Ports

Input

expand all

Input physical signal that controls the flow restriction area. The signal saturates when its value is outside the minimum and maximum restriction area limits, specified by the Minimum restriction area and Maximum restriction area parameters.

Dependencies

To enable this port, set the Restriction type parameter to Variable.

Conserving

expand all

Two-phase fluid conserving port associated with the inlet or outlet of the local restriction. The block has no intrinsic directionality.

Two-phase fluid conserving port associated with the inlet or outlet of the local restriction. The block has no intrinsic directionality.

Parameters

expand all

Whether the restriction area can change during simulation:

  • Variable — The input physical signal at port AR specifies the restriction area, which can vary during simulation. The Minimum restriction area and Maximum restriction area parameters specify the lower and upper bounds for the restriction area.

  • Fixed — The restriction area, specified by the Restriction area block parameter value, remains constant during simulation.

Lower bound for the restriction cross-sectional area. You can use this parameter to represent the leakage area. The input signal at port AR saturates at this value to prevent the restriction area from further decreasing.

Dependencies

To enable this parameter, set Restriction type to Variable.

Upper bound for the restriction cross-sectional area. The input signal at port AR saturates at this value to prevent the restriction area from further increasing.

Dependencies

To enable this parameter, set Restriction type to Variable.

Area normal to the flow path at the restriction.

Dependencies

To enable this parameter, set Restriction type to Fixed.

Area normal to the flow path at ports A and B. This area is assumed to be the same for both ports.

The discharge coefficient is a semi-empirical parameter commonly used to characterize the flow capacity of an orifice. This parameter represents the ratio of the actual mass flow rate through the orifice to the ideal mass flow rate.

Ratio of the outlet to the inlet port pressure at which the flow regime is assumed to switch from laminar to turbulent. The prevailing flow regime determines the equations used in simulation. If the flow is laminar, the pressure drop across the restriction is linear with respect to the mass flow rate. If the flow is turbulent, the pressure drop across the restriction is quadratic with respect to the mass flow rate.

Extended Capabilities

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

Version History

Introduced in R2015b

expand all

See Also