From 529c957cfea9cc9f0323c27cf5b45b6aab47a10e Mon Sep 17 00:00:00 2001 From: Ethan Hill Date: Tue, 6 Oct 2026 21:57:29 -0400 Subject: [PATCH] psychro-chart: mix OA and RA through Psychro.mixAir, by mass (#228 step 1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The chart blended OA and RA inline: W and h weighted by the % OA, the dry-bulb backed out of h, then buildState — which clamps W to saturation and keeps the cold, pre-#236 dry-bulb when the mix fogs. The engine's mixAir (step 0, #651) does the same blend through the mixStreams kernel and re-solves a fogged mix onto the curve, so the page now calls it and the #236 ruling reaches this surface. Clear of saturation the displayed MA state is unchanged: six of the seven engine-standardization §1 rows read identically off the built page before and after, in both unit systems. The fog-corner row moves 10.4 -> 17.7 °F, 9.4 -> 13.4 gr/lb, h 3.93 -> 6.29 Btu/lb — the intended correction (design note §1: 10.42 -> 17.67 °F). - html/tools/psychrometric-chart.html: solveChain's MA step calls Psychro.mixAir({ basis: 'mass' }) and takes exact; an ok:false result mutes the MA readouts and sets the status message like the other stages. The % OA label reads "Outdoor air (% by mass)" and the MA ref-note says the % is of dry-air mass flow, not CFM, and what happens when the mixed point lands past the curve. Refs: codebase-issues#228 Co-Authored-By: Claude Fable 5.1 --- html/tools/psychrometric-chart.html | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/html/tools/psychrometric-chart.html b/html/tools/psychrometric-chart.html index 7e1f8eb0..7d4404c1 100644 --- a/html/tools/psychrometric-chart.html +++ b/html/tools/psychrometric-chart.html @@ -331,10 +331,10 @@
- +
-

Mass-weighted mix of OA and RA. The mixed point falls on the straight line between OA and RA on the chart, at the OA% fraction of the way from RA to OA.

+

Mass-weighted mix of OA and RA — the % is a share of the dry-air mass flow, not of CFM. The mixed point falls on the straight line between OA and RA on the chart, at the OA% fraction of the way from RA to OA. If that point lands past the saturation curve, the excess moisture condenses as fog and the mixed point settles onto the curve instead.

MA dry-bulb (°F)—
MA humidity ratio (gr/lb)—
MA rel. humidity (%)—
@@ -661,19 +661,24 @@