This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Variable Local Restriction (2P)

Time-varying flow resistance

Library

Two-Phase Fluid/Elements

Description

The Variable Local Restriction (2P) block models the pressure drop due to a time-varying flow resistance such as a valve. Ports A and B represent the restriction inlet and outlet. Port AR sets the time-varying restriction area, specified as a physical signal.

The restriction consists of a contraction followed by a sudden expansion in flow area. The contraction causes the fluid to accelerate and its pressure to drop. The expansion recovers the lost pressure though only in part, as the flow separates from the wall, losing momentum in the process.

Local Restriction Schematic

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 the change in specific total enthalpy is therefore 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 ideal flow velocity is computed 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 ideal mass flow rate through the restriction is computed as:

m˙ideal=m˙ACD,

where:

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

Local Restriction Variables

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νoutSRS)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 block 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.

Variables

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

Parameters

Minimum restriction area

Area normal to the flow path at the restriction aperture when the restriction is in the fully closed state. The area obtained from physical signal AR saturates at this value. Input values smaller than the minimum restriction area are ignored and replaced by the value specified here. The default value of 1e-10 m^2.

Maximum restriction area

Area normal to the flow path at the restriction aperture when the restriction is in the fully open state. The area obtained from physical signal AR saturates at this value. Input values greater than the maximum restriction area are ignored and replaced by the value specified here. The default value is 0.005 m^2.

Cross-sectional area at ports A and B

Area normal to the flow path at the restriction ports. The ports are assumed to be identical in cross-section. The default value, 0.01 m^2, is the same as the restriction aperture area.

Flow discharge coefficient

Ratio of the actual to the theoretical mass flow rate through the restriction. The discharge coefficient is an empirical parameter used to account for non-ideal effects such as those due to restriction geometry. The default value is 0.64.

Laminar flow pressure ratio

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. The pressure drop across the restriction is linear with respect to the mass flow rate if the flow is laminar and quadratic (with respect to the mass flow rate) if the flow is turbulent. The default value is 0.999.

Ports

A pair of two-phase fluid conserving ports labeled A and B represent the restriction inlet and outlet. A physical signal input port labeled AR controls the cross-sectional area of the restriction aperture, located between the restriction inlet and outlet.

Introduced in R2015b