Expose heat exchanger diagnostics and retune conductance
This commit is contained in:
@@ -443,6 +443,7 @@ class ReactorDashboard:
|
||||
)
|
||||
right_y = self._draw_section(right_win, right_y, "Generators", self._generator_lines(state))
|
||||
right_y = self._draw_section(right_win, right_y, "Power Stats", self._power_lines(state))
|
||||
right_y = self._draw_section(right_win, right_y, "Heat Exchanger", self._heat_exchanger_lines(state))
|
||||
right_y = self._draw_section(right_win, right_y, "Protections / Warnings", self._protection_lines(state))
|
||||
right_y = self._draw_section(right_win, right_y, "Maintenance", self._maintenance_lines())
|
||||
self._draw_health_bars(right_win, right_y)
|
||||
@@ -603,6 +604,14 @@ class ReactorDashboard:
|
||||
]
|
||||
return lines
|
||||
|
||||
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)
|
||||
return [
|
||||
("ΔT (pri-sec)", f"{delta_t:6.1f} K"),
|
||||
("HX Eff", f"{eff*100:6.1f}%"),
|
||||
]
|
||||
|
||||
def _protection_lines(self, state: PlantState) -> list[tuple[str, str]]:
|
||||
lines: list[tuple[str, str]] = []
|
||||
lines.append(("SCRAM", "ACTIVE" if self.reactor.shutdown else "CLEAR"))
|
||||
|
||||
Reference in New Issue
Block a user