Skip to content

v0.5.3 — Kalina model improvements + benchmark validation

Choose a tag to compare

@msotocalvo msotocalvo released this 26 Jul 01:33
· 11 commits to main since this release

Fixed

  • Seawater-pump efficiency override via the descriptive keys was silently ignored. otex.plant.sizing.seawater_pipe_sizing only read the legacy terse names (eff_hyd, eff_el); external callers overriding eff_sw_pump_hyd / eff_sw_pump_el got no effect and the 0.80/0.95 default was used regardless. Both aliases are now emitted by OTEXConfig.to_dict and honoured, with a warning if they diverge.
  • Kalina evaporator sizing over-counted the recuperator preheat. The legacy Rankine-shaped expression Q_evap = m_NH3 * (h_3 - h_2) in evaporator_sizing swept from pump exit all the way to separator vapour — effectively double-counting the recuperator duty and, as a side-effect, making the sizing insensitive to the separator split ratio f. Fixed to use m_basic * (h_evap_out - h_evap_in) when the cycle is Kalina; Rankine variants unchanged. At default f=0.30 P_net changes < 1 % across a Cuba-style regional run; the fix restores the expected physical sensitivity to f.

Added

  • otex/plant/kalina_optimizer.py — internal design-point optimiser for Kalina/Uehara cycles. Grid-searches (x_basic, f, ΔT_WW, ΔT_CW, T_pinch_evap, T_pinch_cond, p_cond_frac) with an optional refinement pass to maximise net electrical output at a given seawater condition and gross-power target. Emulates the "flexible Matlab suite" approach of Ciappi et al. (2024) and closes the standing gap where OTEX under-predicted Kalina performance at externally-specified design points.
  • inputs['p_evap_design'] and inputs['p_cond_design'] overrides in otex.plant.utils.saturation_pressures_and_temperatures. Mixture-cycle sizing previously coupled p_cond to the basic-solution bubble pressure at T_cond — a defensible baseline but the reason OTEX's Kalina under-predicted sub-cooled absorber designs. The new overrides let external callers (or the internal optimiser) decouple p_cond from the basic-solution curve, which matches the Ciappi Kalina benchmark within 0.1 % at their published (x=0.82, f=0.30, ΔT=2.2) design point when p_cond_design ≈ 0.5 × P_sat(basic, T_cond) is used.
  • scripts/benchmark_literature.py — single-site benchmark harness comparing OTEX against Bernardoni et al. (2019), Ciappi et al. (2024) Rankine and Kalina configurations, and Yeh et al. (2005). Includes a BERNARDONI_2019 custom CostScheme so the economic comparison uses the paper's own coefficients.

Validated

  • Bernardoni 2019 (NH3 Rankine, onshore, 3.936 MW gross): OTEX matches P_net within 0.0 %, LCOE within +2.5 %, and CAPEX within −1.9 % when using the paper's own physical inputs (pinch = 2.84 K, K_L = 55) and the BERNARDONI_2019 cost scheme.
  • Ciappi 2024 Rankine NH3 (offshore, 1.7 MW gross): OTEX matches P_net within −1.2 % at the paper's design point.
  • Ciappi 2024 Kalina (offshore, x = 0.82, f = 0.30): with the F.1 p_cond_design override the gap closes to −0.1 %; the internal Kalina optimiser exceeds the paper's reported net power by +16.3 % when allowed to search over all design variables, suggesting the paper's stated design point is not itself an optimum.

Regression

Head-to-head OTEX 0.5.3 vs 0.5.2 on a nine-combo Cuba-style single-site sweep:

cycle · fluid ΔP_net ΔLCOE
rankine_closed × {ammonia, R134a, R245fa, propane, isobutane} 0.000 % 0.000 %
rankine_open / seawater 0.000 % 0.000 %
rankine_hybrid / ammonia 0.000 % 0.000 %
kalina / ammonia +0.10 % −0.19 %
uehara / ammonia 0.000 % 0.000 %

Eight of nine combos are bit-identical; the Kalina delta is the intended effect of the evaporator-sizing fix at the default split ratio.