fuel.hpp file
Defines the Fuel structure (price + heat content + emission factors).
A Fuel is a passive data carrier that bundles the time-schedulable price, heat content and emission factors of a primary energy source (natural gas, diesel, coal, …). Generators that reference a Fuel via Generator.fuel together with a heat_rate derive:
effective_gcost = fuel.price × heat_rate + Generator.gcost effective_ef = (fuel.combustion_emission_factor
- fuel.upstream_emission_factor) × heat_rate
Generator.emission_rate
Unit-flexibility contract (PLEXOS / SDDP style)
All Fuel quantities can be expressed in ANY consistent fuel unit (tonne, MMBtu, Nm³, GJ). The LP math is invariant under the choice of unit because every fuel-rate quantity multiplies through the generator dispatch in a balanced way — the units cancel as long as the user keeps them consistent across price, heat_rate, combustion_emission_factor, upstream_emission_factor for a single fuel. Example consistent triples:
$/tonne · tCO₂/tonne · tonne/MWh → $/MWh, tCO₂/MWh $/MMBtu · tCO₂/MMBtu · MMBtu/MWh → $/MWh, tCO₂/MWh $/GJ · tCO₂/GJ · GJ/MWh → $/MWh, tCO₂/MWh
heat_content (energy per physical fuel unit, e.g. GJ/tonne or GJ/Nm³) is OPTIONAL and used ONLY for output reporting — it lets the solver emit both physical (fuel_consumption_physical.parquet) and energy (fuel_consumption_energy.parquet) views of fuel burn regardless of which unit the user picked for the LP coefficients. When heat_content is unset, only the physical-unit consumption is emitted. Mirrors PLEXOS.Fuel.Heat Content and SDDP's Combustível.Poder Calorífico.
Emission-factor naming
Two stage-schedulable factors follow the IPCC / IEA / EPA split:
combustion_emission_factor CO₂ released at the burner per unit of fuel. Synonyms: PLEXOS "Emission Production Rate", SDDP "Coeficiente de Emissão", IPCC "combustion emission factor", "stack", "direct", "tank-to-stack".
upstream_emission_factor CO₂ released producing and transporting the fuel per unit. Synonyms: "well-to-tank" / WTT, "pre-combustion", "fuel-cycle". Neither PLEXOS nor SDDP carry this natively; gtopt adds it for lifecycle (well-to-burner-tip) accounting.
Total = combustion + upstream ≡ "well-to-burner-tip" / lifecycle.
Namespaces
- namespace gtopt
Classes
- struct gtopt::Fuel
- Time-schedulable fuel price, heat content, and emission factors.
- struct gtopt::FuelEmissionFactor
- Per-pollutant emission factors of a
Fuel(tons / fuel-unit).