From 41b2206a0f6c0d28eaaeaee2364f44465c1c05e0 Mon Sep 17 00:00:00 2001 From: Codex Agent Date: Fri, 28 Nov 2025 20:05:41 +0100 Subject: [PATCH] Add chemistry/fouling telemetry to dashboard --- src/reactor_sim/dashboard.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/reactor_sim/dashboard.py b/src/reactor_sim/dashboard.py index 3c1cc7e..fd95c01 100644 --- a/src/reactor_sim/dashboard.py +++ b/src/reactor_sim/dashboard.py @@ -736,9 +736,11 @@ class ReactorDashboard: def _heat_exchanger_lines(self, state: PlantState) -> list[tuple[str, str]]: delta_t = getattr(state, "primary_to_secondary_delta_t", 0.0) eff = getattr(state, "heat_exchanger_efficiency", 0.0) + hx_fouling = getattr(state, "hx_fouling", 0.0) return [ ("ΔT (pri-sec)", f"{delta_t:6.1f} K"), ("HX Eff", f"{eff*100:6.1f}%"), + ("Chem/Foul", f"O2 {getattr(state, 'dissolved_oxygen_ppm', 0.0):5.1f} ppm Na {getattr(state, 'sodium_ppm', 0.0):5.1f} ppm Foul {hx_fouling*100:5.1f}%"), ] def _protection_lines(self, state: PlantState) -> list[tuple[str, str]]: