|
| 1 | +# [Emissions Data](@id emissions_data) |
| 2 | + |
| 3 | +## Motivation |
| 4 | + |
| 5 | +`EmissionsData` is a [`SupplementalAttribute`](@ref supplemental_attributes) that pairs a |
| 6 | +pollutant identity (CO2, NOx, SO2, etc.) with an emission rate expressed as a |
| 7 | +[`ValueCurve`](@ref). This supports both constant rates and nonlinear |
| 8 | +relationships between fuel consumption / power output and emissions. By modeling |
| 9 | +emissions as a supplemental attribute rather than a field on each generator type, a single |
| 10 | +`EmissionsData` instance can be shared across multiple components (one-to-many attachment). |
| 11 | +This avoids data duplication when several units at the same plant share the same emission |
| 12 | +profile and allows emissions metadata to be added or removed without changing the component |
| 13 | +struct definitions. |
| 14 | + |
| 15 | +## Example |
| 16 | + |
| 17 | +```julia |
| 18 | +using PowerSystems |
| 19 | +using PowerSystemCaseBuilder |
| 20 | + |
| 21 | +# Load a test system with thermal generators |
| 22 | +sys = build_system(PSITestSystems, "c_sys5_uc") |
| 23 | +thermals = collect(get_components(ThermalStandard, sys)) |
| 24 | + |
| 25 | +# Create a constant-rate emissions attribute (scalar wraps into IncrementalCurve) |
| 26 | +co2 = EmissionsData(; |
| 27 | + name = "co2_ccgt", |
| 28 | + pollutant = PollutantType.CO2, |
| 29 | + emission_rate = 117.6, # kg/MMBtu (constant rate) |
| 30 | + basis = EmissionBasis.FUEL_INPUT, |
| 31 | + energy_unit = EnergyUnit.MMBTU, |
| 32 | +) |
| 33 | + |
| 34 | +# Create an emissions attribute with a linearly varying incremental rate |
| 35 | +nox = EmissionsData(; |
| 36 | + name = "nox_ccgt", |
| 37 | + pollutant = PollutantType.NOX, |
| 38 | + emission_rate = IncrementalCurve(LinearFunctionData(0.001, 0.01), nothing, nothing), |
| 39 | + basis = EmissionBasis.FUEL_INPUT, |
| 40 | + energy_unit = EnergyUnit.MMBTU, |
| 41 | + start_up_adder = 5.0, # 5 kg per cold start |
| 42 | +) |
| 43 | + |
| 44 | +# Attach to generators — the same CO2 attribute is shared |
| 45 | +add_supplemental_attribute!(sys, thermals[1], co2) |
| 46 | +add_supplemental_attribute!(sys, thermals[2], co2) # shared instance |
| 47 | +add_supplemental_attribute!(sys, thermals[1], nox) |
| 48 | +``` |
| 49 | + |
| 50 | +## Emission Rate as ValueCurve |
| 51 | + |
| 52 | +The `emission_rate` field accepts any [`ValueCurve`](@ref) subtype, typically an |
| 53 | +[`IncrementalCurve`](@ref) representing the emission rate (pollutant per unit of |
| 54 | +fuel or power): |
| 55 | + |
| 56 | + - **`IncrementalCurve(LinearFunctionData(0, rate), ...)`** — constant emission rate |
| 57 | + - **`IncrementalCurve(LinearFunctionData(slope, intercept), ...)`** — linearly varying rate |
| 58 | + - **`IncrementalCurve(PiecewiseStepData(...), ...)`** — piecewise step rate (`PiecewiseIncrementalCurve`) |
| 59 | + |
| 60 | +When constructing with a scalar `Real` value, the rate is automatically wrapped in an |
| 61 | +`IncrementalCurve` with constant rate. This makes simple constant-rate cases ergonomic |
| 62 | +while supporting complex nonlinear relationships for advanced use cases. |
| 63 | + |
| 64 | +## Start-Up Adder |
| 65 | + |
| 66 | +The `start_up_adder` field captures the transient pollutant pulse that occurs during a cold |
| 67 | +or warm start before combustion controls and post-combustion controls reach steady state. |
| 68 | +The adder is expressed in `mass_unit` per start event. How it is multiplied by start events |
| 69 | +is the responsibility of the consumer (e.g., a future PowerSimulations.jl integration will |
| 70 | +tie it to the start binary variable in the unit commitment formulation). |
| 71 | + |
| 72 | +## Scope and Future Work |
| 73 | + |
| 74 | +The following features are out of scope for this version and tracked in follow-up issues: |
| 75 | + |
| 76 | + - Time-varying emission rates (time series support) |
| 77 | + - Hot/warm/cold split of the start-up adder |
| 78 | + - `EmissionsCap` and `EmissionsPrice` supplemental attribute types |
| 79 | + - Removal rate / pollution control fraction |
| 80 | + - PowerSimulations.jl integration |
| 81 | + - Parser support (CSV, Matpower, PSS/E, RTS data format) |
0 commit comments