Add delayed kinetics and steam-drum balance

This commit is contained in:
Codex Agent
2025-11-24 00:06:08 +01:00
parent 9dc4ca7733
commit f6ff6fc618
9 changed files with 163 additions and 16 deletions

View File

@@ -95,6 +95,7 @@ class Reactor:
reactivity_margin=-0.02,
power_output_mw=0.1,
burnup=0.0,
delayed_precursors=[0.0 for _ in constants.CONTROL_ROD_BANK_WEIGHTS],
fission_product_inventory={},
emitted_particles={},
)
@@ -387,7 +388,7 @@ class Reactor:
else:
transferred = heat_transfer(state.primary_loop, state.secondary_loop, total_power)
self.thermal.step_core(state.core, state.primary_loop, total_power, dt)
self.thermal.step_secondary(state.secondary_loop, transferred)
self.thermal.step_secondary(state.secondary_loop, transferred, dt)
self._apply_secondary_boiloff(state, dt)
self._update_loop_inventory(
state.secondary_loop, constants.SECONDARY_LOOP_VOLUME_M3, constants.SECONDARY_INVENTORY_TARGET, dt