gtopt::ThermalStorage struct

Thermal Energy Storage (sensible / latent / molten-salt).

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

Public static variables

static LPClassName class_name

Public variables

OptActive active
Operational status (default: active).
OptTRealFieldSched annual_capcost
Annualized investment cost [$/MWh_th-year].
OptTRealFieldSched annual_derating
Annual capacity derating factor [p.u./year].
OptTRealFieldSched annual_standing_loss
OptTRealFieldSched capacity
Installed thermal capacity [MWh_th].
OptTRealFieldSched capmax
Absolute maximum capacity [MWh_th].
OptBool daily_cycle
OptTBRealFieldSched ecost
OptReal efin
Minimum terminal SoC [MWh_th].
OptReal efin_cost
Penalty per unit of efin shortfall [$/MWh_th].
OptReal eini
Initial thermal SoC [MWh_th].
OptTBRealFieldSched emax
OptTBRealFieldSched emin
OptTRealFieldSched expcap
Capacity per expansion module [MWh_th].
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_th].
OptTBRealFieldSched soft_emin_cost
Penalty on soft-emin shortfall [$/MWh_th].
OptSingleId thermal_node
OptName type
Optional tag (e.g. "molten_salt", "concrete").
Uid uid
Unique identifier.
OptBool use_state_variable

Variable documentation

static LPClassName gtopt::ThermalStorage::class_name

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

OptTRealFieldSched gtopt::ThermalStorage::annual_standing_loss

TES self-discharge [p.u./year]. Typical 0.05 (≈ 5%/year ≈ 1 °C/day on a two-tank molten salt system).

OptBool gtopt::ThermalStorage::daily_cycle

PLP-style daily-cycle scaling. Default false for CSP (TES typically spans more than 24 h).

OptTBRealFieldSched gtopt::ThermalStorage::ecost

Storage usage cost [$/MWh_th]; optional holding penalty, usually 0.

OptTBRealFieldSched gtopt::ThermalStorage::emax

Maximum thermal SoC [MWh_th] — useful TES capacity (hot-tank − cold-tank Δ in stored-energy terms). 100 MW_e plant × 6 h × 0.4 Rankine η = 1500 MWh_th.

OptTBRealFieldSched gtopt::ThermalStorage::emin

Minimum thermal SoC [MWh_th]. The molten-salt freezing heel — TES cannot fall below the energy corresponding to the cold-tank floor temperature (≈230 °C for solar-salt 60/40 NaNO₃/KNO₃).

OptTBRealFieldSched gtopt::ThermalStorage::input_efficiency

Charging efficiency [p.u.] per-(stage, block). Captures HTF→salt heat-exchanger losses.

OptTBRealFieldSched gtopt::ThermalStorage::output_efficiency

Discharging efficiency [p.u.] per-(stage, block). Captures salt→HTF losses.

OptSingleId gtopt::ThermalStorage::thermal_node

Reference to a ThermalNode (NOT a Bus). The validator resolves this against system.thermal_node_array; mistakenly pointing at an electric bus is rejected at planning time.

OptBool gtopt::ThermalStorage::use_state_variable

SDDP-style cross-phase coupling. Default true for CSP (multi-day inertia common).