CV_CHAR_LINEAR

Overview

Excel Usage

=CV_CHAR_LINEAR(opening)
  • opening (float, required): Fractional opening of the valve [0-1].

Returns (float): Flow coefficient characteristic fraction [0-1].

Examples

Example 1: Zero opening

Inputs:

opening
0

Excel formula:

=CV_CHAR_LINEAR(0)

Expected output:

0

Example 2: Full opening

Inputs:

opening
1

Excel formula:

=CV_CHAR_LINEAR(1)

Expected output:

1

Example 3: Half opening

Inputs:

opening
0.5

Excel formula:

=CV_CHAR_LINEAR(0.5)

Expected output:

0.5

Example 4: Quarter opening

Inputs:

opening
0.25

Excel formula:

=CV_CHAR_LINEAR(0.25)

Expected output:

0.25

Python Code

from fluids.control_valve import Cv_char_linear

def cv_char_linear(opening):
    """
    Calculates the flow coefficient characteristic for a linear control valve.

    See: https://fluids.readthedocs.io/fluids.control_valve.html#fluids.control_valve.Cv_char_linear

    This example function is provided as-is without any representation of accuracy.

    Args:
        opening (float): Fractional opening of the valve [0-1].

    Returns:
        float: Flow coefficient characteristic fraction [0-1].
    """
    try:
        val = float(opening)
        return float(Cv_char_linear(val))
    except Exception as e:
        return f"Error: {str(e)}"

Online Calculator