Expand description
Typed ideal-gas state and reference-condition conversions.
This crate applies PV = nRT to validated scalar quantities. Pressure is
always absolute and temperature is always stored in kelvin.
Structs§
- Amount
- A finite, positive amount of substance stored in moles.
- GasCondition
- Pressure and temperature defining a gas reference condition.
- Ideal
GasState - A complete equilibrium state satisfying the ideal gas equation.
- Pressure
- A finite, positive absolute pressure stored in pascals.
- Temperature
- A finite, positive absolute temperature stored in kelvin.
- Volume
- A finite, positive volume stored in cubic meters.
- Volumetric
Flow - A finite, non-negative volumetric flow stored in cubic meters per second.
Enums§
- GasError
- Invalid quantity or a result outside finite positive numeric range.
Constants§
- MOLAR_
GAS_ CONSTANT - Molar gas constant in joules per mole-kelvin.
Functions§
- convert_
flow - Converts ideal-gas volumetric flow between pressure and temperature conditions.
- convert_
volume - Converts an ideal-gas volume between pressure and temperature conditions.