TURB_DITTUS
This function computes turbulent internal-flow Nusselt number using the Dittus–Boelter correlation. Optional flags select heating versus cooling exponent behavior and revised versus original coefficient forms.
Excel Usage
=TURB_DITTUS(Re, Pr, heating, revised)
Re(float, required): Reynolds number (-).Pr(float, required): Prandtl number (-).heating(bool, optional, default: true): Whether the flow is being heated (-).revised(bool, optional, default: true): Whether to use the revised coefficients (-).
Returns (float): Turbulent Nusselt number for pipe flow (-).
Example 1: Dittus-Boelter default coefficients
Inputs:
| Re | Pr |
|---|---|
| 100000 | 1.2 |
Excel formula:
=TURB_DITTUS(100000, 1.2)
Expected output:
247.4
Example 2: Dittus-Boelter cooling case
Inputs:
| Re | Pr | heating |
|---|---|---|
| 100000 | 1.2 | false |
Excel formula:
=TURB_DITTUS(100000, 1.2, FALSE)
Expected output:
242.931
Example 3: Dittus-Boelter original coefficients
Inputs:
| Re | Pr | revised |
|---|---|---|
| 200000 | 0.7 | false |
Excel formula:
=TURB_DITTUS(200000, 0.7, FALSE)
Expected output:
366.834
Example 4: Dittus-Boelter cooling original
Inputs:
| Re | Pr | heating | revised |
|---|---|---|---|
| 50000 | 2 | false | false |
Excel formula:
=TURB_DITTUS(50000, 2, FALSE, FALSE)
Expected output:
187.383
Python Code
Show Code
from ht.conv_internal import turbulent_Dittus_Boelter as ht_turbulent_Dittus_Boelter
def turb_dittus(Re, Pr, heating=True, revised=True):
"""
Calculate turbulent Nusselt number using Dittus-Boelter.
See: https://ht.readthedocs.io/en/latest/ht.conv_internal.html
This example function is provided as-is without any representation of accuracy.
Args:
Re (float): Reynolds number (-).
Pr (float): Prandtl number (-).
heating (bool, optional): Whether the flow is being heated (-). Default is True.
revised (bool, optional): Whether to use the revised coefficients (-). Default is True.
Returns:
float: Turbulent Nusselt number for pipe flow (-).
"""
try:
return ht_turbulent_Dittus_Boelter(Re=Re, Pr=Pr, heating=heating, revised=revised)
except Exception as e:
return f"Error: {str(e)}"Online Calculator
Reynolds number (-).
Prandtl number (-).
Whether the flow is being heated (-).
Whether to use the revised coefficients (-).