Transient Stability Simulation
Transient Stability Simulation
o 1.1 Summary
o 1.2 Background
o 1.3 Required Software
2 Pre-lab
3 Lab Procedure
4 Postlab
ECE433
Laboratories
1
1 Introduction
The purpose of this experiment is to get you familiar with power system transient
stability analysis using computer software tools. In this lab, you will learn the basic
concepts of transient stability and associated assessment methods. Case studies will be
performed for you to understand the nature of the power system transient stability
behavior, including generator 'swing' characteristics and associated voltage and power
oscillation dynamics. Through this lab, you will gain an improved understanding on the
various factors that affect the transient stability of power systems.
1.1 Summary
Task 1 - PSAT Familiarization
Learn to load and view an example system file, complete a Power Flow simulation and
then inspect and save the results in the software that is used for this lab.
Complete a series of Time Domain simulations when adding a fault to one of the buses
and changing the faults duration in order to determine the system’s critical fault clearing
time.
Determine how a fault’s location impacts the critical fault clearing time of the system by
running a series of Time Domain simulations with a fault on each one of the buses.
Determine how removing a transmission line from the system impacts the critical fault
clearing time for the system by comparing this case to the initial case.
Determine how the inertia of a generator effects the critical fault clearing time of the
system by comparing this case to the initial case.
1.2 Background
2
1.2.1 Power System Transient Stability
You have learned the theory of swing equation and equal area criterion in the lecture. It
can be used to conduct analytical studies on small systems. For a practical system with
large numbers of generators, transmission units and loads, the time-domain based
simulation method is a more applicable approach.
3
For stability assessment, the power system is normally represented using a positive
sequence model. The network is represented by a traditional positive sequence power
flow model that defines the transmission topology, line reactances, connected loads and
generation, and pre-disturbance voltage profile.
Generators can be represented with various levels of detail, selected based on such factors
as length of simulation, severity of disturbance, and accuracy required. The most basic
model for synchronous generators consists of a constant internal voltage behind a
constant transient reactance, and the rotating inertia constant. This is the so-called
classical representation that neglects the machine physical construction factors (damper
windings, saturation, etc), the generation controls (excitation and governor systems) and
the details of the prime mover. More detailed models have been utilized in commercial
transient stability programs.
Transient stability studies are commonly performed after power flow studies. Based on
the pre- disturbance system profiles, time-domain simulation can be conducted. The
results are examined, usually through a graphical plotting, to determine if the system
remains stable and to assess the details of the dynamic behavior of the system. Typical
procedures for the transient stability analysis are as follows.
1. Collect data of network topology and power system components for power flow
studies
o one-line diagram of the network
o transmission line and transformer data
o shunt capacitors and reactors data
o bus load data
o generator real power output, scheduled voltage
2. Collect specified data for transient stability studies
o Dynamic data: Includes model types and associated parameters for
generators, motors, protections, and other dynamic devices and their
controls.
o Switching data: Includes the details of the disturbance to be applied. This
includes the time at which the fault is applied, where the fault is applied,
the type of fault and its fault impedance if required, the duration of the
fault, the elements lost as a result of the fault, and the total length of the
simulation.
o Program control data: Specifies such items as the type of numerical
integration to use and time-step.
o System monitoring data: This specifies which quantities are to be
monitored (output) during the simulation.
3. Solve power flow for the system
4. Perform transient stability studies
o Perform time domain simulation.
o Plot system swing curves to determine if the system remains stable.
o Repeat the above process for different fault locations and different
scenarios.
4
o Document all study results
1.3.1 Matlab/Simulink
Note: It is important that you use your University of Alberta email when creating
the account as this is how Matlab obtains its license.
2. Download the installer for your operating system for the recommended version of
Matlab by clicking on the download icon in your Mathworks account.
o Recommended Version - Matlab 2019a
5
figure 4. My Software in your Mathworks account.
3. Install Matlab using the downloaded installer. When installing you only need to
install Matlab and Simulink. There is no other toolbox required to run the lab
other than the Power System Analysis Toolbox (PSAT) which is discussed below.
I would only install the toolboxes you need as the toolboxes can be very large and
can slow down your Matlab session. You can always add or remove toolboxes
from within Matlab or by running the installer again.
Note: You will need to authenticate during installation using the Mathworks
account you created in the first step to license Matlab properly.
1.3.2 PSAT
The Power System Analysis Toolbox (PSAT) is a Matlab toolbox for electric power
system analysis and simulation.
6
1. Download the Power System Analysis Toolbox (PSAT) from the following link.
o Recommended Version - 2.1.11 - http://faraday1.ucd.ie/psat.html
2. Extract the downloaded .zip file to the Matlab toolbox directory at Program
files/MATLAB/R2019a/toobox/ by default on Windows. There should be a
similar directory for other operating systems.
3. Add a PSAT toolbox installation path to the same directory that you extracted the
toolbox too using the Set Path button on the toolbar in Matlab.
4. Launch PSAT by typing psat in the Matlab command window and after a few
moments the PSAT control windows should be displayed as shown below.
7
figure 8. PSAT main command windows.
2 Pre-lab
Please complete the following before attending your scheduled lab session.
8
Complete the questions from the ECE433 - Lab 4 - Prelab Questions template.
The same questions are shown below.
Have at least, the ECE433 - Lab 4 – Sign-off sheet printed off before coming to
the lab.
Note that there is a ECE433 - Lab 4 - Postlab template for you to complete to
hand in for submission. You will need to collect plots to include as images as well
as complete the tables. The postlab questions are shown inline in the lab manual
at the appropriate place as well as in the template.
3 Lab Procedure
The system used for this experiment consists of 9 buses and 3 generating stations. It is so
called WSCC 3-machine, 9-bus system and is widely used in power system transient
stability studies. The system is shown in figure 9.
9
figure 9: The test system (The WSCC 3-machine, 9-bus system)
1. Download the .zip file from below which contains the Base Case that will be used
for this lab and extract it somewhere you can find in your user space. It is usually
easiest if you put the file in your default Matlab workspace. The extracted .zip file
contains a single .mdl file titled Lab_4_Basecase.mdl.
2. In the PSAT command window click on the Open Data File button as shown
below or navigate the menus to File/Open/Data File.
10
figure 10. Open Data file button.
3. From the opened Load Data File screen, navigate the directory structure to where
you have the .mdl file extracted. Make sure that the Filters is to PSAT Simulink
(.mdl) and select the correct Basecase file under Files in current path: and
then click on the Load button.
Note: The mdl file contains the single-line 9-bus system diagram in a Simulink
file format which was constructed with the PSAT simulink library. When we
Load Data file, PSAT extracts the data from the Simulink and creates another
file which ends with a .m, which it then uses in its simulation calculations. You
can review some of this conversion process in the Matlab Command Window.
figure 11. Load a simulink .mdl file into the PSAT toolbox for analysis.
4. To view and/or edit the single-line diagram of the system in Simulink, you can go
to File/Open/Simulink Model and open the same downloaded .mdl file.
11
Note: If you make changes to the Simulink model you need to first save the new
model in the .mdl format and then make sure that you Load Data file in PSAT
before carrying out any simulation.
Note: You can double click on the blocks in the model to edit their Block
Parameters.
figure 12. An open .mdl file in Simulink where the system can be edited.
5. Change the system frequency to 60 Hz in the main PSAT window as this is the
typical system frequency in North America, it defaults to 50Hz as the PSAT
12
software is written somewhere in Europe where that is the typical system
frequency.
6. To complete a Power Flow Analysis of the system press the “Power Flow” button
in the PSAT main window, the status of the simulation gets logged in the Matlab
Command Window.
7. Press the button shown below to view the Static Report of the Power Flow
Analysis results.
figure 15. Open the Static Report of the Power Flow Analysis.
Note: In the upper parameter boxes the highlighted entries indicate the values of
the selected bus.
13
Note: You can change the units displayed in the boxes by clicking on the unit
displayed at the top of each box.
Note: For Active and Reactive Power you can also select where to display the
following
Note: You can click on the icon to open up a bargraph plot to compare the results
of each bus.
Note: You can generate/save a Static Report by pressing on the Report button.
The report output format and other options can be configured by selecting what
you want under the Preferences Menu.
14
9. Compare your Power Flow Analysis results in the Static Report with the reference
results shown below.
In this task, a fault will be placed on one of the buses to demonstrate how the system
behaves. A system can recover if a fault is cleared quickly enough before the whole
system collapses.
15
b. In the base case Simulink model, double click on bus 4 (the thick black
line) to open the Block Parameter window for Bus 4. Change the Number
of outputs: from 2 to 3. You will then see another output appear on the
bus 4 in the Simulink model.
c. From the PSAT Simulink library, either drag and drop or copy and paste a
Fault (from the Faults and Breakers library) to your base case some
where near bus 4.
figure 19: Faults and Breakers catalogue of the PSAT Simulink library.
d. Wire the newly added Fault to the new output your created on bus 4.
16
figure 20: Connect the new Fault to bus 4.
Note: The duration of the fault will be the Fault clearing time minus
the Fault time as both of the times above are the times in the simulation
that the events occur.
f. Save this new case with a new appropriate name making sure to save it as
an .mdl file so it can be loaded into PSAT.
12. Load the new .mdl Data File you just created by clicking on the Open Data File
button in the PSAT main window. Make sure to adjust the file type Filter so
.mdl files can be seen.
13. In the PSAT main window check the selection of Convert PQ bus to Z to
increase the simulation’s stability.
14. Run a Time Domain simulation in PSAT by clicking on the button shown below.
The Time Domain solution requires an initial Power Flow solution before it is run
and it will do it automatically if a current solution is not available.
17
15. Using the PSAT Plot tool, plot the following and save the resulting graphs
using a screen capture tool like Snip & Sketch to save the plot as an image file
to include in your Postlab.
Note: The first 3 plots below have a fault clearing time of 0.15s.
Note: You can change the length of the simulation from the PSAT main window
as shown below.
Note: You can examine the resulting waveforms in more detail by using the plots
zoom controls.
a. Power Angle at Generator Buses: Select the power angle (δ) of the 3
synchronous generators (ie. delta_Syn_1) to plot them against time. Use
delta_Syn_1 as reference angle by selecting it in the appropriate box.
Click on the Plot button to generate the graph in the available space. Use
the default simulation end time of 20 seconds.
18
figure 23. Select the parameters that you would like to plot. The power angles of
the 3 generators shown.
Sign-off
Once you are satisfied that you have collected all of the required plots in an image format
for your lab report, show them to a lab instructor or TA for them to sign on your sign-off
sheet in the appropriate place.
Q2. Explain what is occurring in the generator plots for both the voltage and the power,
that you obtained, when a fault is applied to bus 4 between 1.0 to 1.15 seconds of the
simulation.
16. Using a similar procedure as the previous section to complete the table below,
determine the systems critical fault clearing time when a single fault occurs at
each of the 9 buses. Record your results in the table provided on your results
sheet.
19
Table 3. The systems critical fault clearing time for a fault occuring at each bus
separately.
CRITICAL FAULT CLEARING TIME
Bus # Bus Voltage (kV) Critical fault clearing time (s)
1 18.0
2 16.5
3 13.8
4 230.0
5 230.0
6 230.0
7 230.0
8 230.0
9 230.0
Note
It is important that the fault voltage rating matches the voltage rating of the bus.
Sign-off
Once you are satisfied that you have collected all of the critical fault clearing times
required for your lab report get a lab instructor or TA to check your results, and if
everything is alright they will sign your sign-off sheet.
Q3. Which fault location is most susceptible to cause a system transient that will lead to
an unstable system? What are the potential reasons for that?
20
Q4. Explain why doing a fault location scan, like was completed in the lab, could be
useful.
For this case, we will start with the same case that we used in the Transient Stability
Analysis where we had a fault on bus 4. However for this new case we will add a
breaker in the line from bus 7 to bus 8 that will open before the fault occurs and then
close again after the fault transient has subsided. The goal of this task is to see how a
change in the system effects the critical fault clearing time.
17. Add a Breaker to the line from bus 7 to bus 8 by doing the following.
a. Open the .mdl file that you saved in the Transient Stability
Analyses section where you just added a fault on bus 4 into Simulink. As
this is the case we want to compare to.
b. Open the PSAT Simulink library and copy a Breaker from the Faults &
Breakers catalogue someone near either bus 7 or bus 8 in your base case.
figure 27. A Breaker in the Faults and Breaker catalogue of the PSAT Simulink
library.
c. Delete the wire connecting the bus to the line element and place the new
Breaker in series with the line by wiring the breaker to both the line
element and the appropriate bus.
21
figure 28. A breaker inserted in series with the line that connects bus 7 to bus 8.
d. Double click on the Breaker element and the Block Parameters for the
Breaker will open. Set the parameters as shown below.
e. Save the new case with a new appropriate name as a .mdl file.
18. Load the newly saved file into PSAT using the PSAT command window.
19. Like you did in the previous sections, determine the system’s new critical fault
clearing time when the newly added Breaker is open. Record your results in the
table provided on your results sheet.
Sign-off
22
Once you are satisfied that you have the correct critical fault clearing time for your lab
report get a lab instructor or TA to check your results, and if everything is alright they
will sign your sign-off sheet.
Q5. How does a line being removed from the system effect the systems transient
stability? Explain.
For this case, we will again start with the same case that we used in the Transient
Stability Analysis where we had a fault on bus 4. However for this new case we will
increase the inertia of all three of the generators of the system to demonstrate its effect on
the critical fault clearing time.
20. For this test we are going to double the inertia of all three of the generators in the
system. Follow the steps below to change the inertia of a generator.
a. Start again by reopening the .mdl file that you saved in the Transient
Stability Analyses section where you just added a fault on bus 4 into
Simulink. As this is the case that we want to compare to.
b. Double click the generator to open the Block Parameter window. Double
the Inertia value that is shown below.
Note: You can use math in the parameters so you can simply add a 2*
infront of the inertia parameter to double it.
21.
22. figure 30. Setting the Inertia of a generator.
23
Sign-off
Once you are satisfied that you have the correct critical fault clearing time for your lab
report get a lab instructor or TA to check your results, and if everything is alright they
will sign your sign-off sheet.
Q6. How does the inertia of all of the generators in the system effect the systems transient
stability? Explain.
4 Postlab
Submit the following on eClass using the Submit (Lab 4 - Results) link before the
postlab due date. Every student needs to hand-in their own results. Please merge all the
following into a single pdf document in the following order:
PDFsam Basic is a free and open source software that can be used for the pdf merge:
https://pdfsam.org/download-pdfsam-basic/
24