What is calculated

PhaseGauge uses the IAPWS Industrial Formulation 1997 for the thermodynamic properties of ordinary water substance. The calculation engine is pinned to iapws-if97@2.8.0. Calculations use MPa, K, kJ/kg, and kJ/(kg·K); display-unit conversions do not alter the stored results.

Viscosity, thermal conductivity, surface tension, static dielectric constant, and the ionization constant pKw use separate IAPWS formulations, subject to the limits below.

Supported pairs are P–T, P–h, P–s, h–s, T–h, T–s, P–x, and T–x. A two-phase calculation returns the mixture, both saturation endpoints, and the differences hfg, sfg, and vfg.

IF97 regionFormulation and typical states
1Gibbs free energy g(p, T): liquid water.
2Gibbs free energy g(p, T): vapor and lower-density fluid.
3Helmholtz free energy f(ρ, T): dense-fluid states, including liquid, vapor, and supercritical states.
4Saturation-pressure and saturation-temperature relations: liquid–vapor equilibrium.
5Gibbs free energy g(p, T): high-temperature fluid.

Region numbers identify equation domains; phase labels describe the physical state. Detailed region boundaries are defined in IAPWS R7-97(2012).

Reference state: IAPWS sets the specific internal energy and entropy of saturated liquid to zero at the triple point (273.16 K, 611.657 Pa). Specific enthalpy follows h = u + pv, giving approximately 0.000611783 kJ/kg at that reference state. Use the same reference convention when comparing enthalpy and entropy across sources.

Saved calculations retain result snapshots and engine-version tags. Restore recalculates the saved inputs with the active engine and shows a notice if the displayed result differs from the saved result.

Verification coverage

CheckCoverageAcceptance limit
IF97 forward + saturation12 forward states × 6 properties, plus 6 saturation values; R7-97 Tables 5, 15, 33, 35, 36, 42relative error ≤ 1 × 10⁻⁶
IF97 backward equations24 T(p,h) and T(p,s) checks in Regions 1 and 2; R7-97 Tables 7, 9, 24, 29absolute temperature difference ≤ 0.010 or 0.025 K, per fixture
Viscosity + thermal conductivity19 checks; R12-08 Table 4 and R15-11 Tables 4, 7, 8relative error ≤ 1 × 10⁻⁷
NIST state cross-check10 P–T states × 5 properties: ρ, v, u, h, srelative difference ≤ 0.1%
NIST response-property cross-checkcp, cv, and speed of sound at the same 10 statesrelative difference ≤ 0.25%

The repository's CI workflow and configured Vercel deployment builds run these checks through npm run verify. A failed acceptance check stops that verification run before the application build. The limits describe agreement at the tested states; they are not uncertainty bounds for every state in the IF97 domain.

Forward and saturation checks use relative error. The P–h and P–s checks use absolute temperature differences of 0.010 or 0.025 K, as specified by each fixture. These checks exercise the public calculation path against the published backward check values; they do not report a measured worst-case error over the full domain.

NIST Chemistry WebBook supplies water reference data from a separate reference surface. The tests use a 0.1% limit for density, specific volume, internal energy, enthalpy, and entropy, and a separate 0.25% limit for cp, cv, and speed of sound at the ten benchmark states. These are project acceptance limits at the selected states.

The table lists the covered numerical benchmarks. Surface tension, static dielectric constant, and pKw do not currently have official numerical check fixtures in this suite.

Primary sources

Validity and limitations

Calculation limits

PhaseGauge supports 273.15–1073.15 K (0–800 °C) at pressures up to 100 MPa. Above 1073.15 K and up to 2273.15 K (2000 °C), the pressure limit is 50 MPa. All pressure limits here are absolute.

Single-phase pressure inputs start at 0.000611212677444 MPa, the IF97 saturation pressure at 273.15 K (0 °C). The P–x and T–x modes start at the triple point: 0.000611657 MPa and 273.16 K (0.01 °C). Saturation inputs must remain below the critical point: 22.064 MPa and 647.096 K (373.946 °C).

The pinned library applies mode-specific critical exclusions: P–T rejects the exact critical point T = 647.096 K and p = 22.064 MPa; T–h and T–s reject |T − 647.096 K| < 0.001 K at any pressure. Other inverse solves can reject critical endpoints or fail to converge. Nearby finite values remain available, including large heat capacities and isothermal compressibilities.

Ambiguous input pairs

On the liquid–vapor saturation boundary, P and T do not determine vapor quality. PhaseGauge rejects these P–T inputs; use P–x or T–x to specify saturated liquid (x = 0), saturated vapor (x = 1), or a mixture (0 < x < 1).

T–h and T–s can also match states at more than one pressure. The solver rejects ambiguous solutions. If pressure is known, use P–T away from saturation, P–h, or P–s; if quality is known, use P–x or T–x.

Near-critical states

PhaseGauge shows a near-critical advisory for states in the enlarged critical region defined in IAPWS R7-97(2012), Section 12, Figures 3–5: single-phase Region 3 states between the 0.0019 and 0.0069 m³/kg isochores and at or below 30 MPa. Saturation results receive the same advisory when either displayed endpoint lies in those bounds. IAPWS reports that heat-capacity and speed-of-sound uncertainties rise rapidly toward the critical point. This regional advisory supplies no numerical estimate of an individual result's error.

Supplemental properties

Supplemental properties have their own validity limits. The table describes availability in PhaseGauge within the calculator's pressure and temperature envelope. A dash (—) means that a value is unavailable or not reported for that state.

PropertyIAPWS releaseTemperature limit in PhaseGaugeSingle phase and saturated endpointsBulk wet-steam result, 0 < x < 1
Dynamic viscosity, μR12-08up to 1173.15 K (900 °C)Reported within the limit—
Thermal conductivity, λR15-11up to 1173.15 K (900 °C)Reported within the limit—
Surface tension, σR1-76(2014)saturation states from 273.16 K (0.01 °C), below 647.096 K (373.946 °C)Reported for saturated endpoints; — for single-phase resultsReported as a liquid–vapor interfacial property
Static dielectric constant, εR8-97up to 873 K (599.85 °C)Reported within the limit—
Ionization constant, pKwR11-24up to 1273.15 K (1000 °C)Reported within the limit—

Viscosity uses the industrial form without the near-critical enhancement term. Thermal conductivity uses the industrial correlation with critical enhancement when the required state inputs are available. Surface tension is an interfacial property, not a bulk mixture average.

Generated table rows are direct equation evaluations. Equipment limits, boundary conditions, governing codes, and safety factors remain part of the engineering analysis that uses these properties.

Run a calculation or inspect the generated saturation table.