ECKERT
Calculates the Eckert number, relating kinetic energy scale to thermal enthalpy difference in flow.
Excel Usage
=ECKERT(V, Cp, dT)
V(float, required): Velocity (m/s)Cp(float, required): Specific heat capacity at constant pressure (J/kg/K)dT(float, required): Temperature difference (K)
Returns (float): Eckert number (float), or error message string.
Example 1: Eckert number for a moderate velocity rise
Inputs:
| V | Cp | dT |
|---|---|---|
| 10 | 2000 | 25 |
Excel formula:
=ECKERT(10, 2000, 25)
Expected output:
0.002
Example 2: Doubling velocity increases kinetic-to-thermal ratio
Inputs:
| V | Cp | dT |
|---|---|---|
| 20 | 2000 | 25 |
Excel formula:
=ECKERT(20, 2000, 25)
Expected output:
0.008
Example 3: Larger heat capacity lowers the Eckert number
Inputs:
| V | Cp | dT |
|---|---|---|
| 10 | 4000 | 25 |
Excel formula:
=ECKERT(10, 4000, 25)
Expected output:
0.001
Example 4: Larger temperature rise lowers the Eckert number
Inputs:
| V | Cp | dT |
|---|---|---|
| 10 | 2000 | 50 |
Excel formula:
=ECKERT(10, 2000, 50)
Expected output:
0.001
Python Code
Show Code
from fluids.core import Eckert as fluids_eckert
def eckert(V, Cp, dT):
"""
Calculate the Eckert number using fluids.core.Eckert.
See: https://fluids.readthedocs.io/fluids.core.html#fluids.core.Eckert
This example function is provided as-is without any representation of accuracy.
Args:
V (float): Velocity (m/s)
Cp (float): Specific heat capacity at constant pressure (J/kg/K)
dT (float): Temperature difference (K)
Returns:
float: Eckert number (float), or error message string.
"""
# Convert inputs to float
try:
V = float(V)
Cp = float(Cp)
dT = float(dT)
except Exception:
return "Error: All parameters must be numeric values."
# Validate inputs
if Cp == 0 or dT == 0:
return "Error: Cp and dT must be nonzero."
# Call the fluids library function
try:
result = fluids_eckert(V=V, Cp=Cp, dT=dT)
return result
except Exception as e:
return f"Error: Failed to calculate Eckert number: {str(e)}"Online Calculator
Velocity (m/s)
Specific heat capacity at constant pressure (J/kg/K)
Temperature difference (K)