Main Content

Gate Valve (TL)

Flow control valve actuated by transverse motion of circular gate

  • Library:
  • Simscape / Fluids / Thermal Liquid / Valves & Orifices / Flow Control Valves

  • Gate Valve (TL) block


The Gate Valve (TL) block represents a flow control valve with a circular opening and a circular gate. The gate moves in a direction orthogonal to the fluid flow. The opening and gate are equal in diameter. The figure shows a schematic of the gate valve in three different positions—closed, partially open, and fully open.

Gate Valve in Different Positions

A smoothing function allows the valve opening area to change smoothly between the fully closed and fully open positions. The smoothing function does this by removing the abrupt opening area changes at the zero and maximum ball positions. The figure shows the effect of smoothing on the valve opening area curve.

Valve Opening Area

The block computes the valve opening area directly from valve geometry parameters using the expression



  • A is the valve opening area.

  • d0 is the valve orifice diameter.

  • ACovered is the portion of the valve orifice area covered by the gate:


  • Δl is the net displacement of the gate center relative to the orifice center.


  • Smin is the Gate position when fully covering orifice parameter specified in the block dialog box.

  • Sd is the gate displacement specified through physical signal input port S.

Numerically-Smoothed Displacement

At the extremes of the gate displacement range, you can maintain numerical robustness in your simulation by adjusting the block Smoothing factor. When the smoothing factor is nonzero, a smoothing function is applied to every calculated displacement, but primarily influences the simulation at the extremes of this range.

The normalized gate displacement is:


where Δlmax is the Valve orifice diameter.

The Smoothing factor, s, is applied to the normalized displacement:


The smoothed displacement is:


Mass Balance

The mass conservation equation in the valve is



  • m˙A is the mass flow rate into the valve through port A.

  • m˙B is the mass flow rate into the valve through port B.

Energy Balance

The energy conservation equation in the valve is



  • ϕA is the energy flow rate into the valve through port A.

  • ϕB is the energy flow rate into the valve through port B.

Momentum Balance

The momentum conservation equation in the valve is



  • pA and pB are the pressures at port A and port B.

  • m˙ is the mass flow rate.

  • m˙cr is the critical mass flow rate:


  • ρAvg is the average liquid density.

  • Cd is the discharge coefficient.

  • S is the valve inlet area.

  • PRLoss is the pressure ratio:



  • A — Thermal liquid conserving port representing valve inlet A

  • B — Thermal liquid conserving port representing valve inlet B

  • S — Physical signal input port for the control member displacement


Parameters Tab

Orifice diameter

Diameter of the valve flow area in the fully open position. The default value is 7e-3 m.

Gate position when fully covering orifice

Gate offset from the zero position. The instantaneous gate displacement is the sum of the gate offset and input signal S. The default value is 0 m.

Leakage area

Aggregate area of all fluid leaks in the valve. The leakage area helps to prevent numerical issues due to isolated fluid network sections. For numerical robustness, set this parameter to a nonzero value. The default value is 1e-12.

Smoothing factor

Portion of the opening-area curve to smooth expressed as a fraction. Smoothing eliminates discontinuities at the minimum and maximum flow valve positions. The smoothing factor must be between 0 and 1. Enter a value of 0 for zero smoothing. Enter a value of 1 for full-curve smoothing. The default value is 0.01.

Cross-sectional area at ports A and B

Flow area at the valve inlets. The inlets are assumed equal in size. The default value is 0.01 m^2.

Discharge coefficient

Semi-empirical parameter commonly used as a measure of valve performance. The discharge coefficient is defined as the ratio of the actual mass flow rate through the valve to its theoretical value.

The block uses this parameter to account for the effects of valve geometry on mass flow rates. Textbooks and valve data sheets are common sources of discharge coefficient values. By definition, all values must be greater than 0 and smaller than 1. The default value is 0.7.

Critical Reynolds number

Reynolds number corresponding to the transition between laminar and turbulent flow regimes. The flow through the valve is assumed laminar below this value and turbulent above it. The appropriate values to use depend on the specific valve geometry. The default value is 12.

Variables Tab

Mass flow rate into port A

Mass flow rate into the component through port A at the start of simulation. The default value is 1 kg/s.

Extended Capabilities

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

Version History

Introduced in R2016a