A partial implementation of the IAPWS-IF97 steam table calculations in Rust.
There's still a lot of work to be done, but we'll get there eventually :)
Reference: http://www.iapws.org/relguide/IF97-Rev.html
I've also drawn some inspiration from the C++ library CoolProp: https://github.com/CoolProp/IF97
Here you can find the current status of each of the calculations implemented so far. Some of them have been implemented, but not thoroughly tested, so use them at your own risk.
- Forward equations
| Property | Implemented | Tested | Available via public interface |
|---|---|---|---|
| Specific volume | ✔️ | ✔️ | ✔️ |
| Specific internal energy | ✔️ | ✔️ | ✔️ |
| Specific entropy | ✔️ | ✔️ | ✔️ |
| Specific enthalpy | ✔️ | ✔️ | ✔️ |
| Specific isobaric heat capacity | ✔️ | ✔️ | ✔️ |
| Specific isochoric heat capacity | ✔️ | ✔️ | ✔️ |
| Speed of sound | ✔️ | ✔️ | ✔️ |
- Backward equations
| Equation | Implemented | Tested | Available via public interface |
|---|---|---|---|
| T(p,h) | ✔️ | ✔️ | ✔️ |
| T(p,s) | ✔️ | ✔️ | ✔️ |
- Forward equations
| Property | Implemented | Tested | Available via public interface |
|---|---|---|---|
| Specific volume | ✔️ | ✔️ | ✔️ |
| Specific internal energy | ✔️ | ✔️ | ✔️ |
| Specific entropy | ✔️ | ✔️ | ✔️ |
| Specific enthalpy | ✔️ | ✔️ | ✔️ |
| Specific isobaric heat capacity | ✔️ | ✔️ | ✔️ |
| Specific isochoric heat capacity | ✔️ | ✔️ | ✔️ |
| Speed of sound | ✔️ | ✔️ | ✔️ |
- Backward equations
| Equation | Implemented | Tested | Available via public interface |
|---|---|---|---|
| T(p,h) | ✔️ | ✔️ | ✔️ |
| T(p,s) | ✔️ | ✔️ | ✔️ |
- Forward equations
| Property | Implemented | Tested | Available via public interface |
|---|---|---|---|
| Pressure | ✔️ | ✔️ | ✔️ |
| Specific internal energy | ✔️ | ✔️ | ✔️ |
| Specific entropy | ✔️ | ✔️ | ✔️ |
| Specific enthalpy | ✔️ | ✔️ | ✔️ |
| Specific isochoric heat capacity | ✔️ | ✔️ | ✔️ |
| Specific isobaric heat capacity | ✔️ | ✔️ | ✔️ |
| Speed of sound | ✔️ | ✔️ | ✔️ |
| Property | Implemented | Tested | Available via public interface |
|---|---|---|---|
| Saturation pressure | ✔️ | ✔️ | ✔️ |
| Saturation temperature | ✔️ | ✔️ | ✔️ |
- Forward equations
| Property | Implemented | Tested | Available via public interface |
|---|---|---|---|
| Specific volume | ✔️ | ✔️ | ✔️ |
| Specific internal energy | ✔️ | ✔️ | ✔️ |
| Specific entropy | ✔️ | ✔️ | ✔️ |
| Specific enthalpy | ✔️ | ✔️ | ✔️ |
| Specific isobaric heat capacity | ✔️ | ✔️ | ✔️ |
| Specific isochoric heat capacity | ✔️ | ✔️ | ✔️ |
| Speed of sound | ✔️ | ✔️ | ✔️ |