AmmoniaStorage struct
#include <gtopt/ammonia_storage.hpp>
Ammonia (NH₃) energy storage — long-term H₂ carrier.
Data-only definition. The LP formulation is provided by AmmoniaStorageLP which inherits directly from StorageLP<>.
Public static variables
- static LPClassName class_name
Public variables
- OptActive active
- Operational status (default: active).
- OptSingleId ammonia_node
- OptTRealFieldSched annual_capcost
- Annualised investment cost [$/MWh_LHV-year].
- OptTRealFieldSched annual_derating
- Annual derating factor.
- OptTRealFieldSched annual_standing_loss
- OptTRealFieldSched capacity
- 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
- Minimum stored energy [MWh_LHV].
- OptTRealFieldSched expcap
- Capacity per expansion module.
- OptTRealFieldSched expmod
- Maximum number of expansion modules.
- 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:: AmmoniaStorage:: class_name
Canonical class-name constant used in LP row labels and PAMPL element resolution. Matches ammonia_storage_array in JSON.
OptSingleId gtopt:: AmmoniaStorage:: ammonia_node
Reference to an AmmoniaNode (NOT a HydrogenNode and NOT a Bus). Resolved against system.ammonia_node_array.
OptTRealFieldSched gtopt:: AmmoniaStorage:: annual_standing_loss
Self-discharge from boil-off [p.u./year]. Refrigerated NH₃ tank ≈ 0.015–0.035 (0.04–0.1% per day). Substantially smaller than LH₂ boil-off (~0.18/year).
OptTRealFieldSched gtopt:: AmmoniaStorage:: capacity
Installed storage size [MWh_LHV]. Typical merchant terminal: 30–60 kt → 155–310 GWh_LHV.
OptBool gtopt:: AmmoniaStorage:: daily_cycle
PLP-style daily-cycle scaling. Default false — NH₃ tanks span months, not days.
OptTBRealFieldSched gtopt:: AmmoniaStorage:: input_efficiency
Charging (synthesis-side) round-trip share captured downstream of Haber-Bosch. Default 1.0 — Haber-Bosch efficiency is modelled on the Converter that feeds this storage, not here.
OptTBRealFieldSched gtopt:: AmmoniaStorage:: output_efficiency
Withdrawal (cracker / combustor) round-trip share captured downstream of the converter. Default 1.0.
OptBool gtopt:: AmmoniaStorage:: use_state_variable
SDDP-style cross-phase coupling. Default true — NH₃ is the canonical seasonal carrier.