steam-tables-iapws
>- Compute water and steam thermodynamic properties using the IAPWS-95 utilities exposed by `chemicals.iapws`. Use when any calculation involves pure water or steam (turbine, boiler, condensate, reboiler, BFW system). Don't use for hydrocarbon systems (use vle-flash-calculations or thermo-process-pr
- License 许可
- MIT
- 最近更新
- 2026-11-09
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- steam-tables-iapws
- risk
- low
- source
- https://github.com/jskherman/engg-skills
- license
- MIT
- version
- 1.0.0
- category
- chemical-engineering
- description
- >- Compute water and steam thermodynamic properties using the IAPWS-95 utilities exposed by `chemicals.iapws`. Use when any calculation involves pure water or steam (turbine, boiler, condensate, reboiler, BFW system). Don't use for hydrocarbon systems (use vle-flash-calculations or thermo-process-pr
- imported_at
- 2026-09-20
- source_path
- skills/steam-tables-iapws/SKILL.md
- source_repository
- jskherman/engg-skills
- disable-model-invocation
- false
02 资源文件 2
- 参考文档references/iapws_notes.md170 B
- 脚本scripts/steam_props.py3.2 KB
03 SKILL.md 正文
IAPWS Steam Tables
Overview
Water / steam properties via the IAPWS-95 utilities exposed through
chemicals.iapws:
- Single-phase state (T, P): density, enthalpy, entropy, internal energy, Cp, Cv, speed of sound, Joule-Thomson coefficient.
- Saturation:
Psat(T)andTsat(P).
Prerequisites
uvavailable.- On first use, the script writes
LICENSE_NOTIFICATION.txtlisting the IAPWS terms.
When to Use
- Sizing a steam turbine, condenser, or reboiler.
- BFW or condensate stream property work at known temperature and pressure.
- Saturation pressure from temperature, or saturation temperature from pressure.
Don't use for
- Hydrocarbon systems — use
vle-flash-calculations. - Water + hydrocarbon two-phase systems — neither IAPWS nor plain cubic EOS handles them well in isolation.
- Supercritical CO2 — use a CO2 EOS (Span-Wagner).
Utility Scripts
uv run scripts/steam_props.py --temperature-k 773 --pressure-pa 1e7 --output /tmp/steam.jsonuv run scripts/steam_props.py --saturation --temperature-k 423 --output /tmp/sat.json
Procedure
- Identify the state (T and P) or the saturation calculation (T or P).
- Call the appropriate subcommand.
- Inspect the returned properties; if any value seems unphysical, recheck T and P bounds against the IAPWS validity range.
Pitfalls
- Confusing IAPWS-95 (scientific, full phase diagram, accurate near critical point) with IAPWS-IF97 (industrial, faster, small region discontinuities). For simulation use IF97; for high accuracy near critical, use IAPWS-95.
- Treating the IAPWS Psat at the saturation curve as exact; the formulation is accurate, but the calling code must be careful with rounding near saturation.
- Using IAPWS for sea water or brackish water — salt is not in the formulation.
- Using cubic EOS for water/steam utility work — IAPWS is the industry reference.
- Mixing kJ/kg (common in steam tables) with J/kg (the IAPWS native); the script reports both bases.
- Reporting steam quality in a flash with a non-water hydrocarbon trace contamination; IAPWS is pure-water only.
Fallback Strategies
- If
chemicals.iapwsis unavailable, surface to the user that no fallback is available; do not attempt to substitute a cubic EOS.
Verification
- Run the listed script with representative inputs and an
--outputfile when a deterministic calculation is available. - Confirm the JSON result contains
ok: true, expected units, and no unhandled warnings. - Check result magnitudes against the stated assumptions, references, and a hand calculation or known operating range before reporting them.
References
references/iapws_notes.md— region boundaries and validity ranges.- IAPWS releases: https://iapws.org/
chemicals.iapwsdocs: https://chemicals.readthedocs.io/chemicals.iapws.html
Anti-Patterns
- Using IAPWS for any non-water system.
- Quoting steam properties to four decimal places without naming the underlying formulation.
- Mixing multiple water-property formulations within the same calculation without naming the switch.
04 同仓库更多 Skills
dei-assessment
Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.
dei-action-plan
Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.
culture-fit-assessment
Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.
cowork-to-code-bridge
Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.
counter-offer-response
Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.
continuous-feedback-system
Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.