Vous êtes sur la page 1sur 19
MatDyn, A New Matlab Based Toolbox for Power System Dynamic Simulation Stijn Cole, Ronnie Belmans
MatDyn, A New Matlab Based Toolbox for Power System Dynamic Simulation Stijn Cole, Ronnie Belmans
MatDyn, A New Matlab Based Toolbox
for Power System Dynamic Simulation
Stijn Cole, Ronnie Belmans
stijn.cole@gmail.com
Presented by Dirk Van Hertem
Simulation Stijn Cole, Ronnie Belmans stijn.cole@gmail.com Presented by Dirk Van Hertem © K.U.Leuven – ESAT/Electa

© K.U.Leuven ESAT/Electa

• Introduction • Why MatDyn? • Implementation • Validation • Applications • Conclusions
• Introduction
• Why MatDyn?
• Implementation
• Validation
• Applications
• Conclusions
• Why MatDyn? • Implementation • Validation • Applications • Conclusions © K.U.Leuven – ESAT/Electa 2
Introduction
Introduction

o Commercial Software

Fully-featured

Steep learning curve

Computationally efficient

Implementation details and models hidden from users

Not always well suited

for education and research

o Academic Software

Often open-source

Can be adapted

High level programming

language (Matlab,…)

Easier to use

Why MatDyn?
Why MatDyn?

o

MATPOWER

Only PF and OPF

Very easy to use

Easy scripting

Philosophy:

“It is intended as a simulation tool for researchers and educators that

is easy to use and modify.

MATPOWER is designed to give the best performance possible while keeping the code simple to understand and modify.”

o

PSAT

Fully-featured: stability, power flow, OPF,

bifurcation analysis,

GUI,…

Wide range of features makes the code involved

Hard to modify

Why MatDyn?
Why MatDyn?

o

MATPOWER

Only PF and OPF

Very easy to use

Easy scripting

Philosophy:

“It is intended as a simulation tool for researchers and educators that is easy to use and modify.

MATPOWER is designed to give

the best performance possible while keeping the code simple to understand and modify.”

o

PSAT

Fully-featured: stability, power flow, OPF,

bifurcation analysis,

GUI,…

Wide range of features makes the code involved

Hard to modify

MatDyn: extending use of MATPOWER to dynamic analysis, while strictly

adhering to its philosophy

MatDyn Goal o Seamless integration in MATPOWER • Uses same case files for PF data
MatDyn Goal
o
Seamless integration in MATPOWER
Uses same case files for PF data
No MATPOWER files changed
Uses equivalent scripts and syntax:
o
Synergy between OSS projects in line with
objectives of IEEE taskforce
• … o Synergy between OSS projects in line with objectives of IEEE taskforce © K.U.Leuven
Example o MATPOWER > options = mpoption; > runpf(‘case9’,options); o MatDyn > options = mdoption;
Example
o MATPOWER
> options = mpoption;
> runpf(‘case9’,options);
o MatDyn
> options = mdoption;
>
rundyn(‘case9’,’case9dyn’,’event’,opt
ions);
options = mdoption; > rundyn(‘case9’,’case9dyn’,’event’,opt ions); © K.U.Leuven – ESAT/Electa 7
Implementation
Implementation

o

o

o

Challenge: to keep the code simple

Problem: dynamic

simulation inherently

more complicated than PF/OPF

Solution: design criteria and choices on implementation

o Trade-off between code simplicity and accuracy or features leading to choices on

Simultaneous vs partitioned scheme

How to solve algebraic equations

Disallowing generator

transient saliency

Disallowing non other than constant

impedance loads

MatDyn Flow Chart System to solve Call MATPOWER F = differential equations G = algebraic
MatDyn Flow Chart
System to solve
Call MATPOWER
F = differential equations
G = algebraic equations
X = dynamic state variables
Y = algebraic state variables
P = parameters
Trade-off: Simultaneous vs Partitioned o Simultaneous o Partitioned • Solve G for Y and then
Trade-off:
Simultaneous vs Partitioned
o
Simultaneous
o
Partitioned
• Solve G for Y and then
• Solve system
simultaneously
• Solve F for X
• constructing whole
• Sequential integration of
Jacobian before solving
makes the code intricate
equipment: generators,
governors,…
• Code easy to read
the code intricate equipment: generators, governors,… • Code easy to read © K.U.Leuven – ESAT/Electa 10
Trade-off:
Trade-off:

o

o

Speed vs Detail

Two conditions are imposed

Transient saliency not allowed

Only constant admittance loads allowed

Consequence:

algebraic equations are linear, can be solved very efficiently in MATLAB by LU factorization of Y bus

o

Remark

Would not be acceptable for commercial program

For software geared

towards education and research, such an approach is deemed

acceptable

Validation: Anderson & Fouad MatDyn Anderson & Fouad
Validation: Anderson & Fouad
MatDyn
Anderson
& Fouad
Validation: Anderson & Fouad MatDyn Anderson & Fouad © K.U.Leuven – ESAT/Electa 12
Validation: Stagg & El-Abiad
Validation: Stagg & El-Abiad
Solvers
Solvers
Solvers © K.U.Leuven – ESAT/Electa 14
Applications Education o Used in power system course o Example: implement fossil-fueled single reheat
Applications
Education
o
Used in power system course
o
Example: implement fossil-fueled single reheat
tandem-compound turbine with governor
Example: implement fossil-fueled single reheat tandem-compound turbine with governor © K.U.Leuven – ESAT/Electa 15
Applications Research o Research on multi-terminal VSC HVDC o Example: dynamic simulation of line outage
Applications
Research
o
Research on
multi-terminal
VSC HVDC
o
Example:
dynamic
simulation of line
outage in six-
terminal VSC
HVDC system
o Example: dynamic simulation of line outage in six- terminal VSC HVDC system © K.U.Leuven –
MatDyn: Status o http://www.esat.kuleuven.be/electa/teaching/matdyn/ o Used in Belgium, China, India, UK, Brazil, …
MatDyn: Status
o
http://www.esat.kuleuven.be/electa/teaching/matdyn/
o
Used in Belgium, China, India, UK, Brazil, …
o
Python port underway (Pylon, by Richard Lincoln)
o
Support: minimal (author not at university anymore)
(Pylon, by Richard Lincoln) o Support: minimal (author not at university anymore) © K.U.Leuven – ESAT/Electa
Developing MatDyn: Lessons learned o There is a looooong way from having working software that
Developing MatDyn:
Lessons learned
o
There is a looooong way from having working
software that you can use to releasing software
that everyone can use
o
Validation is necessary: all software has bugs,
including/especially software that you write
yourself
o
Writing power system software is a sure way to get
a deep understanding of power systems
o
More people are interested in your software than
you think
of power systems o More people are interested in your software than you think © K.U.Leuven
Conclusion o Easy-to-use power system dynamic simulation tool o We hope MatDyn can be of
Conclusion
o
Easy-to-use power
system dynamic
simulation tool
o
We hope MatDyn can
be of use to the power
system community
o
Synergy with
o
The software including
MATPOWER
o
Applications in
research and
source code and full
documentation are
available for free
download
education
http://www.esat.kuleuven.be/electa/teaching/matdyn/
Comments welcome: stijn.cole@gmail.com
Comments welcome: stijn.cole@gmail.com © K.U.Leuven – ESAT/Electa 19