SIIP Tutorial

Parsing MATPOWER Files

Originally Contributed by: Clayton Barrows

Introduction

An example of how to parse MATPOWER files and create a System using PowerSystems.jl

Dependencies

using PowerSystems
using TimeSeries

Fetch Data

PowerSystems.jl links to some test data that is suitable for this example. Let's download the test data

base_dir = PowerSystems.download(PowerSystems.TestData; branch = "master");

Create a System

sys = System(joinpath(base_dir, "matpower", "case5_re.m"))
sys
┌ Error: Generator voltage set-points for bus 3 are inconsistent. This can lead to unexpected results
└ @ PowerSystems ~/.julia/packages/PowerSystems/zVsmd/src/parsers/pm_io/matpower.jl:245
┌ Error: Generator voltage set-points for bus 10 are inconsistent. This can lead to unexpected results
└ @ PowerSystems ~/.julia/packages/PowerSystems/zVsmd/src/parsers/pm_io/matpower.jl:245
System
Property Value
System Units Base SYSTEM_BASE
Base Power 100.0
Base Frequency 60.0
Num Components 30
Static Components
Type Count Has Static Time Series Has Forecasts
Arc 6 false false
Area 1 false false
Bus 5 false false
Line 5 false false
LoadZone 1 false false
PhaseShiftingTransformer 2 false false
PowerLoad 3 false false
RenewableDispatch 2 false false
ThermalStandard 5 false false
CC BY-SA 4.0 "Dheepak Krishnamurthy". Last modified: August 26, 2022. Website built with Franklin.jl and the Julia programming language.