Grid Simulator: Documentation
1. Introduction
The Grid Simulator is an educational tool designed to provide a simplified yet powerful look into the challenge of operating a modern electricity grid. It allows users to act as policymakers, adding new clean energy sources, energy storage, and other technologies to a baseline grid. The goal is to understand the complex trade-offs between cost, reliability, and emissions.
The model simulates a 24-hour period of grid operation, showing how different technologies work together to meet a fluctuating electricity demand. Users can immediately see the impact of their decisions on hourly generation, CO2 emissions, wholesale electricity prices, and key financial metrics that distinguish between consumer costs and total system costs. This documentation explains the core logic behind the simulation, including how resources are dispatched, how costs are calculated, and what key assumptions are made.
2. Key Features and Controls
2.1. Selecting a Scenario
The first step is to choose a grid to simulate. You can select from a wide range of countries and regions using the dropdown menu. Each region comes with a pre-loaded grid mix, total capacity, and realistic seasonal peak demand values based on real-world data.
You can also select a Demand Profile for a specific season (e.g., Summer, Winter) and type (Typical vs. High). This allows you to test your grid against different conditions, from a normal spring day to an extreme summer heatwave. The model uses realistic, data-driven scaling to adjust the peak demand for each season and profile type.
2.2. Policy and Technology Levers
The control panel on the right is where you make your decisions. The levers are divided into three main categories:
- Policy Levers: Here you can add new generating capacity (Solar, Wind, Nuclear, etc.) and energy storage. You can also deploy technologies like Demand Flexibility, which shifts some electricity use from peak to off-peak hours.
- Government Incentives: These levers allow you to simulate government policies. You can set a Carbon Tax, provide subsidies for clean energy (PTC) and storage (ITC), or set a price for exporting excess electricity.
- Direct Air Capture (DAC): This section allows you to deploy DAC technology, which actively removes CO2 from the atmosphere, and provide incentives for it.
2.3. Managing the Grid
- Retiring Plants: In the "Installed Capacity Mix" chart, you can uncheck a box next to an energy source to simulate retiring that entire fleet of power plants.
- Customizing Profiles: You can click the "edit" icon next to the Demand or Capacity Factor profiles to manually adjust their hourly values, allowing you to create custom scenarios.
- Scenario Management: Use the Undo/Redo buttons to step through your changes. You can also set your current configuration as the new "Default" to compare future changes against it.
3. Methodology: How the Simulation Works
The simulator operates on an hourly time-step over a 24-hour day. The core of the model is a dispatch algorithm, which decides which power plants should run in each hour to meet the electricity demand at the lowest possible cost while respecting the limitations of each technology. This process determines not only the generation mix but also the hourly marginal price of electricity.
3.1. The Dispatch Logic: A Step-by-Step Guide
The model follows a sophisticated sequence to balance the grid each hour, closely mimicking how real-world markets operate.
- Calculate Net Load: The model first determines the hourly generation from "must-run" clean sources (Nuclear, Geothermal, Biomass) and "variable" renewables (Solar, Wind). This generation is subtracted from the total demand to calculate the Net Load—the remaining demand that must be met by flexible, dispatchable power plants.
-
Economic Battery Dispatch (Arbitrage): This is the most complex and realistic step. The model dispatches batteries based on economic signals to minimize costs. It performs an iterative loop:
- It first calculates a 24-hour price forecast based on what it would cost for thermal plants (gas, coal) to meet the current net load.
- It then checks if a profitable arbitrage opportunity exists. The model uses a realistic formula to determine profitability:
(Highest Price * 0.85) - Lowest Price > $20
. This means the potential revenue from selling power, after accounting for a 15% energy loss (85% round-trip efficiency), must be at least $20/MWh higher than the cost of buying power. This $20 threshold represents a "hurdle rate" to account for other operational costs like battery degradation. - If a profitable opportunity exists, the model dispatches a small "piece" of energy (0.1 GWh), charging the battery in the cheapest hour and discharging it in the most expensive hour. This dispatch is capped by the battery's power rating (GW) and its total energy capacity (GWh).
- Crucially, it then recalculates the net load (which has changed due to the battery action) and the 24-hour price forecast, and then repeats the process. This loop continues until no more profitable trades are available.
- Strategic Hydro Dispatch: After storage has been dispatched, hydroelectric power is used. A portion is used as a steady "baseload" resource, while the rest is used flexibly to meet the highest remaining peaks in the net load.
-
Thermal Merit Order Dispatch & Marginal Pricing: If a deficit still remains, the model turns on the thermal power plants in a strict "merit order" from cheapest to most expensive. This is where the hourly price is set.
- First, cheaper and more efficient Combined-Cycle Gas Turbines (CCGT) are dispatched. The model assumes these plants have a variable cost that rises from $35/MWh to $80/MWh as more of the fleet is used.
- Next, more expensive and less efficient "peaker" Combustion Turbines (CT) are used. These have a higher cost, from $100/MWh to $150/MWh.
- Finally, Coal plants are dispatched as a last resort at a fixed cost.
- Curtailment and Exports: If, after all these steps, there is still an excess of renewable energy (a negative net load), that energy is "curtailed" (wasted). If an export price is set, this curtailed energy is sold, and the marginal price for that hour becomes the export price (which can be negative).
3.2. Cost Calculation Framework
The model calculates the total annual cost of running the grid. This is not just the fuel cost; it's a comprehensive calculation similar to a Levelized Cost of Energy (LCOE) analysis, which includes upfront construction costs, ongoing maintenance, and fuel.
- Capital Costs (CAPEX): This is the cost of building new power plants and storage facilities. Since a power plant lasts for many years (e.g., 30 for solar, 60 for nuclear), the model calculates an "annualized" cost, which is like a yearly mortgage payment for the plant. This is done using a Capital Recovery Factor (CRF) with a 7% discount rate (d). The formula is:
CRF = (d * (1 + d)^n) / ((1 + d)^n - 1)
, where 'n' is the lifetime of the plant in years. - Fixed O&M Costs: These are the costs to keep a plant ready, even if it's not generating electricity (e.g., staff salaries, rent). This is calculated per kilowatt of capacity.
- Variable O&M Costs: These are the costs that depend on how much electricity is generated (e.g., fuel for natural gas plants, routine maintenance). This is calculated per megawatt-hour of generation. For natural gas, this cost is calculated based on the dispatch price of each plant type (CCGT vs. CT).
- Government Incentives: The model includes several policy levers that affect cost:
- Production Tax Credits (PTC): A subsidy ($/MWh) that reduces the operating cost of clean energy sources like solar and wind.
- Investment Tax Credits (ITC): A subsidy ($/kWh) that reduces the upfront construction (CAPEX) cost of energy storage.
- Carbon Tax: A fee ($/ton) applied to every ton of CO2 emitted by fossil fuel plants, making them more expensive to run.
3.3. Financial Metrics Explained
The simulator presents two primary financial metrics to help you understand the economic trade-offs of your decisions. These metrics distinguish between the price consumers see and the overall cost to the system.
-
Impact on Bill: This metric shows the percentage change in the demand-weighted average marginal price of electricity compared to a baseline scenario. In a real market, the marginal price sets the wholesale price for all electricity sold in a given hour. This metric calculates the average of those hourly prices, weighted by how much electricity was consumed, to provide a realistic estimate of the impact on consumer bills.
Impact = ((New Avg. Price - Baseline Avg. Price) / Baseline Avg. Price) * 100%
-
Change in System Cost: This metric shows the percentage change in the total annualized cost to build and operate the entire grid. It includes all capital, fixed, and variable costs, as well as taxes and subsidies. This metric represents the overall cost to the utility or society, which may be different from the immediate price impact seen by consumers.
Change = ((New Annual Cost - Baseline Annual Cost) / Baseline Annual Cost) * 100%
Below these main metrics, the model also calculates the Abatement Cost. This is the extra system cost required to avoid one ton of CO2 emissions. It is displayed alongside the total CO2 avoided to provide context on the cost-effectiveness of your decarbonization strategy.
4. Model Parameters and Assumptions
The simulator uses a set of default parameters for costs, lifetimes, and emissions based on public data from sources like the National Renewable Energy Laboratory (NREL) and the U.S. Energy Information Administration (EIA).
4.1. Technology Cost and Lifetime Assumptions
Technology | Capital Cost (CAPEX) [$/kW] | Fixed O&M [$/kW-yr] | Variable O&M [$/MWh] | Lifetime [Years] |
---|---|---|---|---|
Solar | 1,200 | 15 | 0 | 30 |
Onshore Wind | 1,500 | 35 | 1 | 30 |
Offshore Wind | 5,000 | 100 | 0 | 30 |
Nuclear | 7,242 | 140 | 10 | 60 |
Geothermal | 3,329 | 120 | 5 | 30 |
Biomass | 3,500 | 100 | 10 | 25 |
Natural Gas (CCGT) | 1,300 | 20 | $35 - $80 | 30 |
Natural Gas (CT) | 1,300 | 20 | $100 - $150 | 30 |
Coal | 4,407 | 40 | 30 | 40 |
4-hr Battery | 350 ($/kWh) | 15 | 0 | 15 |
8-hr Battery | 300 ($/kWh) | 15 | 2 | 15 |
Long Duration Storage | 300 ($/kWh) | 60 | 1 | 25 |
Direct Air Capture | 1000 ($/t/yr) | 20 ($/t/yr) | 400 ($/t) | 25 |
Note: Battery and DAC costs are based on their respective units (kWh and tons), not power capacity (kW). Natural Gas VOM represents a supply curve.
4.2. Emissions and Capacity Factors
Technology | CO2 Emission Factor [tons/GWh] | Capacity Factor (Average) |
---|---|---|
Coal | 850 | 60% |
Natural Gas | 395 | 55% |
Solar | 0 | ~25% (Varies seasonally and hourly) |
Onshore Wind | 0 | ~35% (Varies seasonally and hourly) |
Offshore Wind | 0 | ~50% (Varies seasonally and hourly) |
Nuclear | 0 | 90% |
Geothermal | 0 | 90% |
Biomass | 0 | 85% |
Hydro | 0 | ~45% (Varies seasonally) |
Capacity Factor is the ratio of the actual electricity produced by a plant over a period to the maximum possible electricity it could have produced. For example, a solar plant can only generate power when the sun is shining, so its capacity factor is much lower than a nuclear plant that can run 24/7. The model uses realistic hourly profiles for solar and wind, and seasonal averages for hydro.
5. Regional and Seasonal Assumptions
The simulator's baseline scenarios are built on a foundation of real-world data, projected to 2025 where possible. This section details the key data points and scaling factors used to create realistic and distinct scenarios for each region and season.
5.1. Regional Grid Data (2025 Projections)
The following table outlines the baseline total installed capacity, the percentage mix of different generation sources, and the utility-scale battery storage capacity for each region in the model. These figures are based on the latest available data from national energy agencies and international reports.
Region | Total Capacity (GW) | Grid Mix | Battery Capacity (GWh) |
---|
5.2. Seasonal Profile Scaling
To simulate different conditions, the model adjusts the baseline demand and renewable generation profiles based on the selected season. This ensures that a "Summer High" scenario feels different and presents different challenges than a "Winter Typical" one.
Demand Profile Scaling
The model starts with a set of standardized 24-hour demand curve shapes for each season. To make these specific to a region, it scales the entire curve up or down to match the region's known peak demand for that season. For "Typical" days, the peak is scaled down from the "High" (record) peak using the following factors:
Season | Typical Day Scaling Factor |
---|---|
Spring | 79% of High Peak |
Summer | 82% of High Peak |
Fall | 77% of High Peak |
Winter | 73% of High Peak |
Regional High Peak Loads
The following table shows the "High" peak load in Gigawatts (GW) for each region and season, which the demand profiles are scaled to match.
Region | Spring Peak (GW) | Summer Peak (GW) | Fall Peak (GW) | Winter Peak (GW) |
---|
Baseline High Demand Profiles
These charts show the shape of the "High" demand curve for each season before it is scaled to a specific region's peak load.
Renewable Capacity Factor Scaling
The generation from solar and wind varies significantly with the seasons. The model accounts for this by applying multipliers to the baseline hourly capacity factor profiles. For example, wind output is higher in the winter, while solar output is higher in the summer.
Baseline Renewable Capacity Factor Profiles
This chart shows the default 24-hour capacity factor profile for each variable renewable technology before any seasonal multipliers are applied.
Season | Solar Multiplier | Onshore Wind Multiplier | Offshore Wind Multiplier |
---|---|---|---|
Spring | 1.0x | 1.0x | 1.0x |
Summer | 1.1x | 0.8x | 0.9x |
Fall | 0.8x | 1.0x | 1.0x |
Winter | 0.6x | 1.1x | 1.1x |
6. Model Limitations and Assumptions
Transparency is key to understanding the simulator's results. While powerful, the model is a simplification of a real-world grid and has several important limitations:
- Single-Day Simulation: The model simulates a single, representative 24-hour period for a given season. It does not capture seasonal variations, long-term weather patterns, or multi-day storage dynamics (often called "seasonal storage").
- No Transmission Constraints: The model assumes a "copper plate" grid, meaning there are no bottlenecks or congestion in the transmission network. In reality, getting power from where it's generated to where it's needed is a major challenge and cost.
- Simplified Market Dynamics: The simulation uses a realistic marginal pricing and economic dispatch model but does not include more complex market products like ancillary services (e.g., frequency regulation) or capacity markets, which are additional revenue streams for generators and storage.
- Perfect Foresight: The model knows the demand and renewable generation for all 24 hours in advance, allowing it to optimize perfectly. Real-world grid operators must contend with uncertainty and forecasting errors.
- Generic Cost Data: The capital and operational costs are based on regional or national averages (primarily from U.S. sources like NREL and EIA) and do not capture all local site-specific cost variations.