Add spool dynamics for pumps and turbines

This commit is contained in:
Codex Agent
2025-11-22 19:13:57 +01:00
parent e18f100e15
commit e81a9fdbe3
6 changed files with 144 additions and 38 deletions

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from dataclasses import dataclass
import logging
from . import constants
from .state import CoolantLoopState
LOGGER = logging.getLogger(__name__)
@@ -14,6 +15,7 @@ LOGGER = logging.getLogger(__name__)
class Pump:
nominal_flow: float
efficiency: float = 0.9
spool_time: float = constants.PUMP_SPOOL_TIME
def flow_rate(self, demand: float) -> float:
demand = max(0.0, min(1.0, demand))