주요 콘텐츠

Shuttle Valve (IL)

R2026b

One-way switching valve in an isothermal liquid system

  • Shuttle Valve (IL) block

Libraries:
Simscape / Fluids / Isothermal Liquid / Valves & Orifices / Directional Control Valves

Description

The Shuttle Valve (IL) block models a one-way pressure control valve or switching component in an isothermal liquid network. Flow through the valve travels from port A or port A1 to port B. When the pressure differential between A and A1, pAA1, is above a specified threshold pressure, the path between ports A and B is open to flow and the port at A1 closes. The path fully changes when the pressure reaches the value of the Pressure at which A-B is fully open parameter. When pAA1 falls below the threshold pressure, the flow inlet switches to port A1.

Mass Flow Rate Equation

Mass is conserved through the valve

m˙A+m˙A1+m˙B=0.

There is no flow between ports A and A1.

The mass flow rate through the valve is

m˙=CdAvalve2ρ¯PRloss(1(AvalveAport)2)Δp[Δp2+Δpcrit2]1/4,

where:

  • Cd is the value of the Discharge coefficient parameter.

  • Avalve is the valve open area, either between ports A and B or ports A1 and B.

  • Aport is the value of the Cross-sectional area at ports A and B parameter.

  • ρ¯ is the average fluid density.

  • Δp is the valve pressure difference. Depending on the flow path through the valve, this is either pApB, pA1pB, or the normalized pressure when switching between the two inlet ports, p^, defined below.

The critical pressure difference, Δpcrit, is the pressure differential associated with the Critical Reynolds number, Recrit, and is also dependent on the flow path through the valve:

Δpcrit=πρ¯8Avalve(νRecritCd)2.

The critical Reynolds number is the flow regime transition point between laminar and turbulent flow.

Pressure loss describes the reduction of pressure in the valve due to a decrease in area, and can change if different valve flow paths have different areas. PRloss is calculated as:

PRloss=1(AvalveAport)2(1Cd2)CdAvalveAport1(AvalveAport)2(1Cd2)+CdAvalveAport.

Pressure recovery describes the positive pressure change in the valve due to an increase in area. If you do not want to capture this increase in pressure, set the Pressure recovery to Off. In this case, PRloss is 1.

The opening area, Avalve, is also impacted by the valve opening dynamics.

Opening Parameterization

The linear parameterization of the valve area depends on the flow path through the valve. The dynamic area is based on a normally closed path between ports A and B,

Avalve,AB =Amax[1+2(1f)(p^1)],

where f is the value of the Leakage factor during transition parameter.

The normalized pressure, p^, is

p^=pAA1popen,A1Bpopen,ABpopen,A1B,

when pAA1 is between the values of the Pressure at which A1-B is fully open and Pressure at which A-B is fully open parameters. The block saturates the normalized pressure between 0 and 1.

If pAA1 is below the value of the Pressure at which A1-B is fully open parameter, p^ is 0.

If pAA1 is above the value of the Pressure at which A-B is fully open parameter, p^ is 1.

When the valve inlet switches from port A to port A1, the valve opening area is:

Avalve,A1B=Amax[12(1f)p^],

The flow path behavior depends on p^:

  • When p^ is 0, Avalve,A1B = Amax

  • When p^ is 0.5, Avalve,A1B = Avalve,AB = f*Amax.

  • When p^ is 1, Avalve,AB = Amax

This figure shows the valve area for both flow paths across pressure values.

Plot of valve flow area versus pressure showing overlapping transitions: blue A–B path ramps from leakage area to maximum, orange A1–B path ramps down from maximum to leakage

When the valve is in a near-open or near-closed position in the linear parameterization, you can maintain numerical robustness in your simulation by adjusting the Smoothing factor parameter. If the Smoothing factor parameter is nonzero, the block smoothly saturates the valve area between 0 and 1. Specifying a nonzero value for the Smoothing factor parameter provides additional numerical stability when the valve area is changing and in the near-closed or near-open position. For more information, see Numerical Smoothing.

Opening Dynamics

When you select Opening dynamics, the block applies a first-order filter to the valve area based on the Opening time constant parameter, τ. The saturated pressure, p^ sat, becomes the dynamic control pressure, p^dyn,sat,

p^˙dyn,sat=p^sat-p^dyn,satτ.

When you select Opening dynamics, the valve does not respond to changes instantaneously. This figure shows an example valve area in response to a step in the valve input pressure with and without opening dynamics:

  • When you clear Opening dynamics, the valve area mirrors the step change in the pressure at the input.

  • When you select Opening dynamics and set Opening time constant to 0.1 s, the valve area asymptotically approaches its limit.

Valve area with and without opening dynamics. Dynamics smooth the valve area

Examples

Ports

Conserving

expand all

Entry port to the valve.

Programmatic Use

Port: A

Entry port to the valve.

Programmatic Use

Port: A1

Exit port from the valve.

Programmatic Use

Port: B

Parameters

expand all

Pressure threshold between ports A and A1, below which the flow path between ports A1 and B is fully open and the flow path between ports A and B is fully closed.

Programmatic Use

Parameter: p_open_A1B

Pressure threshold between ports A and A1, above which the flow path between ports A and B is fully open and the flow path between ports A1 and B is fully closed.

Programmatic Use

Parameter: p_open_AB

Scaling factor that the block applies to the opening area in the middle of the transition region. The value of this parameter must be between the value of ALeak/Amax and 0.5. If you set this parameter to 0.5, the opening area of both orifices is half of the value of the Maximum opening area parameter when the pressure is at the mid point.

Programmatic Use

Parameter: transition_leak_fraction

Maximum open area of the valve. This value is used to determine the normalized valve pressure and the valve opening area during operation.

Programmatic Use

Parameter: area_max

Sum of all gaps when the valve is in the fully closed position. Any area smaller than this value is saturated to the specified leakage area. This contributes to numerical stability by maintaining continuity in the flow.

Programmatic Use

Parameter: area_leak

Areas at the entry and exit ports A, A1, and B, which are used in the pressure-flow rate equation that determines the mass flow rate through the valve.

Programmatic Use

Parameter: area

Correction factor accounting for discharge losses in theoretical flows.

Programmatic Use

Parameter: Cd

Upper Reynolds number limit for laminar flow through the orifice.

Programmatic Use

Parameter: Re_c

Continuous smoothing factor that introduces a layer of gradual change to the flow response when the valve is in near-open or near-closed positions. Set this value to a nonzero value less than one to increase the stability of your simulation in these regimes.

Programmatic Use

Parameter: smoothing_factor

Whether to account for pressure increase when fluid flows from a region of smaller cross-sectional area to a region of larger cross-sectional area.

Programmatic Use

Parameter: pressure_recovery
Values: "true" | "false"

Whether to account for transient effects to the fluid system due to opening the valve. Setting Opening dynamics to On approximates the opening conditions by introducing a first-order lag in the flow response. The Opening time constant also impacts the modeled opening dynamics.

Programmatic Use

Parameter: opening_dynamics
Values: "true" | "false"

Constant that captures the time required for the fluid to reach steady-state conditions when opening or closing the valve from one position to another. This parameter impacts the modeled opening dynamics.

Dependencies

To enable this parameter, set Opening dynamics to On.

Programmatic Use

Parameter: tau

Extended Capabilities

expand all

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

Version History

Introduced in R2020a

expand all