Skip to main content

Crate gas_force

Crate gas_force 

Source
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.
IdealGasState
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.
VolumetricFlow
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.