enex_analysis.components package¶
Submodules¶
enex_analysis.components.electric_heater module¶
enex_analysis.components.fan module¶
enex_analysis.components.pump module¶
- class enex_analysis.components.pump.Pump[source]¶
Bases:
objectPump performance dataclass with curve-fit interpolation.
Stores flow-rate vs efficiency data for two reference pumps. Provides cubic curve-fit prediction of efficiency and power draw.
- get_efficiency(pump, dV_pmp)[source]¶
Return pump efficiency via cubic curve fit.
- Parameters:
pump (dict) – Reference pump data (
self.pump1orself.pump2).dV_pmp (float) – Volume flow rate [m³/s].
- get_power(pump, V_pmp, dP_pmp)[source]¶
Compute pump power consumption.
- Parameters:
pump (dict) – Reference pump data.
V_pmp (float) – Volume flow rate [m³/s].
dP_pmp (float) – Pressure rise [Pa].
- Returns:
Electrical power draw [W].
- Return type:
float
- show_graph()[source]¶
Plot flow-rate vs efficiency curves for all pumps.
Raw datapoints are shown as dots; cubic curve fits as lines.
- Raises:
ImportError – If
dartwork_mplis not installed.
- __init__()¶