# Ball Valve (IL)

**Libraries:**

Simscape /
Fluids /
Isothermal Liquid /
Valves & Orifices /
Flow Control Valves

## Description

The Ball Valve (IL) block represents a ball valve in an isothermal liquid network. A ball valve consists of a ball with a bore that can pivot inside of a valve body. When the valve is open, the bore fully overlaps with the valve body port. As the valve shuts, the ball rotates and reduces the amount of overlap, thereby reducing the effective area of the orifice. Ball valves are common for flow isolation purposes because they can securely shut off flow for many cycles. Ball valves are less common in applications where precise throttling is necessary.

You can parameterize the block analytically or by using tabulated data. When you set
**Ball valve parameterization** to ```
Area of overlapping
circles
```

, the block considers the area of the overlap between the valve
port and the ball bore as the opening area such that

$$\begin{array}{l}{A}_{open}=\mathrm{sin}\left(\phi \right){R}_{bore}^{2}\left[{\mathrm{cos}}^{-1}\left({\lambda}_{bore}\right)-{\lambda}_{bore}\sqrt{1-{\lambda}_{bore}}\right]+{R}_{port}^{2}\left[{\mathrm{cos}}^{-1}\left({\lambda}_{port}\right)-{\lambda}_{port}\sqrt{1-{\lambda}_{port}}\right]\\ {\lambda}_{bore}=\frac{{R}_{bore}^{2}-{R}_{port}^{2}+{l}^{2}}{2{R}_{bore}l}\\ {\lambda}_{port}=\frac{{R}_{port}^{2}-{R}_{bore}^{2}+{l}^{2}}{2{R}_{port}l}\end{array}$$

where:

*R*and_{port}*R*are the radii of the valve port and the ball bore, respectively._{bore}*l*is the displacement of the bore center from the valve port center.*φ*is the rotation of the ball valve given by the physical signal**S**. The valve is fully shut at 0 rad and fully open at π/2 rad.

### Mass Flow Rate

The block calculates flow through the valve using the pressure-area relationship for orifices such that

$$\dot{m}={C}_{d}A\sqrt{2\overline{\rho}}\frac{\Delta p}{{\left(\Delta {p}^{2}+\Delta {p}_{crit}^{2}\right)}^{{\scriptscriptstyle \raisebox{1ex}{$1$}\!\left/ \!\raisebox{-1ex}{$4$}\right.}}},$$

where:

*C*is the discharge coefficient._{d}$$\overline{\rho}$$ is the average fluid density.

*A*is the area open to flow, where*A*=*A*+_{open}*A*, and_{leak}*A*is the_{leak}**Leakage area**parameter.*Δp*is the critical pressure differential associated with the critical Reynolds number,_{crit}*Re*._{crit}

The block calculates *Δp _{crit}* as

$$\Delta {p}_{crit}=\frac{\pi \overline{\rho}}{8A}{\left(\frac{vR{e}_{crit}}{{C}_{d}}\right)}^{2}.$$

When you set **Flow coefficient
parameterization** to ```
Cd coefficient and
area
```

, you can specify *C _{d}*
using the

**Discharge coefficient (Cd)**parameter. When you set

**Flow coefficient parameterization**to

```
Cv
coefficient (USCS)
```

, the block calculates
*C*as

_{d}$${C}_{d}=\frac{{C}_{v}}{A}\sqrt{\frac{{\rho}_{water,60\xb0\text{F}}}{2\Delta {p}_{{C}_{v}}}},$$

where *C _{v}* is the

**Maximum valve flow coefficient (Cv)**parameter. When you set

**Flow coefficient parameterization**to

```
Kv
coefficient (SI)
```

, the block uses$${C}_{d}=\frac{{K}_{v}}{A}\sqrt{\frac{{\rho}_{water,15\xb0\text{C}}}{2\Delta {p}_{{K}_{v}}}},$$

where *K _{v}* is the

**Maximum valve flow factor (Kv)**parameter. In either equation,

*Δp*is 1 psi and

_{Cv}*Δp*is 1 bar.

_{Kv}## Ports

### Input

### Conserving

## Parameters

## Extended Capabilities

## Version History

**Introduced in R2022b**