epcsaft#

Declare fluid models and read native thermodynamic results.

Temperatures are in K, pressures in Pa and molar densities in mol/m³. Caloric state energies use J/mol; residual Helmholtz energies divided by RT are dimensionless. Equilibrium amounts use mol. Dimensionless logarithms use the natural logarithm unless named log10. Mixture and Pure own state evaluation; equilibrium declares phase and reaction problems, and regression declares parameter estimation. Native result types and exceptions are re-exported from _core.

epcsaft.provenance() → tuple[pathlib.Path, str] | tuple[str, bool]#

Identify the installed Engine and the source used by its editable build.

Returns:

identity – For an editable install, the Git commit string and a Boolean stating whether engine/ has no uncommitted or untracked files. For a wheel, its local Path and the SHA-256 digest of the wheel’s current bytes.

Return type:

tuple

Raises:

Notes

The import rebuilds the editable extension when needed. This identity does not establish numerical agreement or physical validity. Wheel identity is read from direct_url.json; malformed JSON and file read errors propagate.

Re-exported names#