Expose heat exchanger diagnostics and retune conductance

This commit is contained in:
Codex Agent
2025-11-23 11:05:36 +01:00
parent 4861fa4320
commit 01fec1df42
4 changed files with 19 additions and 2 deletions

View File

@@ -351,6 +351,8 @@ class Reactor:
transferred = 0.0
else:
transferred = heat_transfer(state.primary_loop, state.secondary_loop, total_power)
state.primary_to_secondary_delta_t = max(0.0, state.primary_loop.temperature_out - state.secondary_loop.temperature_in)
state.heat_exchanger_efficiency = 0.0 if total_power <= 0 else min(1.0, max(0.0, transferred / total_power))
self.thermal.step_secondary(state.secondary_loop, transferred)
self._step_turbine_bank(state, transferred, dt)