thermopt.components.components_offdesign module#
Off-design component models for fixed hardware: pump map, turbine map, equivalent nozzle and heat-exchanger UA integration. SI units.
- class thermopt.components.components_offdesign.PumpMap(design_speed, design_volumetric_flow, design_head, shutoff_head_ratio, design_efficiency)[source]#
Bases:
objectVariable-speed pump anchored at a design point (analytical, not validated against pump data).
- Similarity variables:
r = omega / omega_d, phi = Q_v / (r Q_v,d), k = H_shutoff / H_d
- Head (parabola: k H_d at phi = 0, H_d at phi = 1, zero at phi0 = sqrt(k / (k - 1))):
H = H_d r^2 [k - (k - 1) phi^2]
- Shaft power (assumed quadratic in phi):
P = rho g Q_v,d H_d r^3 D(phi) / eta_d, D(phi) = (k - 1/2) + (3/2 - k) phi^2 D(1) = 1 gives P = rho g Q_v,d H_d / eta_d at design; the phi^2 coefficient puts the efficiency peak at phi = 1.
- Efficiency from eta = rho g Q_v H / P:
eta = eta_d phi [k - (k - 1) phi^2] / D(phi) eta = eta_d at phi = 1, eta = 0 at phi = 0 and phi = phi0.
Head is isentropic: H = [h(p2, s1) - h1] / g.
Methods
efficiency
flow_coefficient
from_dict
head
to_dict
- thermopt.components.components_offdesign.find_choked_state(fluid, h0, s0, T_min)[source]#
Maximum isentropic mass flux for stagnation state (h0, s0).
Returns
(state_star, G_star, v_star). Adapted fromflashing_nozzle_design.functions.find_choked_state(github.com/turbo-sim/ flashing_nozzle_design, commit f2c3ceb): search up to v_max without a fallback interval, DomainError below T_min.
- thermopt.components.components_offdesign.integrate_ua(hx, m_cold, delta=0.2)[source]#
Required UA of a
heat_exchangerprofile (cold inlet to cold outlet).UA = sum_i m_c (h_c,i+1 - h_c,i) / dT_lm,i. Approaches below
deltaare replaced by delta exp((dT - delta) / delta) (same value and slope at delta), so crossed profiles give a large but finite UA (overflow beyond about 700 delta of crossing); exact when all approaches are >= delta.