Simulation Engine Overview
Simulation Methodology
Module:
insight(always on) | Role: Any member | Licence: Free+
Engine: Monte Carlo simulation with 15-minute intervals (96 per day).
Time Resolution
| Constant | Value | Description |
|---|---|---|
INTERVALS_PER_HOUR | 4 | 15-minute intervals |
INTERVALS_PER_DAY | 96 | 24 hours x 4 intervals |
INTERVAL_DURATION_HOURS | 0.25 | 15 minutes in hours |
INTERVAL_DURATION_MINUTES | 15 | 15 minutes |
The 15-minute resolution aligns with:
- Australian NEM (National Electricity Market) settlement periods
- UK half-hourly settlement (Elexon) — maps cleanly to 2x 15-minute intervals
- Standard smart meter data granularity in UK and US markets
- Industry standard for energy trading intervals
Times are specified as HH:MM strings and converted to interval indices (e.g. "06:00" → interval 24, "14:30" → interval 58).
Limitation: 15-minute resolution cannot capture sub-minute transients (inrush currents, frequency response) or appliance-level events (kettle spikes, oven cycling). Grid stability studies requiring 1-second or faster resolution are out of scope.
Approach
- Each EV is individually sampled from probability distributions (plug-in time, connection duration, energy required, charge rate, ready-by deadline)
- Quantized charging: energy = ceil(energy_required / charge_rate x 4) intervals
- Every EV receives its full required charge — flexibility only changes WHEN, never HOW MUCH
- Load profiles (households, commercial, data centres) are deterministic — no randomness. Only EV charging and thermostat DR use stochastic simulation.
N+2 Day Simulation
The engine internally simulates N+2 days and returns the middle N days:
| Day | Purpose |
|---|---|
| Day 0 | Cold-start warm-up — allows EVs plugging in on day 0 to complete charging |
| Days 1 to N | Output days — these are returned to the user |
| Day N+1 | Cleanup/warm-down — allows EVs from day N to shift charge forward without losing energy at the boundary |
When a display window offset is used (e.g. noon-to-noon), the engine extends to N+3 internal days to ensure complete coverage.
Distributions Summary
| Parameter | Distribution | Default Parameters |
|---|---|---|
| Plug-in time | Bimodal Gaussian | Evening 19:00 (75%, sigma=2h), Morning 07:00 (25%, sigma=1h) |
| Connection duration | Log-normal | Mode ~14h, sigma=0.25, max 24h |
| Energy required | Normal | mu=21 kWh, sigma=15 kWh, max 100 kWh |
| Charging rate | Discrete | 7 kW (70%), 3 kW (20%), 11 kW (10%) |
| Ready-by time | Categorical | 07:00 (40%), 08:00 (30%), flexible (30%) |
See the EV Smart Charging page for full distribution detail, sources, and limitations.
Unified Scenario Model
Each scenario contains both load cohorts and flexible asset cohorts. The simulation produces:
base_profile: all assets simulated at FIXED (unmanaged) behavior — the "do nothing" baselineflexed_profile: assets simulated at their assigned flexibility_mode — what the grid actually sees- Component traces: individual contribution of each cohort
Flexibility Modes (per-cohort)
| FlexibilityMode | Display Name | Tool Aliases | Behavior |
|---|---|---|---|
| FIXED | Unmanaged | "unmanaged", "none", "baseline" | Natural behavior, no control |
| MANAGED | Managed | "passive", "active", "dr", "curtail", "diversify" | Responds to DR signals or curtailment windows |
| OPTIMIZED | Optimized | "optimized", "balance", "vpp", "aggregated" | Full load balancing against base_profile |
For EV-specific load shaping modes (NONE/DIVERSIFY/BALANCE) and smart charging levels (L0-L3), see EV Smart Charging.
Performance
Simulation scales linearly with vehicle count:
- NONE mode: ~0.2s for 10,000 vehicles
- BALANCE mode: ~0.4s for 10,000 vehicles
The random seed controls reproducibility, but different seeds produce statistically similar results for large fleets (>100 vehicles).
Sign Convention
- Positive = consumption/import from grid (includes pre-charge/rebound for thermostat DR)
- Negative = generation/export to grid or load reduction (includes thermostat DR reduction phase)
Limitations
- Single-day simulations do not capture week-level patterns (weekend vs weekday differences)
- No grid constraints modeled — simulations show energy flows, not voltage/frequency impacts
- Fixed 15-minute resolution — all assets share the same time grid with no adaptive time-stepping
- The simulation models energy scheduling, not power quality or phase balance