Professional Documents
Culture Documents
Experiment 7-12 PSA
Experiment 7-12 PSA
shown in figure 1:
To formulate the Ybus matrix in MATLAB the following procedure must be followed:
Open a MATALB.
Open a new file and write the code for the Ybus in a new script.
When the code is completed then save the code.
Put the values of Zbus by entering the different columns of Zbus.
After that, run the code.
It will show the Ybus.
ZBus matrix:
To enter values in Zbus the following method is adopted. First, we will enter values in columns
and then we will enter them in a matrix.
0 1.0000 0 1.0000
0 2.0000 0 0.8000
47
3.0000 4.0000 0 0.0800
MATLAB Code:
Ybus:
The MATLAB code of the formulation of Function Ybus is below:
Output:
The output that Matlab will give us is the Ybus that is formulated by Matlab of the power system
that was under consideration.
Ybus =
48
xperiment # 8: Formulation of the ZBus
LAB TASK:
Output:
>> Case1
zold =
1 2 3
4 5 6
7 8 9
zb =
10
ans =
1 2 3 0
4 5 6 0
7 8 9 0
0 0 0 10
49
CASE 2: Adding impedance from a new bus to the reference bus.
Ouput:
>> Case2
zold =
1 2 3
4 5 6
7 8 9
zb =
10
ans =
1 2 3 3
4 5 6 6
7 8 9 9
7 8 9 19
50
CASE 3: Adding impedance from an existing bus to the reference bas.
Ouput:
>> Case3
zold =
1 2 3
51
4 5 6
7 8 9
zb =
10
Znew =
ans =
1 2 3 3
4 5 6 6
7 8 9 9
7 8 9 19
52
Ouput:
>> Case4
zold =
1 2 3
2 5 6
3 6 9
zb =
10
Znew =
ans =
1 2 3 -1
2 5 6 -1
3 6 9 -3
-1 -1 -3 12
53
Experiment
In this lab we are given a Ybus matrix. We are asked to perform BUS reduction technique in MATLAB. There are two main
methods to remove a bus from Y matrix without drawing the modified power circuit.
1. KRON-REDUCTION Method:
This method has following steps.
Move the bus to be removed at the end of matrix.
Divide matrix in 4 parts.
2. DIRECT method:
In this method we compute each element of new Ybus matrix using following formula:
LAB TASK:
CASE 1:
Output:
Ynew =
54
CASE 2:
MATLAB Code:
Output:
Ynew1 =
Ynew2 =
55
xperiment # 10: Load Flow analysis using Gauss-
Gauss-Seidal Method:
Gauss-Seidel Method is used to solve the linear system Equations. This method is named after the German Scientist
Carl Friedrich Gauss and Philipp Ludwig Siedel. It is a method of iteration for solving n linear equation with the
unknown variables. This method is very simple and uses in digital computers for computing.
MATLAB Code:
56
Output:
Power Flow Solution by Gauss-Seidel Method
No. of Iterations = 50
57
8 1.010 -12.250 30.000 30.000 0.000 37.062 0.000
58
3 83.892 5.940 84.102 2.858 7.298
59
5 14.350 -10.682 17.889 0.138 -1.704
60
14 -6.200 -1.600 6.403
61
10 -22.172 -16.435 27.599 0.255 0.549
62
27 19.189 7.281 20.523 -0.000 1.538 0.968
63
Experiment # 11: Load Flow analysis using Newton-
Newton-Raphson Method:
Newton Raphson Method is an iterative technique for solving a set of various nonlinear equations with an equal
number of unknowns. There are two methods of solutions for the load flow using Newton Raphson Method. The first
method uses rectangular coordinates for the variables while the second method uses the polar coordinate form. Out of
these two methods the polar coordinate form is used widely.
MATLAB Code:
64
Output:
Power Flow Solution by Newton-Raphson Method
No. of Iterations = 4
65
8 1.010 -12.190 30.000 30.000 0.000 32.884 0.000
66
2 178.661 -22.351 180.054 5.519 10.689
67
7 -22.800 -10.900 25.272
68
12 -0.000 8.310 8.310 -0.000 0.084
69
21 -17.500 -11.200 20.777
70
28 0.000 0.000 0.000
71
xperiment # 12: To Evaluate Voltages for a 4-Bus Power System Using Node Equations in
This lab is very simple. In this lab we are given a Ybus matrix and a current matrix and we have to find the corresponding
voltages for the given system.
Node:
Node refers to any point on a circuit where two or more circuit elements meet. For two nodes to be different,
their voltages must be different.
Admittance:
Admittance (Y) is a measure of how easily a circuit or device will allow a current to flow. It is defined as the
inverse of the impedance (Z). The SI unit of admittance is the siemens (symbol S).
YBus Matrix:
In power engineering, admittance matrix or Ybus matric is an n x n matrix describing a power system with n
buses. It represents the nodal admittance of the buses in a power system. The Y Matrix is also one of the data
requirements needed to formulate a power flow study.
Self admittance:
The Y Matrix diagonal elements are called the self-admittances at the nodes, and each equals the sum of all the
admittances terminating on the node identified by the repeated subscripts.
Mutual admittance:
The non-diagonal elements of Ybus are the mutual admittances of the nodes, and each equals the negative of the
sum of all admittances connected directly between the nodes identified by the double subscripts.
Lab task:
, ,
72
We know that
Or
This is the basic formula that we are going to use in our MATLAB code.
MATLAB Code:
Output:
Z=
V=
56.2114 - 0.4098i
66.7886 - 0.4902i
60.8848 - 0.4445i
61.2266 - 0.4475i
73