Retarget pump pressures to RBMK-like nominal values

This commit is contained in:
Codex Agent
2025-11-22 23:49:15 +01:00
parent 64eed8a539
commit faf603d2c5
2 changed files with 8 additions and 2 deletions

View File

@@ -230,7 +230,9 @@ class Reactor:
if self.primary_pump_active:
total_flow = 0.0
target_pressure = (12.0 * pump_demand + 2.0) * power_ratio
target_pressure = (
0.5 + (constants.PRIMARY_NOMINAL_PRESSURE - 0.5) * pump_demand
) * power_ratio
loop_pressure = 0.5
target_flow = self.primary_pump.flow_rate(pump_demand) * power_ratio
for idx, pump_state in enumerate(state.primary_pumps):
@@ -280,7 +282,9 @@ class Reactor:
pump_state.status = "STOPPING" if pump_state.flow_rate > 1.0 else "OFF"
if self.secondary_pump_active:
total_flow = 0.0
target_pressure = 12.0 * 0.75 + 2.0
target_pressure = (
0.5 + (constants.SECONDARY_NOMINAL_PRESSURE - 0.5) * 0.75
) * power_ratio
loop_pressure = 0.5
target_flow = self.secondary_pump.flow_rate(0.75) * power_ratio
for idx, pump_state in enumerate(state.secondary_pumps):