REYNOLDS_FACTOR
Overview
Calculates the Reynolds number factor FR for a valve according to IEC 60534.
Excel Usage
=REYNOLDS_FACTOR(fl_factor, kv, d_valve, re_valve, full_trim)
fl_factor(float, required): Liquid pressure recovery factor (-)kv(float, required): Flow coefficient Kv (m³/hr)d_valve(float, required): Valve diameter (m)re_valve(float, required): Valve Reynolds number (-)full_trim(bool, optional, default: true): Whether the valve has full trim
Returns (float): Reynolds number factor FR [-]
Examples
Example 1: Full trim case
Inputs:
| fl_factor | kv | d_valve | re_valve | full_trim |
|---|---|---|---|---|
| 0.9 | 10 | 0.05 | 1000 | true |
Excel formula:
=REYNOLDS_FACTOR(0.9, 10, 0.05, 1000, TRUE)
Expected output:
0.68693
Example 2: Reduced trim case
Inputs:
| fl_factor | kv | d_valve | re_valve | full_trim |
|---|---|---|---|---|
| 0.9 | 10 | 0.05 | 1000 | false |
Excel formula:
=REYNOLDS_FACTOR(0.9, 10, 0.05, 1000, FALSE)
Expected output:
0.97715
Example 3: High Reynolds
Inputs:
| fl_factor | kv | d_valve | re_valve | full_trim |
|---|---|---|---|---|
| 0.9 | 10 | 0.05 | 1000000 | true |
Excel formula:
=REYNOLDS_FACTOR(0.9, 10, 0.05, 1000000, TRUE)
Expected output:
1.62613
Example 4: Low Reynolds
Inputs:
| fl_factor | kv | d_valve | re_valve | full_trim |
|---|---|---|---|---|
| 0.7 | 50 | 0.1 | 10 | true |
Excel formula:
=REYNOLDS_FACTOR(0.7, 50, 0.1, 10, TRUE)
Expected output:
0.11745
Python Code
import micropip
await micropip.install(["fluids"])
from fluids.control_valve import Reynolds_factor
def reynolds_factor(fl_factor, kv, d_valve, re_valve, full_trim=True):
"""
Calculates the Reynolds number factor FR for a valve according to IEC 60534.
See: https://fluids.readthedocs.io/fluids.control_valve.html#fluids.control_valve.Reynolds_factor
This example function is provided as-is without any representation of accuracy.
Args:
fl_factor (float): Liquid pressure recovery factor (-)
kv (float): Flow coefficient Kv (m³/hr)
d_valve (float): Valve diameter (m)
re_valve (float): Valve Reynolds number (-)
full_trim (bool, optional): Whether the valve has full trim Default is True.
Returns:
float: Reynolds number factor FR [-]
"""
if fl_factor <= 0:
return "Error: Liquid pressure recovery factor must be positive."
if kv <= 0:
return "Error: Flow coefficient Kv must be positive."
if d_valve <= 0:
return "Error: Valve diameter must be positive."
if re_valve < 0:
return "Error: Reynolds number cannot be negative."
return float(Reynolds_factor(FL=fl_factor, C=kv, d=d_valve, Rev=re_valve, full_trim=full_trim))