Zero aux demand when idle with rods in
This commit is contained in:
@@ -204,7 +204,11 @@ class Reactor:
|
|||||||
]
|
]
|
||||||
any_units = any(primary_units_active) or any(secondary_units_active) or any(self.turbine_unit_active)
|
any_units = any(primary_units_active) or any(secondary_units_active) or any(self.turbine_unit_active)
|
||||||
load_present = any_units or (self.consumer and self.consumer.online)
|
load_present = any_units or (self.consumer and self.consumer.online)
|
||||||
aux_base = constants.BASE_AUX_LOAD_MW if not self.shutdown or load_present else 0.0
|
idle_core = state.core.power_output_mw < 1.0 and self.control.rod_fraction >= 0.9
|
||||||
|
if (self.shutdown and not load_present and idle_core):
|
||||||
|
aux_base = 0.0
|
||||||
|
else:
|
||||||
|
aux_base = constants.BASE_AUX_LOAD_MW
|
||||||
aux_pump_primary = constants.PUMP_POWER_MW * sum(primary_units_active)
|
aux_pump_primary = constants.PUMP_POWER_MW * sum(primary_units_active)
|
||||||
aux_pump_secondary = constants.PUMP_POWER_MW * sum(secondary_units_active)
|
aux_pump_secondary = constants.PUMP_POWER_MW * sum(secondary_units_active)
|
||||||
aux_demand = aux_base + aux_pump_primary + aux_pump_secondary
|
aux_demand = aux_base + aux_pump_primary + aux_pump_secondary
|
||||||
|
|||||||
Reference in New Issue
Block a user