Sunteți pe pagina 1din 19

MatDyn, A New Matlab Based Toolbox for Power System Dynamic Simulation Stijn Cole, Ronnie Belmans

stijn.cole@gmail.com Presented by Dirk Van Hertem

K.U.Leuven ESAT/Electa

Introduction Why MatDyn? Implementation Validation Applications Conclusions

K.U.Leuven ESAT/Electa

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

K.U.Leuven ESAT/Electa

Why MatDyn?
o MATPOWER
Only PF and OPF Very easy to use Easy scripting Philosophy:

o PSAT
Fully-featured: stability, power flow, OPF, bifurcation analysis, GUI, Wide range of features makes the code involved Hard to modify

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.

K.U.Leuven ESAT/Electa

Why MatDyn?
o MATPOWER
Only PF and OPF Very easy to use Easy scripting Philosophy:

o PSAT
Fully-featured: stability, power flow, OPF, bifurcation analysis, GUI, Wide range of features makes the code involved Hard to modify

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.

MatDyn: extending use of MATPOWER to dynamic analysis, while strictly adhering to its philosophy
K.U.Leuven ESAT/Electa 5

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

K.U.Leuven ESAT/Electa

Example
o MATPOWER > options = mpoption; > runpf(case9,options); o MatDyn > options = mdoption; > rundyn(case9,case9dyn,event,opt ions);

K.U.Leuven ESAT/Electa

Implementation
o Challenge: to keep the o Trade-off between code simplicity and code simple accuracy or features o Problem: dynamic leading to choices on simulation inherently Simultaneous vs more complicated than partitioned scheme PF/OPF How to solve algebraic equations o Solution: design Disallowing generator criteria and choices on transient saliency implementation Disallowing non other
than constant impedance loads
K.U.Leuven ESAT/Electa 8

MatDyn Flow Chart


System to solve Call MATPOWER

F = differential equations G = algebraic equations X = dynamic state variables Y = algebraic state variables P = parameters

K.U.Leuven ESAT/Electa

Trade-off: Simultaneous vs Partitioned

o Simultaneous
Solve system simultaneously

o Partitioned
Solve G for Y and then Solve F for X Sequential integration of equipment: generators, governors, Code easy to read

constructing whole Jacobian before solving makes the code intricate

K.U.Leuven ESAT/Electa

10

Trade-off: Speed vs Detail


o Two conditions are imposed
Transient saliency not allowed Only constant admittance loads allowed

o Remark
Would not be acceptable for commercial program For software geared towards education and research, such an approach is deemed acceptable

o Consequence: algebraic equations are linear, can be solved very efficiently in MATLAB by LU factorization of Ybus
K.U.Leuven ESAT/Electa

11

Validation: Anderson & Fouad

MatDyn

Anderson & Fouad

K.U.Leuven ESAT/Electa

12

Validation: Stagg & El-Abiad

K.U.Leuven ESAT/Electa

13

Solvers

K.U.Leuven ESAT/Electa

14

Applications Education
o Used in power system course o 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 in sixterminal VSC HVDC system

K.U.Leuven ESAT/Electa

16

MatDyn: Status

o o o o

http://www.esat.kuleuven.be/electa/teaching/matdyn/ Used in Belgium, China, India, UK, Brazil, Python port underway (Pylon, by Richard Lincoln) Support: minimal (author not at university anymore)
17

K.U.Leuven ESAT/Electa

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

K.U.Leuven ESAT/Electa

18

Conclusion
o Easy-to-use power system dynamic simulation tool o Synergy with MATPOWER o Applications in research and education o We hope MatDyn can be of use to the power system community o The software including source code and full documentation are available for free download

http://www.esat.kuleuven.be/electa/teaching/matdyn/ Comments welcome: stijn.cole@gmail.com


K.U.Leuven ESAT/Electa 19

S-ar putea să vă placă și