用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Soljourner/claude-engineering-skills --skill cavitation-risk-db命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Query loss coefficients for pipes, valves, fittings in pump systems
正在显示 SKILL.md
基于 SOC 职业分类
| name | cavitation-risk-db |
| description | Query vapor pressures and NPSH requirements for cavitation assessment |
| category | databases |
| domain | fluids |
| complexity | basic |
| dependencies | ["CoolProp"] |
Query vapor pressure data and NPSH (Net Positive Suction Head) requirements for assessing cavitation risk in centrifugal pumps and hydraulic systems. This skill provides access to accurate vapor pressure correlations, manufacturer NPSH data, and empirical methods essential for preventing pump cavitation and ensuring reliable operation.
Cavitation occurs when the local pressure in a pump or piping system drops below the vapor pressure of the liquid, causing vapor bubbles to form. When these bubbles collapse in higher-pressure regions, they create shock waves that can severely damage pump components, reduce performance, and cause premature failure.
Critical Parameters:
Cavitation Prevention Rule:
NPSHa ≥ NPSHr + Safety Margin
This database skill provides the data and methods to:
Most accurate method for fluids supported by CoolProp (water, refrigerants, hydrocarbons, cryogenic fluids).
Query vapor pressure:
from CoolProp.CoolProp import PropsSI
T = 60 + 273.15 # 60°C in Kelvin
Pvap = PropsSI('P', 'T', T, 'Q', 0, 'Water') # Pa
Advantages:
Supported Fluids:
Convert to head:
rho = PropsSI('D', 'T', T, 'P', P_atm, 'Water') # kg/m³
g = 9.81 # m/s²
Hvp = Pvap / (rho * g) # meters of liquid column
Empirical correlation for vapor pressure, valid across moderate temperature ranges. Useful when CoolProp is not available or for custom fluids.
Standard form:
log₁₀(Pvap) = A - B / (C + T)
Where:
Extended Antoine equation (higher accuracy):
log₁₀(Pvap) = A - B / (C + T) + D·T + E·T² + F·log₁₀(T)
Temperature validity:
Common fluids: See reference.md for comprehensive Antoine coefficient tables.
Pre-calculated tables from authoritative sources, useful for quick reference or when computational tools unavailable.
Sources:
Interpolation required:
Typical table format:
| T (°C) | Pvap (kPa) | Hvp (m H₂O) |
|---|---|---|
| 0 | 0.611 | 0.062 |
| 20 | 2.339 | 0.240 |
| 40 | 7.384 | 0.766 |
| 60 | 19.94 | 2.07 |
| 80 | 47.39 | 4.93 |
| 100 | 101.3 | 10.33 |
Thermodynamic approximation for quick estimates when detailed data unavailable.
ln(P₂/P₁) = (ΔHvap/R) × (1/T₁ - 1/T₂)
Where:
Limitations:
When to use:
NPSHr is the minimum NPSH that must be available to prevent cavitation in a specific pump. It depends on pump design, operating point, and cannot be calculated from first principles.
Most reliable and accurate - Always use manufacturer data when available.
Typical curve characteristics:
Curve data format:
Flow (m³/h) | Head (m) | NPSHr (m) | Efficiency (%)
-------------|------------|-------------|------------------
0 | 45.0 | 2.5 | 0
50 | 44.5 | 2.0 | 65
100 (BEP) | 43.0 | 2.2 | 78
150 | 40.0 | 3.0 | 73
200 | 35.0 | 4.5 | 60
250 | 28.0 | 7.0 | 40
NPSHr definitions:
Important notes:
Empirical estimate for preliminary design or when manufacturer data unavailable.
Suction specific speed (Nss):
Nss = N × √Q / (NPSHr)^(3/4)
In SI units:
Rearranging to find NPSHr:
NPSHr = (N × √Q / Nss)^(4/3)
Typical Nss values by pump type:
| Pump Type | Nss Range | Typical Nss |
|---|---|---|
| Single suction, radial impeller | 7,000-11,000 | 9,000 |
| Single suction, mixed flow | 10,000-12,000 | 11,000 |
| Double suction, radial | 11,000-15,000 | 13,000 |
| Double suction, mixed flow | 13,000-16,000 | 14,500 |
| Axial flow | 14,000-18,000 | 16,000 |
| With inducer | 15,000-25,000 | 20,000 |
| High-energy (rocket turbopumps) | 25,000-40,000 | 30,000 |
U.S. customary units:
Accuracy:
Example calculation:
N = 1750 # rpm
Q = 0.0278 # m³/s (100 m³/h)
Nss = 9000 # single suction centrifugal
NPSHr = (N * Q**0.5 / Nss)**(4/3)
# NPSHr ≈ 2.8 m
Alternative correlation relating NPSHr to pump head:
σ = NPSHr / H
Where:
Typical σ values:
| Specific Speed (Ns) | σ (typical) |
|---|---|
| 500-1000 | 0.08-0.12 |
| 1000-2000 | 0.06-0.10 |
| 2000-3000 | 0.05-0.08 |
| 3000-4000 | 0.04-0.06 |
| >4000 | 0.03-0.05 |
Rearranging:
NPSHr = σ × H
When to use:
Limitations:
Quick estimates for feasibility checks (not for final design):
By pump size:
By speed:
By impeller type:
Flow rate dependence:
NPSHr(Q) = NPSHr(BEP) × (Q / Q_BEP)^1.5
Temperature is the most critical factor affecting cavitation susceptibility because vapor pressure increases exponentially with temperature.
Water vapor pressure (exponential growth):
| T (°C) | Pvap (kPa) | Hvp (m) | Relative to 20°C |
|---|---|---|---|
| 0 | 0.611 | 0.062 | 0.26× |
| 10 | 1.228 | 0.126 | 0.52× |
| 20 | 2.339 | 0.240 | 1.0× (baseline) |
| 30 | 4.246 | 0.437 | 1.8× |
| 40 | 7.384 | 0.766 | 3.2× |
| 50 | 12.35 | 1.29 | 5.4× |
| 60 | 19.94 | 2.07 | 8.6× |
| 70 | 31.19 | 3.26 | 13.3× |
| 80 | 47.39 | 4.93 | 20.3× |
| 90 | 70.14 | 7.31 | 30.0× |
| 100 | 101.3 | 10.33 | 43.3× |
Key observations:
Why perform sensitivity analysis:
Typical analysis approach:
# Calculate NPSHa at multiple temperatures
temperatures = [20, 30, 40, 50, 60, 70, 80] # °C
for T in temperatures:
Pvap = get_vapor_pressure(T, fluid)
Hvp = Pvap / (rho * g)
NPSHa = Ha + Hs - Hf - Hvp
margin = NPSHa - NPSHr
print(f"T={T}°C: NPSHa={NPSHa:.2f}m, Margin={margin:.2f}m")
Design implications:
Different fluids have vastly different vapor pressure characteristics:
Low vapor pressure (cavitation resistant):
Moderate vapor pressure:
High vapor pressure (cavitation prone):
Refrigerant and cryogenic systems:
Viscous fluids:
Dissolved gases:
Entrained solids:
Never design for NPSHa = NPSHr! Always include safety margin.
Minimum absolute margins:
NPSHa ≥ NPSHr + margin
| Application | Margin (m) | Margin (ft) |
|---|---|---|
| General water service, clean fluids | 0.5-1.0 | 2-3 |
| Critical/continuous service | 1.0-1.5 | 3-5 |
| Hot water (>60°C) | 1.5-2.0 | 5-7 |
| Hydrocarbon/petroleum | 1.0-1.5 | 3-5 |
| Boiler feed, deaerator | 1.5-3.0 | 5-10 |
| Slurries, abrasive service | 1.5-2.0 | 5-7 |
| High-energy pumps (>200m head) | 2.0-3.0 | 7-10 |
Percentage-based margins:
NPSHa ≥ k × NPSHr
| Application | k factor | Margin |
|---|---|---|
| General service | 1.1-1.2 | 10-20% |
| Standard practice | 1.3 | 30% |
| Critical service | 1.5 | 50% |
| Conservative | 2.0 | 100% |
API 610 requirement (petroleum):
NPSHa ≥ NPSHr + 0.6 m (2 ft) OR 1.3 × NPSHr
whichever is greater
Hydraulic Institute (HI) 9.6.1:
API 610 (Centrifugal Pumps for Petroleum):
ISO 9906 (Rotodynamic Pumps):
ANSI/ASME Standards:
Pre-design NPSH verification:
System optimization if margin inadequate:
Increase NPSHa:
Decrease NPSHr:
System changes:
1. Define operating conditions:
Fluid: Water
Flow rate: 150 m³/h
Temperature: 60°C (maximum expected)
Suction configuration: Atmospheric tank, pump below liquid level
Altitude: Sea level
2. Calculate NPSHa:
Ha = Patm / (ρ × g) = 101,325 / (983 × 9.81) = 10.51 m
Hs = +3.0 m (liquid level 3m above pump centerline)
Hf = 0.8 m (calculated from pipe friction + fittings)
Hvp = Pvap(60°C) / (ρ × g) = 19,940 / (983 × 9.81) = 2.07 m
NPSHa = 10.51 + 3.0 - 0.8 - 2.07 = 10.64 m
3. Determine NPSHr:
From manufacturer curve at 150 m³/h: NPSHr = 4.5 m
4. Calculate margin:
Margin = NPSHa - NPSHr = 10.64 - 4.5 = 6.14 m
5. Verify safety criterion:
Required margin = 1.5 m (hot water service)
Actual margin = 6.14 m ✓ ACCEPTABLE
Percentage margin = NPSHa / NPSHr = 10.64 / 4.5 = 2.36
Required percentage = 1.3 (30%)
Actual percentage = 2.36 (136%) ✓ ACCEPTABLE
6. Temperature sensitivity check:
At 70°C: Hvp = 3.26 m → NPSHa = 9.45 m → Margin = 4.95 m ✓
At 80°C: Hvp = 4.93 m → NPSHa = 7.71 m → Margin = 3.21 m ✓
Hydraulic Institute (HI):
API (American Petroleum Institute):
ISO Standards:
ANSI/ASME:
Handbooks:
Vapor Pressure Data:
This skill provides comprehensive vapor pressure and NPSH data essential for preventing cavitation in centrifugal pumps. Proper cavitation assessment is critical for pump reliability, efficiency, and longevity.