agentleFS
jskhermanjskherman/engg-skills/skills/steam-tables-iapws/SKILL.md

steam-tables-iapws

Skill7 starsChanged 6 months agoApache-2.0View on GitHub

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-properties), water + hydrocarbon two-phase systems (different physics), or supercritical CO2 power cycles (use a CO2-specific equation of state).

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Call the appropriate subcommand.

    line 60
  2. Very specific:

    If chemicals.iapws is unavailable, surface to the user that no fallback is available.

    line 84
  3. Very specific:

    Run the listed script with representative inputs and an --output file when a deterministic calculation is available.

    line 89
  4. Distinctive:

    Check result magnitudes against the stated assumptions, references, and a hand calculation or known operating range before reporting them.

    line 91

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
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) and Tsat(P).

Prerequisites

  1. uv available.
  2. On first use, the script writes LICENSE_NOTIFICATION.txt listing 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.json
  • uv run scripts/steam_props.py --saturation --temperature-k 423 --output /tmp/sat.json

Procedure

  1. Identify the state (T and P) or the saturation calculation (T or P).
  2. Call the appropriate subcommand.
  3. 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.iapws is 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 --output file 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

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.