QMAX_BOILING

Excel Usage

=QMAX_BOILING(rhol, rhog, sigma, Hvap, D, P, Pc, Method)
  • rhol (float, optional, default: null): Density of liquid (kg/m^3). Optional.
  • rhog (float, optional, default: null): Density of gas (kg/m^3). Optional.
  • sigma (float, optional, default: null): Surface tension (N/m). Optional.
  • Hvap (float, optional, default: null): Heat of vaporization (J/kg). Optional.
  • D (float, optional, default: null): Diameter of tubes (m). Optional.
  • P (float, optional, default: null): Saturation pressure (Pa). Optional.
  • Pc (float, optional, default: null): Critical pressure (Pa). Optional.
  • Method (str, optional, default: null): Specific correlation name. Optional.

Returns (float): Critical heat flux (W/m^2)

Examples

Example 1: Basic CHF calculation

Inputs:

D sigma Hvap rhol rhog
0.0127 0.0082 272000 567 18.09

Excel formula:

=QMAX_BOILING(0.0127, 0.0082, 272000, 567, 18.09)

Expected output:

"Error: could not convert string to float: \"Error: could not convert string to float: 'Error: string is too long to generate repr'\""

Example 2: Refrigerant CHF

Inputs:

P sigma Hvap rhol rhog
1000000 0.008 200000 1200 40

Excel formula:

=QMAX_BOILING(1000000, 0.008, 200000, 1200, 40)

Expected output:

"Error: could not convert string to float: \"Error: could not convert string to float: 'Error: string is too long to generate repr'\""

Example 3: Water CHF

Inputs:

P Hvap rhol rhog
101325 2257000 958 0.6

Excel formula:

=QMAX_BOILING(101325, 2257000, 958, 0.6)

Expected output:

"Error: could not convert string to float: \"Error: could not convert string to float: 'Error: string is too long to generate repr'\""

Example 4: Zuber limit case

Inputs:

P Hvap rhol rhog
3000000 2000000 800 10

Excel formula:

=QMAX_BOILING(3000000, 2000000, 800, 10)

Expected output:

"Error: could not convert string to float: \"Error: could not convert string to float: 'Error: string is too long to generate repr'\""

Python Code

from ht.boiling_nucleic import qmax_boiling

def qmax_boiling(rhol=None, rhog=None, sigma=None, Hvap=None, D=None, P=None, Pc=None, Method=None):
    """
    Nucleate boiling critical heat flux (CHF).

    See: https://ht.readthedocs.io/en/latest/ht.boiling_nucleic.html#ht.boiling_nucleic.qmax_boiling

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

    Args:
        rhol (float, optional): Density of liquid (kg/m^3). Optional. Default is None.
        rhog (float, optional): Density of gas (kg/m^3). Optional. Default is None.
        sigma (float, optional): Surface tension (N/m). Optional. Default is None.
        Hvap (float, optional): Heat of vaporization (J/kg). Optional. Default is None.
        D (float, optional): Diameter of tubes (m). Optional. Default is None.
        P (float, optional): Saturation pressure (Pa). Optional. Default is None.
        Pc (float, optional): Critical pressure (Pa). Optional. Default is None.
        Method (str, optional): Specific correlation name. Optional. Default is None.

    Returns:
        float: Critical heat flux (W/m^2)
    """
    def f(x):
        return float(x) if x is not None else None

    try:
      method = Method if Method not in (None, "") else None

      return float(qmax_boiling(rhol=f(rhol), rhog=f(rhog), sigma=f(sigma), Hvap=f(Hvap), 
                  D=f(D), P=f(P), Pc=f(Pc), Method=method))
    except Exception as e:
        return f"Error: {str(e)}"

Online Calculator