aquakin.MassBalance#
- class aquakin.MassBalance(components, window, influent_ports=<factory>, effluent_ports=<factory>, gas_detail=<factory>)[source]#
Bases:
objectPer-component closure of a plant over a simulation window.
Returned by
aquakin.plant.Plant.mass_balance(). Index it by component name (mb["COD"]->ComponentBalance) and callclosed()for a pass/fail, orsummary()for a printable table.- Parameters:
components (dict[str, ComponentBalance])
window (tuple[float, float])
influent_ports (list[str])
effluent_ports (list[str])
gas_detail (dict[str, float])
- __init__(components, window, influent_ports=<factory>, effluent_ports=<factory>, gas_detail=<factory>)#
- Parameters:
components (dict[str, ComponentBalance])
window (tuple[float, float])
influent_ports (list[str])
effluent_ports (list[str])
gas_detail (dict[str, float])
- Return type:
None
Methods
__init__(components, window[, ...])closed([rtol])True when every component's
relative_imbalanceis withinrtol.summary()A printable per-component table (canonical g over the window).
Attributes
componentswindowinfluent_portseffluent_portsgas_detail