Fluid Property Calculator
Quick fluid property calculations using empirical formulas without database queries
MCP get_skill({ skillId: "fluid-property-calculator-44db0134" })Use this skill with your agent
Create a free account and connect via MCP
# Fluid Property Calculator
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
- **Thermal conductivity** (W/m·K) - Polynomial correlation
- **Specific heat capacity** (J/kg·K) - Polynomial correlation
- **Vapor pressure** (Pa) - Antoine equation
- **Prandtl number** - Dimensionless heat transfer parameter
**Validity Range**: 0-100°C at atmospheric pressure
**Typical Accuracy**: ±1-2% for most properties
### Air Properties (Standard Atmosphere)
Calculate temperature-dependent properties of air at atmospheric pressure:
- **Density** (kg/m³) - Ideal gas law
- **Dynamic viscosity** (Pa·s) - Sutherland's formula
- **Kinematic viscosity** (m²/s) - Derived from dynamic viscosity
- **Thermal conductivity** (W/m·K) - Polynomial correlation
- **Specific heat capacity** (J/kg·K) - Temperature-dependent correlation
- **Prandtl number** - Dimensionless heat transfer parameter
**Validity Range**: -50 to 200°C at 101.325 kPa
**Typical Accuracy**: ±1-3% for most properties
### Viscosity Correlations
#### Sutherland's Formula (Gases)
Temperature-dependent viscosity for gases:
```
μ = μ₀ × (T/T₀)^(3/2) × (T₀ + S)/(T + S)
```
Available for:
- Air (S = 110.4 K)
- Nitrogen (S = 111 K)
- Oxygen (S = 127 K)
- Carbon dioxide (S = 240 K)
#### Andrade Equation (Liquids)
Temperature-dependent viscosity for liquids:
```
μ = A × exp(B/T)
```
Provides empirical correlation for various liquids with custom parameters.
### Vapor Pressure (Antoine Equation)
Calculate saturation vapor pressure:
```
log₁₀(P) = A - B/(C + T)
```
Available for:
- Water
- Ethanol
- Methanol
- Acetone
- Benzene
- Toluene
**Units**: Temperature in °C, Pressure in mmHg or Pa (depending on constants)
### Dimensionless Numbers
#### Reynolds Number
Calculate flow regime indicator:
```
Re = ρ × V × L / μ = V × L / ν
```
Where:
- ρ = density (kg/m³)
- V = velocity (m/s)
- L = characteristic length (m)
- μ = dynamic viscosity (Pa·s)
- ν = kinematic viscosity (m²/s)
**Interpretation**:
- Re < 2300: Laminar flow (pipe)
- 2300 < Re < 4000: Transition
- Re > 4000: Turbulent flow (pipe)
#### Friction Factor Calculator
**Laminar Flow (Re < 2300)**:
```
f = 64 / Re
```
**Turbulent Flow - Smooth Pipes (Blasius)**:
Valid for Re < 100,000:
```
f = 0.316 / Re^0.25
```
**Turbulent Flow - Rough Pipes (Colebrook-White)**:
Iterative solution for:
```
1/√f = -2 log₁₀(ε/3.7D + 2.51/(Re√f))
```
Where:
- ε = absolute roughness (m)
- D = pipe diameter (m)
**Swamee-Jain Approximation** (non-iterative):
```
f = 0.25 / [log₁₀(ε/3.7D + 5.74/Re^0.9)]²
```
### Ideal Gas Properties
Calculate properties using ideal gas law and kinetic theory:
- **Density**: ρ = P/(R×T)
- **Specific heat ratio**: γ (for common gases)
- **Speed of sound**: a = √(γ×R×T)
- **Molar mass**: M (for common gases)
## Usage Examples
### Example 1: Water Properties at 20°C
```python
from calc import water_properties
props = water_properties(20)
print(f"Density: {props['density']:.2f} kg/m³")
print(f"Viscosity: {props['dynamic_viscosity']:.6f} Pa·s")
print(f"Thermal conductivity: {props['thermal_conductivity']:.4f} W/m·K")
```
### Example 2: Reynolds Number for Pipe Flow
```python
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
```python
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
```python
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
```python
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
1. **Temperature Ranges**: Correlations are only valid within specified ranges
2. **Pressure Effects**: Most correlations assume atmospheric pressure
3. **Pure Substances**: Mixtures require different approaches
4. **Accuracy**: Empirical formulas provide estimates (±1-5% typical)
5. **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
1. **Check validity ranges** before using any correlation
2. **Verify units** - most functions use SI units (K for temperature in Sutherland, °C elsewhere)
3. **Compare results** with reference data when possible
4. **Use appropriate significant figures** based on correlation accuracy
5. **Document assumptions** in your calculations
## Additional Resources
See `reference.md` for:
- Complete correlation equations
- Literature sources
- Validation data
- Accuracy comparisons
- Alternative formulationsRelated Skills
More skills in Science & Simulation
Adaptyv
Cloud laboratory platform for automated protein testing and validation. Use when designing proteins and needing experimental validation including binding assays, expression testing, thermostability measurements, enzyme activity assays, or protein sequence optimization. Also use for submitting experiments via API, tracking experiment status, downloading results, optimizing protein sequences for better expression using computational tools (NetSolP, SoluProt, SolubleMPNN, ESM), or managing protein design workflows with wet-lab validation.
AI Analyzer
AI驱动的综合健康分析系统,整合多维度健康数据、识别异常模式、预测健康风险、提供个性化建议。支持智能问答和AI健康报告生成。
Ansys Simulation
Automate ANSYS Fluent CFD simulations via Python scripting and journal files
Astropy
Comprehensive Python library for astronomy and astrophysics. This skill should be used when working with astronomical data including celestial coordinates, physical units, FITS files, cosmological calculations, time systems, tables, world coordinate systems (WCS), and astronomical data analysis. Use when tasks involve coordinate transformations, unit conversions, FITS file manipulation, cosmological distance calculations, time scale conversions, or astronomical data processing.
Bioservices
Unified Python interface to 40+ bioinformatics services. Use when querying multiple databases (UniProt, KEGG, ChEMBL, Reactome) in a single workflow with consistent API. Best for cross-database analysis, ID mapping across services. For quick single-database lookups use gget; for sequence/file manipulation use biopython.
Bom
BOM (Bill of Materials) management for electronics projects — the primary orchestrator skill that coordinates DigiKey, Mouser, LCSC, element14, JLCPCB, PCBWay, and KiCad skills into a unified workflow. Create, update, and maintain BOMs with part numbers, costs, quantities stored as KiCad symbol properties. ALWAYS trigger this skill for any task involving component sourcing, pricing, ordering, distributor searches, BOM export, or fabrication preparation — even if the user names a specific distributor or fab house (e.g. "search DigiKey for...", "generate JLCPCB BOM", "order from Mouser"). This skill decides which distributor/fab skills to invoke and in what order. Also trigger on phrases like "what parts do I need", "order components", "how much will this cost", "export for JLCPCB", "find parts for this board", "cost estimate", "compare pricing", or "check stock".
Explore Other Categories
Skills from other categories with shared topics
Material Properties DB
Query fluid viscosities, densities, and material properties vs temperature
Nasa Earthdata
Access atmospheric properties and aerospace fluid data from NASA Earthdata
Nist Refprop
Query high-accuracy thermodynamic properties from NIST REFPROP database (commercial)