lng_terminal.hpp file
Defines the LngTerminal structure representing an LNG storage terminal.
This file defines the gtopt::LngTerminal structure, which models a Liquefied Natural Gas (LNG) storage terminal within a power system. An LNG terminal stores fuel that is regasified and consumed by linked thermal generators, subject to tank volume limits, boil-off losses, delivery schedules, and regasification capacity constraints.
Unit conventions
| Field | Unit | Description | |-----------------------—|------------------—|--------------------------------—| | emin, emax, eini, efin | m³ | LNG volume in tank | | ecost | $/m³ | Holding cost per m³ stored | | annual_standing_loss | p.u./year | Boil-off gas fraction per year | | sendout_max, sendout_min | m³/h | Regasification rate limits | | delivery | m³/stage | Total LNG delivered per stage | | spillway_cost | $/m³ | Penalty for venting LNG | | spillway_capacity | m³/h | Max venting rate | | scost | $/m³ | SDDP state penalty (× mpf → $/MWh) | | mean_production_factor | MWh/m³ | Energy content of LNG | | soft_emin, soft_emin_cost| m³, $/m³ | Soft lower bound and penalty | | flow_conversion_rate | m³/(m³/h · h) | Default 1.0 (identity) | | heat_rate (LngGeneratorLink) | m³_LNG/MWh | Fuel per MWh of electrical output |
The default flow_conversion_rate = 1.0 means flow [m³/h] × hours → m³ (no unit conversion needed). Set to a different value when using energy-based units (e.g. MMBtu) instead of volumetric (m³).
JSON Example
{ "uid": 1, "name": "GNL_Quintero", "emin": 5000, "emax": 150000, "eini": 80000, "sendout_max": 2000, "delivery": [50000, 0, 50000, 0], "spillway_cost": 100, "annual_standing_loss": 0.001, "use_state_variable": true, "generators": [ {"generator": 10, "heat_rate": 0.18}, {"generator": 11, "heat_rate": 0.20} ] }
Namespaces
- namespace gtopt
Classes
- struct gtopt::LngGeneratorLink
- Link between an LNG terminal and a thermal generator.
- struct gtopt::LngTerminal
- LNG storage terminal in a power system.