NU_VCYL_CARNEMORGAN
This function computes vertical-cylinder natural-convection Nusselt number using the Carne-Morgan correlation available in ht. It supports automatic, forced laminar, or forced turbulent branch selection.
The correlation is defined as piecewise power-law behavior in Rayleigh number:
Nu = C\,Ra^n,\qquad Ra = Gr\,Pr
and returns a dimensionless Nusselt number referenced to cylinder height.
Excel Usage
=NU_VCYL_CARNEMORGAN(Pr, Gr, turbulent)
Pr(float, required): Prandtl number of the fluid (dimensionless).Gr(float, required): Grashof number based on cylinder height (dimensionless).turbulent(bool, optional, default: null): Whether to force turbulent or laminar regime (dimensionless).
Returns (float): Nusselt number based on cylinder height (dimensionless).
Example 1: Carne Morgan example
Inputs:
| Pr | Gr |
|---|---|
| 0.7 | 200000000 |
Excel formula:
=NU_VCYL_CARNEMORGAN(0.7, 200000000)
Expected output:
204.315
Example 2: Carne Morgan forced laminar
Inputs:
| Pr | Gr | turbulent |
|---|---|---|
| 0.7 | 50000000 | false |
Excel formula:
=NU_VCYL_CARNEMORGAN(0.7, 50000000, FALSE)
Expected output:
138.587
Example 3: Carne Morgan forced turbulent
Inputs:
| Pr | Gr | turbulent |
|---|---|---|
| 0.7 | 5000000000 | true |
Excel formula:
=NU_VCYL_CARNEMORGAN(0.7, 5000000000, TRUE)
Expected output:
643.561
Example 4: Carne Morgan mid range
Inputs:
| Pr | Gr |
|---|---|
| 1.1 | 800000000 |
Excel formula:
=NU_VCYL_CARNEMORGAN(1.1, 800000000)
Expected output:
380.844
Python Code
Show Code
from ht.conv_free_immersed import Nu_vertical_cylinder_Carne_Morgan as ht_Nu_vertical_cylinder_Carne_Morgan
def Nu_vcyl_CarneMorgan(Pr, Gr, turbulent=None):
"""
Calculate the Nusselt number for a vertical cylinder using Carne-Morgan.
See: https://ht.readthedocs.io/en/latest/ht.conv_free_immersed.html
This example function is provided as-is without any representation of accuracy.
Args:
Pr (float): Prandtl number of the fluid (dimensionless).
Gr (float): Grashof number based on cylinder height (dimensionless).
turbulent (bool, optional): Whether to force turbulent or laminar regime (dimensionless). Default is None.
Returns:
float: Nusselt number based on cylinder height (dimensionless).
"""
try:
result = ht_Nu_vertical_cylinder_Carne_Morgan(Pr, Gr, turbulent=turbulent)
if result is None:
return "Error: Result is None"
return float(result)
except Exception as e:
return f"Error: {str(e)}"Online Calculator
Prandtl number of the fluid (dimensionless).
Grashof number based on cylinder height (dimensionless).
Whether to force turbulent or laminar regime (dimensionless).