carrier_converter.hpp file
Multi-carrier energy converter (electrolyser, fuel cell, HB, …).
CarrierConverter bridges any pair of carrier-typed balance nodes. One input unit at the from node produces efficiency units at the to node — same shape as a one-stage chemical / thermal / electrochemical converter:
from = Electric, to = Hydrogen→ electrolyser (η ≈ 0.7)from = Hydrogen, to = Electric→ fuel cell (η ≈ 0.5)from = Hydrogen, to = Ammonia→ Haber-Bosch (η ≈ 0.7)from = Ammonia, to = Hydrogen→ NH₃ cracker (η ≈ 0.7)from = Electric, to = Thermal→ e-boiler / e-heaterfrom = Thermal, to = Electric→ CSP power block (η ≈ 0.4)
Composing two converters with the appropriate efficiencies gives the full P2H2 + H2P round trip (~35%) and the P2NH3 + NH3-to-P chain (~25–30%) cited in the literature (Acar & Dincer 2018; NREL/TP- 5400-89569; MacFarlane et al., Joule 2020).
The carrier of each side is encoded explicitly via the Carrier enum (no magic strings). The validator resolves from_node / to_node against the matching XxxNode array; mistakenly pointing an electrolyser's output at a thermal node fails at planning time.
Namespaces
- namespace gtopt
Classes
- struct gtopt::CarrierConverter
- One-stage flow converter between two carrier-typed nodes.