Quick fluid property calculations using empirical correlations and analytical formulas. Provides instant property estimates without requiring external databases or data files.
Overview
This helper provides fast, practical calculations for common fluids using well-established empirical correlations. All formulas include validity ranges and are verified against reference data.
Available Calculations
Water Properties (0-100°C)
Calculate temperature-dependent properties of liquid water:
Density (kg/m³) - Polynomial correlation
Dynamic viscosity (Pa·s) - Vogel equation
Kinematic viscosity (m²/s) - Derived from dynamic viscosity
from calc import reynolds_number, water_properties
T = 25 # °C
V = 1.5 # m/s
D = 0.05 # m
props = water_properties(T)
Re = reynolds_number(V, D, props['kinematic_viscosity'])
print(f"Reynolds number: {Re:.0f}")
Example 3: Friction Factor Calculation
from calc import friction_factor
Re = 50000
roughness = 0.045e-3 # 0.045 mm for commercial steel
diameter = 0.1 # m
f = friction_factor(Re, roughness, diameter)
print(f"Friction factor: {f:.5f}")
Example 4: Vapor Pressure of Water
from calc import antoine_vapor_pressure
T = 80 # °C
P_vap = antoine_vapor_pressure('water', T)
print(f"Vapor pressure at {T}°C: {P_vap/1000:.2f} kPa")
Example 5: Air Viscosity using Sutherland's Formula
from calc import sutherland_viscosity
T = 100 # °C
mu = sutherland_viscosity('air', T + 273.15) # Convert to Kelvin
print(f"Air viscosity at {T}°C: {mu:.6f} Pa·s")
Quick Reference
Common Water Properties
T (°C)
ρ (kg/m³)
μ (mPa·s)
ν (mm²/s)
k (W/m·K)
Pr
0
999.8
1.787
1.787
0.561
13.5
20
998.2
1.002
1.004
0.598
7.0
40
992.2
0.653
0.658
0.631
4.3
60
983.2
0.467
0.475
0.654
3.0
80
971.8
0.355
0.365
0.670
2.2
100
958.4
0.282
0.294
0.680
1.8
Common Air Properties (at 101.325 kPa)
T (°C)
ρ (kg/m³)
μ (μPa·s)
ν (mm²/s)
k (W/m·K)
Pr
0
1.293
17.16
13.27
0.0243
0.71
20
1.205
18.24
15.14
0.0257
0.71
50
1.093
19.57
17.90
0.0279
0.71
100
0.946
21.67
22.90
0.0314
0.71
Limitations
Temperature Ranges: Correlations are only valid within specified ranges
Pressure Effects: Most correlations assume atmospheric pressure
Pure Substances: Mixtures require different approaches
Accuracy: Empirical formulas provide estimates (±1-5% typical)
Phase Changes: Properties near phase transitions may be less accurate
When to Use This Helper
Good for:
Quick engineering calculations
Preliminary design work
Educational purposes
When databases are unavailable
Rapid prototyping
Not suitable for:
High-precision scientific work
Properties outside validity ranges
Non-standard conditions (high pressure, etc.)
Complex mixtures
When accuracy better than ±1% is required
Best Practices
Check validity ranges before using any correlation
Verify units - most functions use SI units (K for temperature in Sutherland, °C elsewhere)
Compare results with reference data when possible
Use appropriate significant figures based on correlation accuracy