How it computes the air state
Moist air is fixed by three things: dry-bulb temperature, one moisture property, and total (barometric) pressure. From those, every other property follows from the standard ASHRAE relations.
- Saturation pressure at any temperature comes from the Hyland–Wexler correlation (over water above 32 °F, over ice below).
- Humidity ratio W is 0.621945 × Pv / (P − Pv). RH sets Pv directly; wet-bulb and dew point set it through their own relations.
- Wet-bulb is solved by iteration — there is no algebraic formula — and dew point by inverting the saturation curve.
- Enthalpy = 0.240·Tdb + W·(1061 + 0.444·Tdb), and density from the ideal-gas relation with the moisture correction.
Results track a published psychrometric chart to within about 1% across the comfort range. Feed the grains and enthalpy differences into the CFM · BTU · ΔT calculator for latent and total capacity.