Power System Stimulation
Power System Stimulation
NO:
DATE:
FORMATION OF Y-BUS MATRIX BY INSPECTION METHOD
AIM:
To develop a program to obtain bus admittance matrix for the given power system
network by inspection method.
THEORY:
Bus admittance matrix is often used in power system studies. In most of the
power system studies, it is necessary to form [Y-bus] matrix of the system by considering certain
power system parameters depending upon the type of analysis.
For example, in the load flow analysis it is necessary to form [Y-bus] matrix
without taking into account the generator impedance, transformer impedance must be taken into
account in addition to the line data.
The dimensions of the [Y-bus] matrix (nxn), where n is the number of buses. In a
power network, each bus is connected on to a few other buses. So the [Y-bus] of a large network
is highly sparse. This property is not evident in small systems, but in systems with hundreds of
buses, the sparsity is high. It may be as high as 99%. Hence, by applying sparsity technique,
numerical computation time as well as computer storage requirement may be drastically reduced.
ALGORITHM:
1. Initialize [Y-bus] matrix, i.e., replace all entries by zero.
Yij = -Yji = off diagonal element.
n
2. Compute Yii = Y
j 1
ij = Diagonal element.
PROGRAM:
Formation of Y-bus using Inspection method:
clear;
clc;
n=input('no of buses');
ele=input('no of elements');
for i=1:ele
s=input('starting bus');
e=input('ending bus');
y(s,e)= input('element value');
c=input(' checking 1 for imp 2 for admittance');
if c==1
y(s,e)=1/y(s,e);
end
y(e,s)=y(s,e);
ybus=zeros(n,n);
end
for i=1:n
for j=1:n
if i==j
for k=1:n
ybus(i,j)=ybus(i,j)+y(i,k);
end
else
ybus(i,j)=-y(i,j);
end
end
end
ybus
RESULT:
EXP.NO:
DATE:
FORMATION OF Y-BUS MATRIX BY SINGULAR TRANSFORMATION METHOD
AIM:
To develop a program to obtain bus admittance matrix for the given power system
network by singular transformation method.
THEORY:
Bus admittance matrix is often used in power system studies. In most of the
power system studies, it is necessary to form [Y-bus] matrix of the system by considering certain
power system parameters depending upon the type of analysis.
For example, in the load flow analysis it is necessary to form [Y-bus] matrix
without taking into account the generator impedance, transformer impedance must be taken into
account in addition to the line data.
ALGORITHM:
clear;
clc;
n=input('number of buses');
e=input('number of elements');
a=zeros(e,n);
y=zeros(e,e);
for i=1:e
y(i,i)=input('element value');
c=input(' checking whether Z or Y 1 for Z 2 for Y');
if c==1
y(i,i)=1/y(i,i);
end
end
for i=1:e
s=input('starting bus');
b=input('ending bus');
a(i,s)=1;
a(i,b)=-1;
end
y
a'
a'*y*a
RESULT:
EXP.NO:
DATE
FORMATION OF BUS IMPEDANCE MATRIX
Aim:
To form Bus Impedance Matrix for the given network.
Objective:
To write a computer program to form Bus Impedance matrix Z, given the impedances of
a power network and their connectivity.
Software Required:
Mat Lab Software.
Algorithm:
Step wise procedure to build “Z” Matrix.
Step 1 :
Start with a partial network composed only of those elements connected directly to reference
node. Let the number of these elements be r. The corresponding bus impedance matrix Z(1) is of
dimension r x r and is diagonal with the impedance values of the elements appearing on the
diagonal. This process is equivalent to the repeated use of Rule 1.
Zm
Zm
Result:
Bus impedance Matrix for the given network is formed using Mat Lab program and
verified the calculated values with the output result.
EXP.NO:
DATE:
ECONOMIC DISPATCH IN POWER SYSTEM
AIM:
To develop a program to obtain the economic cost of generation for a given power
system.
THEORY:
It is possible to supply a given load demand in an infinite number of operating
configurations. It is necessary to choose one particular configuration i.e. the system operator
must specify exactly two variables per bus and in addition decide on appropriate tap settings on
all regulating transformers. For a type 1 bus, they must PG and QG . For a type 2 bus, PG and |V|.
For slack bus we must select |V|. The simplest method to select the variables is to use an
intelligent guess. Many systems are today operated on this basis. But there are more
sophisticated method to select the best optimum strategy which will meet the minimum standards
of reliability.
The real power generation, PGi certainly has influence on cost Fi. The reactive
power generation, QGi do not have any measurable influence on cost Fi.
Fi = Fi (PGi)
n
FT Fi ( PGi )
i 1
Subject to equality constraints
n
h (PGi QGi …… PGn) = P
i 1
Gi PD = 0
PGi min<= PG<= PGi max
In addition, we must not violate the limit condition imposed on QGi & |Vi|.
QGi min<= QG<= QGi max
|Vi| min<= |Vi|<= |Vi| max
ALGORITHM:
bi
PGi ; i =1,2,3,…..N [if cost function is given]
2ai
3. If the computed PGi satisfy the operating limits,
PGi,min<=PGi<=PGi,max, i =1,2,3,…N , then the optimum solution is obtained.
Otherwise go to next step.
4. If PGi violates the operating limits, then fix the generation at the respective
limit
if PGi<PGi,min, then PGi=PGi,min
if PGi>PGi,max, then PGi=PGi,max
5. Redistribute the remaining system load PD
PD new = PD old – sum of the fixed generations to the remaining units.
6. Compute new using P D new and compute the remaining generations using
PGi = (new – bi)/ 2ai
7. Check whether the optimality condition is satisfied.,ie
(dFi(PGi))/dPGi = new for PGi,min<=PGi<=PGi,max
(dFi(PGi))/dPGi <= new for PGi=PGi,max
(dFi(PGi))/dPGi >= new for PGi=PGi,min
If the condition is satisfied, then stop. Otherwise release the generation schedule fixed at
PGi,min or PGi,max of those units not satisfying optimality condition. Include these units in
the remaining units and modify the new power demand
PD new
PD new = PD new + {sum of fixed generators not satisfying optimality condition} and
go to step 6.
PROGRAM:
Economic dispatch (without losses)
clear;
clc;
n=input('Enter the no. of generating units : ');
pd=input('Enter the demand power : ');
pmax=input('Enter the max. power limit : ');
pmin=input('Enter the min. power limit : ');
l=input('Enter the value of lambda : ');
c=0;
d=0;
x=0;
psum=0;
for i=1:n
a(i)=input('Enter the value of a : ');
b(i)=input('Enter the value of b : ');
c=c+(b(i)/(2*a(i)));
d=d+(1/(2*a(i)));
end
while x==0
psum=0;
for i=1:n
p(i)=(l-b(i))/(2*a(i));
if p(i)<pmin
p(i)=pmin;
end
if p(i)>pmax
p(i)=pmax;
end
psum=psum+p(i);
end
dl=(psum-pd)/d;
if psum==pd
x=1;
else
l=l-dl;
x=0;
end
end
l
p
RESULT:
EXP.NO:
DATE:
LOAD FLOW ANALYSIS USING GUASS- SEIDAL METHOD
AIM:
To carry out the load flow analysis of the given power system by Gauss-Seidal
method.
THEORY:
Load flow analysis is the study conducted to determine the steady state condition
of the given system. A large number of numerical algorithms have been developed and Gauss
Seidal method is one of such algorithms.
PROBLEM FORMULATION:
n
Qi Im Vi *YikVk ---------------------------- (4)
k 1
The bus voltage can be written in the form of
1.0 n
Vi i YijV j --------------------------- (5)
I
Yn j 1
Where i=1, 2, 3 …n) & I is not equal to slack bus.
Substituting i in the expression for Vi we get
1.0 Pi jQi n
Vi
new
o*
YijVi o
Yn Vi j 1, j i
If the latest available voltage is used in the above expression, we get,
1.0 Pi jQi n n
Vi
Yii Vi o*
Y V
ij j
n
Y o
ij j
V
j 1 j i 1
The above equation is required formula. This equation can be solved for bus voltages in iterative
manner. During each iteration, we compute all the bus voltages and check for the convergence is
carried out by comparison with voltages obtained at the end of previous iteration.
After the solution is obtained, the slack bus real and reactive powers, the reactive
power generation at the other generator buses and line flows can be calculated.
This method is easier when compared with other methods, because the
calculations are very simple. This is used for making a good initial start for Newton-Raphson
method.
ALGORITHM:
1. Read the data such as line data, specified bus powers, specified voltages,
Q limits at generator buses and tolerance for convergence.
2. Compute Y-bus matrix.
3. Initialize all the bus voltages.
4. Iter=1.
5. Consider i=2 where i is the bus number.
6. Check whether this P-V bus or P-Q bus. If it is P-Q bus, go to step 8. Otherwise
go to next step.
7. Compute Qi. Check for Q- limit variation. Qgi=Qi+QLi.
If Qgi>Qimax, then equate Qgi to Qimax there by converting it in to P-Q bus. Qi=Qimax-Qi,
then go to step 8.
Similarly, if Qgi<Qimin, then equate Qgi to Qimin there by converting it in to P-Q bus.
Qi=Qimin-QLi, then go to step 8.
If Qgi is with in the upper and lower limits, don’t change Qgi. where
Qi=Qgi-QLi, then go to step 8.
8. Calculate the new value of the bus voltage using Gauss-Seidal formula.
1.0 Pi jQi n n
Vi
Yii Vi o*
Y V
ij j
n
YijV jo .Adjust the voltage magnitude of
j 1 j i 1
the bus to specified magnitude if Q limits are not violated.
9. If all the buses are considered, go to step 10.Otherwise increment
the bus number i=i+1 and go to step 6.
10. Check for convergence. If there is no convergence go to step 12.
11. Update the bus voltages using the formula
Vi= Viold + α (Vinew – Viold) (i= 1, 2, 3 …n)
12. Calculate the slack bus power at P-V buses, real and reactive line
flows, real and reactive line losses and print all the results
including all the complex bus voltages and all the bus angles.
13. Stop.
OUTPUT:
EXP.NO:5
DATE:
LOAD FLOW ANALYSIS USING NEWTON-RAPHSON METHOD
AIM:
To carry out the load flow analysis for the given network by Newton-Raphson
method.
THEORY:
POWER FLOW SOLUTION:
Where p=1, 2, 3 … nb
Conjugating the above equation and multiplying by Vp, we get
nb
V p I *p S p Vp Ypq
*
Vq* --------------------- (2)
q 1
NEWTON-RAPHSON METHOD:
In this method mismatch version is widely used for the power flow problem. In this
version we denote,
Vp=|Vp| δp; δpq= δp- δq
and
Ypq=Gpq+jBpq
Equations (3) and (4) can be expressed in terms of the polar components as
Ppcal | V p | (G pq cos pq B pq sin pq ) | Vq |---------------- (5)
nb
q 1
q 1
In the n total number of nodes, let the number of P-Q nodes be (n1), P-V nodes be
(n2) and let there be one slack bus so that
nb= n1+n2+1.
Our basic problem is to find the unknown voltage magnitudes (|V|) at the P-Q buses
and angles ‘δ’ at the P-Q and P-V buses.
Let x be the vector of all, unknown |V| and δm and Y the vector of specified
variables. The dimension of x is n1+2n2+2. Thus,
Vs on slack bus
δs
Y= Ppsp
Qpsp on each P-Q node
Ppsp
|Vp|sp on each P-V node
From the set of equations (5) and (6) we select a number of equations equal to the
number of unknowns in X to form the non-linear power flow equation F(X,Y) = 0. Since Y is
specified we may suppress it from the equations.
Ppsp - Ppcal on each P-Q and P-V
F(X) = node =0
Ppsp - Ppcal on each P-Q node
∆P H N ∆δ
= ---------------- (8)
∆Q M L ∆|V|
h h h
H N
J =
M L
The linear equation when solved for ∆δ, ∆|V| gives the correction to be applied to |V|h and δ.
|V|h+1 = |V|h + ∆|V|h
δh+1 = δh + ∆δh
Next we get anew set of linear equation evaluated at (h+1)th iteration and the process
is repeated, convergence is tested by the power mismatch criteria.
ALGORITHM:
EXP.NO:
DATE:
SYMMETRICAL SHORT CIRCUIT ANALYSIS
AIM:
To calculate the symmetrical short circuit parameters for the given power
system by using ETAP software.
THEORY:
When an abnormal condition arises in a power system such as fault, an
insulation flashover or lightning stroke to the transmission tower, high current flows in the power
system. These currents are sensed to the relays to isolate the faulty section of the power system.
Delay in the operation of the circuit breakers might result in creating instability in the system and
also cause burnout of costly equipment such as transformer, generator, etc.
Short circuit study is an important study which provides vital information
regarding the magnitude of fault current through various components of the power system during
short circuit. This helps in the proper selection of the circuit breakers and relays. It also helps in
relay co-ordination.
In arriving at a mathematical model for short circuit studies, a number of
assumptions are made which simplify the formulation of the problem. Certain valid assumptions
are:
1. The load, line charging capacitances and other shunt connections to the ground are
neglected.
2. The generator is represented by a voltage source in series with a reactance which is
taken to be sub-transient or transient reactance.
3. All the transformers are considered to be at their nominal taps.
4. If the resistance of the transmission lines is sufficiently smaller than the reactance the
resistances are neglected.
5. Pre-fault voltage at all the buses is (1+j0) p.u.
The mathematical model of the system can be derived as follows.
The figure shows the equivalent circuit of a power system consisting of m generator buses.
Now introduce the voltage source between 0 and 01. These results in raising all the bus voltages
by Voa. Hence, we may write
[Vbus]= [Zbus] [Ibus] + b Voa
Where b= [1, 1 … 1]
Suppose that a three phase fault occurs at Pth bus, the voltages are as shown in figure below
Zf = Fault impedance
If = Fault current
Ip (F) = Current injected at bus’p’
ALGORITHM:
1. Start.
2. Read the line data, machine data, transformer data and fault impedance etc.
3. Compute Y-bus matrix and calculate modified Y-bus matrix.
4. Form Z-bus by inverting the modified Y-bus matrix.
5. Initialize count l=0.
6. l=l+1. This means fault occurs at bus ‘l’.
7. Compute fault current at faulted bus and bus voltage at all buses.
8. Compute all line currents and generator currents.
9. Check whether l is less than number of buses. If so go to step6. Otherwise go to next step.
10. Print the results.
11. Stop.
OUTPUT:
EXP.NO:
DATE:
SHORT CIRCUIT ANALYSIS
(LINE TO GROUND FAULT)
AIM:
To calculate the unsymmetrical short circuit parameters for the given
power system by using ETAP software.
THEORY:
When an abnormal condition arises in a power system such as fault, an
insulation flashover or lightning stroke to the transmission tower, high current flows in the power
system. These currents are sensed to the relays to isolate the faulty section of the power system.
Delay in the operation of the circuit breakers might result in creating instability in the system and
also cause burnout of costly equipment such as transformer, generator, etc.
Short circuit study is an important study, which provides vital information
regarding the magnitude of fault current through various components of the power system during
short circuit. This helps in the proper selection of the circuit breakers and relays. It also helps in
relay co-ordination.
In arriving at a mathematical model for short circuit studies, a number of
assumptions are made which simplify the formulation of the problem. Certain valid assumptions
are:
1. The load, line charging capacitances and other shunt connections to the ground are
neglected.
2. The generator is represented by a voltage source in series with a reactance, which is taken
to be sub-transient or transient reactance.
3. All the transformers are considered to be at their nominal taps.
4. If the resistance of the transmission lines is sufficiently smaller than the reactance the
resistances are neglected.
5. Pre-fault voltage at all the buses is (1+j0) p.u.
ALGORITHM:
4. Convert the sequence current into line current using the formula
I a 111 I k
0
I 1 2 I 1
b k
I c 1 I k2
2
5. Find the sequence component of fault voltages by,
1.
Vi1 = E-ZiK1Ik1
2. 2
Vi = 0-ZiK2Ik2
3. Vi0 = 0-ZiK0Ik0
6. Convert the sequence component into line voltages using formula
V 1 2 V 1
b k
Vc 1 2 Vk2
7. Print the calculated values.
8. Stop the execution.
OUTPUT:
EXP.NO:
DATE:
SHORT CIRCUIT ANALYSIS
LINE TO LINE FAULT
AIM:
To find unsymmetrical short circuit parameters for
the given system for line to line fault by using ETAP software.
THEORY:
When an abnormal condition arises in a power system such as
fault, an insulation flashover or lightning stroke to the transmission tower, high current flows in
the power system. These currents are sensed to the relays to isolate the faulty section of the
power system. Delay in the operation of the circuit breakers might result in creating instability in
the system and also cause burnout of costly equipment such as transformer, generator, etc.
Short circuit study is an important study which provides vital
information regarding the magnitude of fault current through various components of the power
system during short circuit. This helps in the proper selection of the circuit breakers and relays. It
also helps in relay co-ordination.
In arriving at a mathematical model for short circuit studies, a
number of assumptions are made which simplify the formulation of the problem. Certain valid
assumptions are:
1. The load, line charging capacitances and other shunt connections to the ground are
neglected.
2. The generator is represented by a voltage source in series with a reactance which is taken
to be sub-transient or transient reactance.
3. All the transformers are considered to be at their nominal taps.
4. If the resistance of the transmission lines is sufficiently smaller than the reactance the
resistances are neglected.
5. Pre-fault voltage at all the buses is (1+j0) p.u.
6. The mathematical model of the system can be derived as follows.
ALGORITHM:
OUTPUT:
EXP.NO:
DATE:
SHORT CIRCUIT ANALYSIS
DOUBLE LINE TO GROUND FAULT
AIM:
To find unsymmetrical short circuit parameters for the given
system for double line to ground fault by using ETAP software.
THEORY:
When an abnormal condition arises in a power system such as
fault, an insulation flashover or lightning stroke to the transmission tower, high current flows in
the power system. These currents are sensed to the relays to isolate the faulty section of the
power system. Delay in the operation of the circuit breakers might result in creating instability in
the system and also cause burnout of costly equipment such as transformer, generator, etc.
Short circuit study is an important study which provides vital
information regarding the magnitude of fault current through various components of the power
system during short circuit. This helps in the proper selection of the circuit breakers and relays. It
also helps in relay co-ordination.
In arriving at a mathematical model for short circuit studies, a
number of assumptions are made which simplify the formulation of the problem. Certain valid
assumptions are:
1. The load, line charging capacitances and other shunt connections to the ground are
neglected.
2. The generator is represented by a voltage source in series with a reactance which is taken
to be sub-transient or transient reactance.
3. All the transformers are considered to be at their nominal taps.
4. If the resistance of the transmission lines is sufficiently smaller than the reactance the
resistances are neglected.
5. Pre-fault voltage at all the buses is (1+j0) p.u.
6. The mathematical model of the system can be derived as follows.
ALGORITHM:
OUTPUT:
EXP.NO:
DATE:
EXP.NO
LOAD FREQUENCY DYNAMICS OF
SINGLE-AREA POWER SYSTEM
AIM:
To study the time response of area frequency deviation following a small
load change in a single-area system provided with an integral frequency controller, to study the
effect of changing the gain of the controller and to select the best gain for the controller to obtain
the best response.
THEORY:
Active power control is one of the important control actions to be performed
during normal operation of the system to match the system generation with the continuously
changing system load in order to maintain the constancy of system frequency to a fine tolerance
level. This is one of the foremost requirements in providing quality power supply. A change in
system load causes a change in the speed of all rotating masses of the system leading to change
in system frequency. The speed change from synchronous speed initiates the governor control
action resulting in all the participating generator-turbine units taking up the change in load,
stabilizing the system frequency. Restoration of frequency to nominal value requires secondary
control action which adjusts the load reference set points of selected generator-turbine units. The
primary objectives of automated generation control are to regulate system frequency to the set
nominal value and also to regulate the net interchange of each area to the scheduled value by
adjusting the outputs of the regulating units. This function is referred to as load-frequency
control (LFC). The block diagram representation of single-area LFC with and without controller
is shown below.
∆PD(S)
-
∆PC(S) + + ∆F(S)
- ∆PG(S)
1/R
PD K P R t
RKP
RTP Hz
f (t ) 1 e
R KP
∆PD(S)
-
∆PC(S) + + ∆F(S)
∆PG(S)
-1/R
ALGORITHM:
EXP.NO:
DATE:
AIM:
To study the time response of area frequency deviation following a small
load change in a two-area system provided with an integral frequency controller, to study the
effect of changing the gain of the controller and to select the best gain for the controller to obtain
the best response.
THEORY:
Active power control is one of the important control actions to be performed
during normal operation of the system to match the system generation with the continuously
changing system load in order to maintain the constancy of system frequency to a fine tolerance
level. This is one of the foremost requirements in providing quality power supply. A change in
system load causes a change in the speed of all rotating masses of the system leading to change
in system frequency. The speed change from synchronous speed initiates the governor control
action resulting in all the participating generator-turbine units taking up the change in load,
stabilizing the system frequency. Restoration of frequency to nominal value requires secondary
control action which adjusts the load reference set points of selected generator-turbine units. The
primary objectives of automated generation control are to regulate system frequency to the set
nominal value and also to regulate the net interchange of each area to the scheduled value by
adjusting the outputs of the regulating units. This function is referred to as load-frequency
control (LFC). The block diagram representation of single-area LFC with and without controller
is shown below.
Block diagram representation of two-area LFC: (without controller)
∆PG1(S) ∆Ptie1(S)
-
∆PC1(S) + + ∆F1(S)
- -
∆PD1(S)
1/R1
+
-∆F2(S)
-a12
-∆Ptie2(S)
∆PC2(S) + -
+
_ ∆PD2(S)
1/R2
PD 2 a12PD1 Hz
Fstatic
2 a12 1
Block diagram representation of two-area LFC: (with controller)
-∆Ptie1(S)
-KI1/S _ -∆PD1(S)
1/R1
b1
+
+ +
-a12 _
-∆Ptie2(S)
+ ∆PG2(S)
-KI2/S
∆F2(S)
+ _
-∆PD2(S)
1/R2
b2
ALGORITHM:
AIM:
SOFTWARE REQUIRED:
MATLAB software package
FORMULAE:
Single phase Inductance = 10-7[1+4log(d/r)]
Capacitance = 3.14*8.854*10-12/log(d/r)
Three phase Inductance = 10-7[0.5+2log(d/r)]
Capacitance = 2*3.14*8.854*10-12/log(d/r)
Dequivalent = [d1*d2*d3]1/3
where
d = spacing of conductors
r = radius of conductors
ALGORITHM:
STEP 1: Find that the given transmission line is single phase or three phase
STEP 2: If it is single phase, get the value of distance between the conductors.
STEP 3: Get the radius of the conductor
STEP 4 : Using the appropriate formula, find inductance and capacitance.
STEP 5: If the given system is three phase, classify whether it is symmetrical or
unsymmetrical
STEP 6: If symmetrical, get the distance between the conductors and radius of the
PROBLEM:
Determine the sending end voltage, current, power & power factor for a
160km section of 3phase line delivering 50MW at 132kV and P.F 0.8 lagging. Also
find the efficiency and regulation of the line. Resistance per line 0.1557ohm per km,
spacing 3.7m, 6.475m, 7.4m transposed. Evaluate the A, B, C, D parameters also.
Diameter
1.956cm.
Write and execute a MATLAB program and also verify the output with the
manual calculation results.
PROGRAM :
clc;
clear all;
ab=input('value of ab');
bc=input('value of bc');
ca=input('value of ca');
pr=input('receiving end power in MW');
vr=input('receiving end voltage in kv');
pfr=input('receiving end power factor');
l=input('length of the line in km');
r=input('resistance/ph/km');
f=input('frequency');
D=input('diameter in m');
rad=D/2;
newrad=(0.7788*rad);
deq=(ab*bc*ca)^(1/3);
L=2*10^(-7)*log(deq/rad);
C=(2*pi*8.854*10^-12)/log(deq/rad);
XL=2*pi*f*L*l*1000;
rnew=r*l;
Z=rnew+1i*(XL);
Y=1i*(2*pi*f*C*l*1000);
a=1+((Z*Y)/2);
d=a;
b=Z;
c=Y*(1+((Z*Y)/4));
vrph=(vr*10^3)/1.732;
irold=(pr*10^6)/(1.732*vr*10^3*0.8);
k=sin(acos(pfr));
ir=irold*(pfr-(1j*k));
vs=((a*vrph)+(b*ir));
is=((c*vrph)+(d*ir));
angle(vs);
angle(is);
e=angle(vs);
u=angle(is);
PFS=cos(e-u);
eff=((pr*10^6)/(3*abs(vs)*abs(is)*PFS))*100;
reg=(((abs(vs)/abs(a))-abs(vrph))/abs(vrph))*100;
L
C
XL
rnew
a
b
c
d
Vs=abs(vs)
Is=abs(is)
voltage_angle=angle(vs)*180/pi
current_angle=angle(is)*180/pi
PFS
eff
reg
EXECUTION:
EX.NO: TRANSIENT STABILITY ANALYSIS OF A SINGLE MACHINE
INFINITE BUS SYSTEM
AIM:
SOFTWARE REQUIRED:
MATLAB software package
ALGORITHM:
STEP 1: Evaluate the accelerating power Pa.
STEP 3: The change in angular velocity for the first interval is calculated.
STEP 4: The change in rotor angle for the first interval is also calculated.
STEP 6: To evaluate Pa when under first situation, one should use the value
n = n-1 + deln
PROBLEM:
Consider a system which consists of generator having a rating of 50 MVA & H=2.7
’
MJ/MVA at rated speed. E=1.05, V=1, Xd =0.2, X1=X2=0.4 pu. The generator
supplies 50 MW to the infinite bus when a 3phase fault occurs at middle of line 2. i).
Plot swing curve for a sustained fault up to 0.5 sec.
ii). Plot the swing curve if the fault is cleared in 0.1 sec by simultaneous opening of
breakers at both ends of line 2.
iii).Find the critical clearing angle & clearing time.
iv). Write and execute a MATLAB program and also verify the output with the
manual calculation results.
PROGRAM:
clear all;
clc;
t=0;
tf=0;
f=input('Enter the input frequency');
s= input('Enter the machine rating');
ang(1)=input('Enter the inital
angle'); h=input('Enter the moment of
inertia constant');
tfinal=input('Enter the end time');
tstep=input('Enter the change in
time'); tc=input('enter the clearing
time'); pm=input('enter the power
transfer'); pmaxbf=input('enter the
prefault power'); pmaxdf=input('enter
the power during fault');
pmaxaf=input('enter the postfault
power'); m= (s*h)/(180*f);
delta=ang(1)*pi/180;
i=2;
ddelta=0;
time(1)=0;
while t<tfinal
if t==tf
paminus=pm-pmaxbf*sin(delta);
paplus=pm-pmaxdf*sin(delta);
paav=(paminus+paplus)/2;
pa=paav;
end
if(t==tc)
paminus=pm-pmaxdf*sin(delta);
paplus=pm-pmaxaf*sin(delta);
paav=(paminus+paplus)/2;
pa=paav;
end
if(t>tf&t<tc)
pa=pm-pmaxdf*sin(delta);
end
if(t>tc)
pa=pm-pmaxaf*sin(delta);
end
t,pa
ddelta=ddelta+(tstep*tstep*pa/m);
delta=((delta*180/pi)+ddelta)*(pi/180);
deltadeg=delta*180/pi;
t=t+tstep;
pause
time(i)=t;
ang(i)=deltadeg;
i=i+1;
end
axis([0 0.6 0 180])
plot(time,ang,'ko-')
EXECUTION: