Repository navigation
Kalina and Uehara rebuilt on a consistent ammonia-water model, every design chosen by cost, and off-design operation that stays within what the plant can transfer. The full list is in CHANGELOG.md.
Highlights
- Ammonia-water mixture with pressure-dependent vapour properties. The old model took vapour enthalpy and entropy from the temperature alone, so Kalina and Uehara beat the Carnot limit. Both cycles are rebuilt on the new properties: the evaporator pressure, the split ratio and the condenser outlet follow from the state of the basic solution.
- The temperature glide of the mixture is credited. The separator and the condenser outlet of Kalina and Uehara come from a pinch analysis along both exchangers (
glide_design), and both exchangers are sized along the temperature profiles of the two streams (newotex.plant.heat_exchangers). - The Uehara cycle has its extraction and feed heater (Uehara, Ikegami & Nishida, 1998); it was the Kalina loop with a two-stage turbine. Uehara plants are no longer sized for 41 % more working fluid than their cycle needs, and the Kalina pump moves the whole basic solution.
- Designs are chosen by cost.
optimize_kalina_designminimises the LCOE at the design point (it maximised net power, which costs 7-8 % more per kWh). The seawater temperature drops searched for the lowest LCOE span 2-8 K warm and 2-10 K cold (they stopped at 5 K).optimize_sitefollows L-BFGS-B with a pattern search that crosses the steps of the objective. - Off-design operation stays within the exchangers. The new
heat_exchanger_regulationlimits the turbine flow to what both exchangers can transfer each hour; Kalina and Uehara keep their design state; pure fluids use their own saturation line; the hybrid flash-steam turbine and the vacuum system of the open and hybrid cycles count; the open cycle runs on the saturation line of water.
Results
With the drops chosen per site, as the regional pipeline does, Kalina comes out 10-12 % below closed Rankine in LCOE and Uehara another 0.6 % below Kalina: over 2103 synthetic sites with 26-28.5 °C warm water and 4.6-5.4 °C cold water, the mean LCOE is 24.0-26.4 ct/kWh for closed Rankine, 21.7-23.3 for Kalina and 21.6-23.2 for Uehara. A one-year regional run of those sites takes about 11 minutes with Kalina, 10 with Uehara and 5.5 with closed Rankine on one core.
Breaking changes
- Mixture-cycle defaults: basic solution 95 % ammonia (was 70 %), split ratio 0.70 for Kalina and Uehara (was 0.30 / 0.20), Uehara extraction pressure fraction 0.25.
- Kalina / Uehara state keys follow the numbering of Uehara et al. (1998); the legacy keys are removed (listed in the changelog).
optimize_kalina_designneeds the distance to shore (dist_shore=orinputs['dist_shore']);objective='p_net'keeps the old criterion.p_cond_frac_gridvalues below 1.0 raiseValueError.TemperatureDeltasspans 2-8 K / 2-10 K andDEFAULT_BOUNDS1-8 K / 1-10 K;otex-regional-optimal --dT-maxdefaults to those bounds.ValueErrorfor a positive or zerop_gross, a split ratio outside 0-1, ap_evap_design/p_cond_designthat leaves less than the design pinch, andeff_hyd/eff_sw_pump_hyd(oreff_el/eff_sw_pump_el) given with different values.Efficiencies.transmissiondefaults to 1.0 (it was a 0.0 placeholder).- Removed:
initial_NTU_and_epsilon,evaporator_regulation,condenser_regulation. - Hours in which a plant cannot deliver net power give zero output instead of NaN.
- Existing CMEMS / HYCOM downloads are checked for data source and coverage before reuse; a mismatch raises
CachedFileMismatch.
Other fixes
- The quickstart reported zero net power;
otex.__version__was stuck at 0.3.1. otec_sizingaccepts 2-D arrays, lists and tuples; single-site results with CoolProp fluids are arrays throughout;capex_opex_lcoereturns one value per site for 1-D multi-site input.- A non-default
threshold_AC_DCcrashed CMEMS processing and was ignored by the cable cost. on_design_analysisworks with unequal drop ranges and honours their lower bounds.- Pure fluids evaporate and condense exactly one pinch from the seawater outlets (they were rounded to 0.1 K).
- Off-design operation pumps seawater with the efficiency the plant was sized for.
- One infeasible design no longer changes the pipes of the other designs of a batch.
- The polynomial ammonia inverts its saturation curve element by element.
02_regional_analysis.ipynband the documented examples run as written.