gtopt::HydrogenStorage struct

Hydrogen energy storage (gaseous / liquid / cavern).

Data-only definition. The LP formulation is provided by HydrogenStorageLP which inherits directly from StorageLP<>.

Public static variables

static LPClassName class_name

Public variables

OptActive active
Operational status (default: active).
OptTRealFieldSched annual_capcost
OptTRealFieldSched annual_derating
Annual derating factor.
OptTRealFieldSched annual_standing_loss
OptTRealFieldSched capacity
Installed storage size [MWh_LHV].
OptTRealFieldSched capmax
Absolute maximum capacity.
OptBool daily_cycle
OptTBRealFieldSched ecost
Holding cost [$/MWh_LHV] (optional).
OptReal efin
Minimum terminal stored energy [MWh_LHV].
OptReal efin_cost
Penalty per unit of efin shortfall [$/MWh_LHV].
OptReal eini
Initial stored energy [MWh_LHV].
OptTBRealFieldSched emax
Maximum stored energy [MWh_LHV].
OptTBRealFieldSched emin
OptTRealFieldSched expcap
Capacity per expansion module.
OptTRealFieldSched expmod
Maximum number of expansion modules.
OptSingleId hydrogen_node
OptTBRealFieldSched input_efficiency
OptBool integer_expmod
Integer-constrain the expmod variable.
Name name
Human-readable name.
OptTBRealFieldSched output_efficiency
OptTBRealFieldSched soft_emin
Soft minimum SoC [MWh_LHV].
OptTBRealFieldSched soft_emin_cost
Penalty on soft-emin shortfall.
OptName type
Uid uid
Unique identifier.
OptBool use_state_variable

Variable documentation

static LPClassName gtopt::HydrogenStorage::class_name

Canonical class-name constant used in LP row labels and PAMPL element resolution. Matches hydrogen_storage_array in JSON.

OptTRealFieldSched gtopt::HydrogenStorage::annual_capcost

Annualised investment cost [$/MWh_LHV-year].

OptTRealFieldSched gtopt::HydrogenStorage::annual_standing_loss

Self-discharge [p.u./year]. Salt cavern: < 0.01. LH₂: 0.5% per day → 0.18 per year.

OptBool gtopt::HydrogenStorage::daily_cycle

PLP-style daily-cycle scaling. Default false for H₂: hydrogen storage is the canonical seasonal / multi-week store.

OptTBRealFieldSched gtopt::HydrogenStorage::emin

Minimum stored energy [MWh_LHV]. Salt caverns require a "cushion gas" inventory below which the cavern collapses → maps to a hard emin.

OptSingleId gtopt::HydrogenStorage::hydrogen_node

Reference to a HydrogenNode (NOT a Bus and NOT an AmmoniaNode). The validator resolves this against system.hydrogen_node_array.

OptTBRealFieldSched gtopt::HydrogenStorage::input_efficiency

Compression / liquefaction efficiency [p.u.]. Salt cavern ≈ 0.95; LH₂ ≈ 0.7.

OptTBRealFieldSched gtopt::HydrogenStorage::output_efficiency

Withdrawal efficiency [p.u.] (pressure-reduction / re-gasification losses).

OptName gtopt::HydrogenStorage::type

Optional tag ("salt_cavern", "high_pressure", "lh2", "lohc", "metal_hydride", …)

OptBool gtopt::HydrogenStorage::use_state_variable

SDDP-style cross-phase coupling. Default true — H₂ is a seasonal / multi-week store.