Engee documentation

Ball Valve (G)

A ball valve in the gas network.

blockType: EngeeFluids.Gas.Valves.FlowControl.Ball

Path in the library:

/Physical Modeling/Fluids/Gas/Valves & Orifices/Flow Control Valves/Ball Valve (G)

Description

Block Ball Valve (G) It is a ball valve in a gas network. A ball valve consists of a ball with a hole that can rotate inside the valve body. When the valve is open, the opening completely coincides with the inlet and outlet of the faucet. When the valve closes, the ball rotates and reduces the amount of overlap, thereby reducing the effective opening area. Ball valves are often used to shut off the flow because they can reliably shut off the flow for many cycles. Ball valves are less common in cases where precise throttling is necessary. The physical signal on the S port controls the rotation of the ball.

Parameterization of the hole

The calculation of the local resistance throughput depends on the value of the Valve parametrization parameter:

  • `Cv flow coefficient' — flow coefficient determines the dependence of throughput on pressure drop;

  • `Kv flow coefficient' — flow coefficient determines the dependence of throughput on pressure drop, ;

  • Sonic conduction — steady—state acoustic conduction determines the throughput at critical flow, a condition in which the flow velocity is equal to the local speed of sound. The flow becomes critical when the ratio of outlet pressure to inlet pressure reaches a value called the critical pressure ratio.;

  • `Orifice area' — the area of the hole determines the throughput.

Opening Square

The block calculates the opening area of the ball valve during simulation based on the input data of port S. The calculation of the opening area depends on the Opening characteristic parameter.

The area of overlapping circles

If the Opening characteristic parameter is set to Area of overlapping circles, the block calculates the valve opening area, assuming that the valve opening and the ball channel are overlapping circles. The opening area is saturated when the input signal from the S port goes beyond the range from 0 rad to π/2 rad.

The block calculates the opening area as:








where

  • and — the radii of the valve opening and the hole in the ball, respectively;

  • — displacement of the center of the hole relative to the center of the valve port;

  • — rotation of the ball valve, set by a signal from port S. The valve is fully closed at 0 rad and fully open at π/2 rad.

Table area

If the Opening characteristic parameter is set to `Tabulated', the block interpolates the valve opening from the Area vector, Cv flow coefficient vector, Kv flow coefficient vector or Sonic conduction vector parameters. The elements in these vectors correspond to the elements in the Ball rotation vector parameter. The block interpolates between data points using linear interpolation and uses the closest extrapolation for points beyond the boundaries of the table.

The mass flow equation

The block equations depend on the Valve parametrization parameter.

If you set the Valve parametrization parameter to Cv flow coefficient, then the mass flow rate is, will be defined as

where

  • — the value of the parameter Maximum Cv flow coefficient;

  • — valve opening area;

  • — maximum valve area when the valve is fully open;

  • — a constant equal to 27.3 for mass flow rate in kg/hour, pressure in bar and density in kg/m3^;

  • — expansion coefficient;

  • — inlet pressure;

  • — outlet pressure;

  • — density at the entrance.

The expansion coefficient is defined as:

where

  • — the ratio of the adiabatic index to 1.4;

  • — the value of the xT pressure differential ratio factor at choked flow parameter.

When is the pressure ratio exceeds the value of the parameter Laminar flow pressure ratio, , there is a smooth transition to using the linearized equation

where

When is the pressure ratio falls lower , the flow becomes critical, and the equation is used

If the Valve parametrization parameter is set to Kv flow coefficient, the block uses the same equations, but replaces on using a relationship . For more information about the mass flow equations when the Valve parametrization parameter is set to Kv flow coefficient or Cv flow coefficient, see [2] and [3].

If the Valve parametrization parameter is set to Sonic conduction, then the mass flow rate is defined as

where

  • — the value of the parameter Maximum sonic conductivity;

  • — critical pressure ratio;

  • — the value of the Subsonic index parameter;

  • — the value of the ISO reference temperature parameter;

  • — the value of the ISO reference density parameter;

  • — temperature at the entrance.

When is the pressure ratio exceeds the value of the parameter Laminar flow pressure ratio, , there is a smooth transition to using the linearized equation

When is the pressure ratio falls below the critical pressure ratio , the flow becomes critical, and the equation is used

For more information about the mass flow equations, when the Valve parametrization parameter is set to Sonic conductivity, see [1].

If the Valve parametrization parameter is set to Orifice area based on geometry, then the mass flow rate is defined as

where

  • — valve opening area;

  • — value of the parameter Cross-sectional area at ports A and B;

  • — the value of the Discharge coefficient parameter;

  • — the adiabatic index.

When is the pressure ratio exceeds the value of the parameter Laminar flow pressure ratio, , there is a smooth transition to using the linearized equation

When is the pressure ratio falls lower , the flow becomes critical, and the equation is used


For more information about the mass flow equations, when the Valve parametrization parameter is set to `Orifice area based on geometry', see [4].

Conservation of mass

It is assumed that the volume and mass of the liquid inside the component are very small, and these values are not taken into account. According to the principle of conservation of mass, the mass flow rate of a liquid entering through one port is equal to the flow rate of a liquid exiting through another port:

where It is defined as the mass flow rate entering the valve through the port indicated by the subscript A or B.

Energy conservation

The modeled component is adiabatic. There is no heat exchange between the liquid and the wall that surrounds it. The liquid does not perform any work when moving from the inlet to the outlet. Energy can only be transferred by convection through ports A and B. According to the principle of energy conservation, the sum of energy flows in ports is always zero:

where — this is the flow of energy entering the valve through ports A or B.

Assumptions and limitations

  • The Sonic conduction value of the Valve parameterization parameter is intended for pneumatic systems. If this parameter is used for gases other than air, it may be necessary to adjust the acoustic conductivity value by the square root of the relative density.

  • The equation for parameterization of the Orifice area based on geometry has lower accuracy for gases that are far from ideal.

  • This block does not simulate supersonic flow.

Ports

Conserving

# A — gas inlet
gas

Details

Non-directional port, corresponds to valve port A.

Program usage name

port_a

# B — gas outlet
gas

Details

Non-directional port, corresponds to valve port B.

Program usage name

port_b

Input

# S — valve position, rad
scalar

Details

An input port that determines the degree of opening. The port is fully closed at 0 and fully open at π/2.

Data types

Float64.

Complex numbers support

No

Parameters

Parameters

# Valve parameterization — ball valve parameterization
Orifice area based on geometry | Cv flow coefficient | Kv flow coefficient | Sonic conductance

Details

The mass flow calculation method is based on:

  • Cv flow coefficient - flow coefficient ;

  • Kv flow coefficient - flow coefficient , which is defined as ;

  • Sonic conductance - steady-state acoustic conductance;

  • Orifice area based on geometry - orifice area.

Values

Orifice area based on geometry | Cv flow coefficient | Kv flow coefficient | Sonic conductance

Default value

Orifice area based on geometry

Program usage name

valve_parameterization

Evaluatable

No

# Opening characteristic — type of capacity characteristic
Area of overlapping circles | Tabulated data

Details

Method of converting the control signal on the S port to the selected bandwidth measure.

Values

Area of overlapping circles | Tabulated data

Default value

Area of overlapping circles

Program usage name

opening_characteristic

Evaluatable

No

# Discharge coefficient (Cd) — flow coefficient

Details

The correction factor is the ratio of the actual mass flow rate to the theoretical mass flow rate through the valve.

Dependencies

To use this parameter, set the Valve parameterization parameter to `Orifice area based on geometry'.

Default value

0.64

Program usage name

C_d

Evaluatable

Yes

# Area vector — vector of area values for a given ball rotation
m^2 | cm^2 | ft^2 | in^2 | km^2 | mi^2 | mm^2 | um^2 | yd^2

Details

The flow area for a given ball rotation. Each element of the vector is related to the elements of the vector from the Ball rotation vector parameter. The first element corresponds to valve leakage and must be non-zero.

Dependencies

To use this parameter, set Valve parameterization to `Orifice area based on geometry' and Opening characteristic to `Tabulated data'.

Units

m^2 | cm^2 | ft^2 | in^2 | km^2 | mi^2 | mm^2 | um^2 | yd^2

Default value

[1e-10, 45.0, 90.0, 135.0, 180.0, 225.0, 270.0, 315.0, 360.0, 405.0, 450.0] mm^2

Program usage name

area_vector

Evaluatable

Yes

# Maximum Cv flow coefficient — flow coefficient corresponding to the maximum orifice area

Details

Flow coefficient value , when the value of the control signal at port S is 1 and the orifice area is maximum.

Dependencies

To use this parameter, specify Cv flow coefficient for Valve parameterization and Area of overlapping circles for Opening characteristic.

Default value

4.0

Program usage name

C_v_max

Evaluatable

Yes

# Cv flow coefficient vector — vector of flow coefficient values

Details

Flow coefficient vector . Each coefficient corresponds to an element in the Ball rotation vector. This parameter measures the degree to which the gas passes through the resistive element under the effect of the pressure difference. The size of the vector must be the same as the Ball rotation vector.

Dependencies

To use this parameter, set the Valve parameterization to `Cv flow coefficient' and the Opening characteristic to `Tabulated data'.

Default value

[1e-6, 0.0725, 0.1437, 0.2375, 0.35, 0.5375, 0.875, 1.3125, 2.125, 3.25, 4.00]

Program usage name

C_v_vector

Evaluatable

Yes

# Ball rotation vector — ball rotation
deg | rad | rev | mrad

Details

The ball rotation for a given flow capacity or area. The elements of this vector must relate to the elements of the Valve flow coefficient (Cv) vector, the Valve flow factor (Kv) vector, or the Area vector.

Dependencies

To use this parameter, set the Opening characteristic parameter to `Tabulated' and the Valve parameterization parameter to `Cv flow coefficient'.

Units

deg | rad | rev | mrad

Default value

pi / 2.0 * [0.0:0.1:1.0…​] rad

Program usage name

phi_vector_C_v

Evaluatable

Yes

# Maximum Kv flow coefficient — flow coefficient corresponding to the maximum orifice area

Details

Flow coefficient value , when the value of the control signal at port S is 1 and the orifice area is maximum.

Dependencies

To use this parameter, specify Kv flow coefficient for Valve parameterization and Area of overlapping circles for Opening characteristic.

Default value

3.6

Program usage name

K_v_max

Evaluatable

Yes

# Kv flow coefficient vector — vector of flow coefficient values

Details

Flow coefficient vector . Each coefficient corresponds to an element in the Ball rotation vector. This parameter measures the degree to which the gas passes through the resistive element under the effect of the pressure difference. The size of the vector should be the same as the Ball rotation vector. The values should be listed in ascending order.

Dependencies

To use this parameter, specify Kv flow coefficient for Valve parameterization and Tabulated data for Opening characteristic.

Default value

[1e-6, 0.0653, 0.1293, 0.2137, 0.3150, 0.4838, 0.7875, 1.1813, 1.8381, 2.8112, 3.6]

Program usage name

K_v_vector

Evaluatable

Yes

# Ball rotation vector — ball rotation
deg | rad | rev | mrad

Details

The ball rotation for a given flow capacity or area. The elements of this vector must relate to the elements of the Valve flow coefficient (Cv) vector, the Valve flow factor (Kv) vector, or the Area vector.

Dependencies

To use this parameter, specify `Tabulated' for Opening characteristic and `Kv flow coefficient' for Valve parameterization.

Units

deg | rad | rev | mrad

Default value

pi / 2.0 * [0.0:0.1:1.0…​] rad

Program usage name

phi_vector_K_v

Evaluatable

Yes

# xT pressure differential ratio factor at choked flow — critical differential pressure ratio

Details

The ratio between the inlet pressure and the outlet pressure , defined as , at which the flow becomes critical. If this value is not known, it can be found in Table 2 in ISA-75.01.01 [3]. By default the value 0.7 is suitable for many valves.

Dependencies

To use this parameter, set the Valve parameterization parameter to Cv flow coefficient.

Default value

0.7

Program usage name

delta_p_ratio_C_v

Evaluatable

Yes

# xT pressure differential ratio factor at choked flow — critical differential pressure ratio

Details

The ratio between the inlet pressure and the outlet pressure , defined as , at which the flow becomes critical. If this value is not known, it can be found in Table 2 in ISA-75.01.01 3. By default the value 0.7 is suitable for many valves.

Dependencies

To use this parameter, set the Valve parameterization parameter to Kv flow coefficient.

Default value

0.7

Program usage name

delta_p_ratio_K_v

Evaluatable

Yes

# Maximum sonic conductance — acoustic conductivity corresponding to the maximum aperture area
l/(bar*s) | gal/(min*psi) | m^3/(Pa*s)

Details

The value of acoustic conductivity when the orifice cross-sectional area is maximised.

Dependencies

To use this parameter, set the Valve parameterization to Sonic conductance and the Opening characteristic to Area of overlapping circles.

Units

l/(bar*s) | gal/(min*psi) | m^3/(Pa*s)

Default value

12.0 l/(bar*s)

Program usage name

C_max

Evaluatable

Yes

# Critical pressure ratio — critical pressure ratio

Details

The ratio of pressures at which the flow becomes critical and the flow velocity reaches a maximum determined by the local speed of sound. The ratio between the outlet pressure and the inlet pressure : .

Dependencies

To use this parameter, set the Valve parameterization to Sonic conductance and the Opening characteristic to Area of overlapping circles.

Default value

0.3

Program usage name

B_critical_linear

Evaluatable

Yes

# Sonic conductance vector — vector of acoustic conductivity values
l/(bar*s) | gal/(min*psi) | m^3/(Pa*s)

Details

A vector of acoustic conductivity values within a resistive element. The values must be specified in ascending order. Each conductivity corresponds to an element in the Ball rotation vector parameter. The dimensionality of the vector corresponds to the dimensionality of the Ball rotation vector.

Dependencies

To use this parameter, set Valve parameterization to Sonic conductance and Opening characteristic to Tabulated data.

Units

l/(bar*s) | gal/(min*psi) | m^3/(Pa*s)

Default value

[1e-5, 0.2175, 0.4312, 0.7125, 1.05, 1.6125, 2.625, 3.9375, 6.375, 9.75, 12.0] l/(bar*s)

Program usage name

C_vector

Evaluatable

Yes

# Critical pressure ratio vector — vector of critical pressure ratio values

Details

Vector of critical pressure ratios. The critical pressure ratio is the ratio of the outlet pressure to the inlet pressure at which the flow becomes critical and the flow velocity reaches a maximum determined by the local speed of sound. The dimensionality of the vector corresponds to that of the Ball rotation vector.

Dependencies

To use this parameter, set the Valve parameterization to `Sonic conductance' and the Opening characteristic to `Tabulated data'.

Default value

0.3 * ones(11)

Program usage name

B_critical_vector

Evaluatable

Yes

# Ball rotation vector — ball rotation
deg | rad | rev | mrad

Details

The ball rotation for a given flow capacity or area. The elements of this vector must relate to the elements of the Valve flow coefficient (Cv) vector, the Valve flow factor (Kv) vector, or the Area vector.

Dependencies

To use this parameter, specify `Tabulated data' for Opening characteristic and `Sonic conductance' for Valve parameterization.

Units

deg | rad | rev | mrad

Default value

pi / 2.0 * [0.0:0.1:1.0…​] rad

Program usage name

phi_vector_C

Evaluatable

Yes

# Ball rotation vector — ball rotation
deg | rad | rev | mrad

Details

The ball rotation for a given flow capacity or area. The elements of this vector must relate to the elements of the Valve flow coefficient (Cv) vector, the Valve flow factor (Kv) vector, or the Area vector.

Dependencies

To use this parameter, set the Opening characteristic parameter to `Tabulated' and the Valve parameterization parameter to `Orifice area based on geometry'.

Units

deg | rad | rev | mrad

Default value

pi / 2.0 * [0.0:0.1:1.0…​] rad

Program usage name

phi_vector_area

Evaluatable

Yes

# Subsonic index — degree value used to calculate the mass flow rate in subsonic flow regime

Details

An empirical value used to more accurately calculate the mass flow rate in subsonic flow regime.

Dependencies

To use this parameter, set the Valve parameterization parameter to `Sonic conductance'.

Default value

0.5

Program usage name

m

Evaluatable

Yes

# ISO reference temperature — reference temperature according to ISO 8778
K | degC | degF | degR | deltaK | deltadegC | deltadegF | deltadegR

Details

The temperature in the standard reference atmosphere in ISO 8778.

The values of the ISO reference parameters only need to be adjusted if acoustic conductivity values obtained with different reference values are used.

Dependencies

To use this parameter, set the Valve parameterization parameter to `Sonic conductance'.

Units

K | degC | degF | degR | deltaK | deltadegC | deltadegF | deltadegR

Default value

293.15 K

Program usage name

T_reference

Evaluatable

Yes

# ISO reference density — reference density according to ISO 8778
g/cm^3 | kg/m^3 | lbm/gal

Details

Density in a standard reference atmosphere in ISO 8778.

The values of the ISO reference parameters need only be adjusted if acoustic conductivity values obtained with different reference values are used.

Dependencies

To use this parameter, set the Valve parameterization parameter to `Sonic conductance'.

Units

g/cm^3 | kg/m^3 | lbm/gal

Default value

1.185 kg/m^3

Program usage name

rho_reference

Evaluatable

Yes

# Cross-sectional area at ports A and B — inlet or outlet area
m^2 | cm^2 | ft^2 | in^2 | km^2 | mi^2 | mm^2 | um^2 | yd^2

Details

This area is used when calculating the mass flow rate through the ports.

The ports are all the same size. The value of this parameter must match the inlet port area of the component to which the unit is connected.

Units

m^2 | cm^2 | ft^2 | in^2 | km^2 | mi^2 | mm^2 | um^2 | yd^2

Default value

pi * (0.025 ^ 2) / 4.0 m^2

Program usage name

port_area

Evaluatable

Yes

# Ball bore area — ball bore area
m^2 | cm^2 | ft^2 | in^2 | km^2 | mi^2 | mm^2 | um^2 | yd^2

Details

Cross-sectional area of the valve ball bore.

Dependencies

To use this parameter, set the Valve parameterization to `Orifice area based on geometry' and the Opening characteristic to `Area of overlapping circles'.

Units

m^2 | cm^2 | ft^2 | in^2 | km^2 | mi^2 | mm^2 | um^2 | yd^2

Default value

pi * (0.02 ^ 2) / 4.0 m^2

Program usage name

ball_bore_area

Evaluatable

Yes

# Leakage flow fraction — cost ratio

Details

The ratio of the flow rate through a closed orifice to that through an open orifice.

Dependencies

To use this parameter, set the Valve parameterization to `Orifice area based on geometry' and the Opening characteristic to `Area of overlapping circles'.

Default value

1e-6

Program usage name

leakage_fraction

Evaluatable

Yes

# Laminar flow pressure ratio — pressure ratio at which the flow transitions between laminar and turbulent regimes

Details

The ratio of outlet pressure to inlet pressure at which the flow transitions between laminar and turbulent flow regimes.

Typical values range from 0.995 to 0.999.

Default value

0.999

Program usage name

B_laminar

Evaluatable

Yes

See also

  1. ISO 6358-3, "Pneumatic fluid power – Determination of flow-rate characteristics of components using compressible fluids – Part 3: Method for calculating steady-state flow rate characteristics of systems", 2014.

  2. IEC 60534-2-3, "Industrial-process control valves – Part 2-3: Flow capacity – Test procedures", 2015.

  3. ANSI/ISA-75.01.01, "Industrial-Process Control Valves – Part 2-1: Flow capacity – Sizing equations for fluid flow underinstalled conditions", 2012.

  4. P. Beater, "Pneumatic Drives", Springer-Verlag Berlin Heidelberg, 2007.