24-hour Simulation of a Vehicle-to-Grid (V2G) System

Overview

Full-day microgrid simulation with diesel generation, PV, wind, residential load, industrial load, and EV fleet participation for frequency regulation.

This example shows a 24-hour vehicle-to-grid scenario in which EVs help regulate microgrid frequency over the course of a day. It ties together electrification, distributed energy, and long-timescale system behavior.

The microgrid includes a diesel generator, PV farm, wind farm, residential load, an industrial inductive load, and a V2G system representing 100 EVs. The model uses phasor simulation to study a full-day scenario efficiently.

This model is excellent for seeding smart-grid and V2G discussions. It connects storage flexibility, mobility, and community-level power-system behavior in a way that is easy to understand and highly relevant.

Key Features

  • Full-day energy and frequency behavior
  • Five EV user profiles
  • Renewable variability and load-profile changes
  • Frequency events driven by motor startup, shading, and wind-farm trip
  • Fast long-duration simulation enabled by phasor mode

Getting Started

  1. Run the 24-hour simulation.
  2. Observe generation and consumption profiles over the day.
  3. Track how EV participation supports frequency during disturbance events.
  4. Compare the renewable contribution with diesel balancing behavior.

Model Specifications

Parameter Value
Product SPS Software
Simulation type Offline
Software version SPS Software 2025+ (RT-LAB if adapted)
Model version R2024a — Jul 2026
Recommended time step 50 µs (SPS phasor mode) — 24 h offline scenario
Real-time solver ARTEMiS only if adapted for CPU real-time
Model file power_V2G.zip

Downloads

What is the most realistic first role for V2G in practice: peak shaving, frequency support, backup resilience, or local microgrid coordination?