Add pressurizer and coolant inventory controls

This commit is contained in:
Codex Agent
2025-11-23 19:43:57 +01:00
parent 86baa43865
commit ba4505701a
6 changed files with 146 additions and 3 deletions

View File

@@ -43,6 +43,8 @@ class CoolantLoopState:
pressure: float # MPa
mass_flow_rate: float # kg/s
steam_quality: float # fraction of vapor
inventory_kg: float = 0.0 # bulk mass of coolant
level: float = 1.0 # fraction full relative to nominal volume
def average_temperature(self) -> float:
return 0.5 * (self.temperature_in + self.temperature_out)