LAB No. 1 Load Flow Using MATLAB - New Version
LAB No. 1 Load Flow Using MATLAB - New Version
MUTAH UNIVERSITY
College of Engineering
Department of Electrical Engineering
1. Objective
In this experiment, you will have the opportunity to become familiar with MATLAB software
and to know how to prepare and conduct power flow analysis using this software.
2. Pre-Lab Preparation
1. Down load the MATLAB file that contain the developed MATLAB commands by Prof.
Hadi Saadat.
2. Run a sample case Example 6.9.
3. Explore how the power flow can be conducted.
Page 1 of 8
PSSL-LAB#1: Load Flow Using MATLAB Summer Semester 2020/2021
Loads: Lines:
On bus 2, 21.7 MW and 12.7 Mvar; Bus1 to Bus2, Series impedance = 0.0192+j0.0575 pu, shunt cap admittance = 0.0528 pu
On bus 3, 2.4 MW and 1.2 Mvar Bus1 to Bus3, Series impedance = 0.0452+j0.1852 pu, shunt cap admittance = 0.0408 pu
On bus 4, 7.6 MW and 1.6 Mvar …
…
Summary of steps to prepare the MATLAB code for a power flow solution:
Values for basemva, accuracy, accel, and maxiter must be specified.
The input matrices busdata and linedata must be prepared according to the following MATLAB format.
Then, the following MATLAB code will do a power flow solution by Gauss-Seidel.
Figure below shows the general structure and steps for MATLAB command :
Page 2 of 8
PSSL-LAB#1: Load Flow Using MATLAB Summer Semester 2020/2021
% lf_gauss1
clear
… Note Slack Bus code 1; Load Bus code 0; Voltage-Controlled Bus code 2.
…
basemva = 100;
accuracy = 0.001;
accel = 1.8; maxiter = 100;
lfybus
lfgauss
busout
lineflow
Page 3 of 8
PSSL-LAB#1: Load Flow Using MATLAB Summer Semester 2020/2021
Task #2
Write and run a MATLAB code to solve the power flow problem of Example 6.8 shown below and compare
your results with the textbook solution (Use three methods), and use these setup data.
1) Run the MATLAB code in Gauss-Seidel and compare your results with the textbook answers.
Describe the information given by the output of the powerflow program.
2) Change the power flow method to Newton-Raphson and note the differences observed between
the Gauss-Seidel and Newton-Raphson methods.
3) Change the power flow method to Fast-Decoupled and note the differences observed.
Page 4 of 8
PSSL-LAB#1: Load Flow Using MATLAB Summer Semester 2020/2021
Page 5 of 8
PSSL-LAB#1: Load Flow Using MATLAB Summer Semester 2020/2021
C- Power Flow results: Run the code for each power flow method and tabulate the
results:
MW Mvar
Total losses
Page 6 of 8
PSSL-LAB#1: Load Flow Using MATLAB Summer Semester 2020/2021
MW Mvar
Total losses
Page 7 of 8
PSSL-LAB#1: Load Flow Using MATLAB Summer Semester 2020/2021
MW Mvar
Total losses
4. Lab Report
The lab report should include as follows:
Page 8 of 8