PS Lab
PS Lab
------------------------------------------------------------------------------------------------------------------
DEPARTMENT OF ELECTRICAL & ELECTRONICS ENGINEERING
Vision of the Institute:
The aspiration is to emerge as a premier institution in technical education to produce competent engineers
and management professionals contributing to Industry and Society.
The aspiration is to produce competent Electrical and Electronics Engineering Graduates capable of making
valuable contributions in the field of Electrical and Electronics Engineering.
Mission of the Department:
MD-1: Student Support Systems:
To equip students with advanced learning skills in Electrical and Electronics Engineering, while providing
them with the necessary professional competencies to overcome future challenges.
MD-2: Training the students as per the industry needs:
To facilitate the students to acquire interdisciplinary skills in renewable energy, electric vehicles, and
power electronics applications through practical knowledge and innovative
techniques to meet evolving global challenges.
PEO 1: MREM B.Tech EEE graduates shall be able to apply technical knowledge in Electrical and
Electronics Engineering, empowering them to pursue higher studies or succeed in their professional
careers in the electrical Power Industry.
PEO 2: MREM B.Tech EEE graduates shall be able to design and implement complex electrical systems,
meeting the electrical and electronics industry demands.
PSO1: Provide efficient problem-solving techniques in the areas of Power Electronics, Power Systems,
Control systems, and Electrical Machines using MATLAB/MULTISIM.
PSO2: Design and develop a wide range of Electrical and Electronics Systems, specifically emphasizing
Electric Drives, Conventional Renewable Energy, and Automation to demonstrate overall knowledge and
contribute to the betterment of society.
1. There must be at least two (2) people in the laboratory while working on live circuits or chemical
processing
3. Remove all loose conductive jewelry and trinkets, including rings, which may come in contact with
exposedcircuits. (Do not wear long loose ties, scarves, or other loose clothing around machines.)
5. When making measurements, form the habit of using only one hand at a time. No part of a live circuit
shouldbe touched by the bare hand.
6. Keep the body, or any part of it, out of the circuit. Where interconnecting wires and cables are
involved, theyshould be arranged so people will not trip over them.
7. Be as neat a possible. Keep the work area and workbench clear of items not used in the experiment.
8. Always check to see that the power switch is OFF before plugging into the outlet. Also, turn
instrument or equipment OFF before unplugging from the outlet.
9. When unplugging a power cord, pull on the plug, not on the cable.
11. No ungrounded electrical or electronic apparatus is to be used in the laboratory unless it is double
insulated or battery operated.
12. Keep fluids, chemicals, and beat away from instruments and circuits.
13. Report any damages to equipment, hazards, and potential hazards to the laboratory instructor.
14. If in doubt about electrical safety, see the laboratory instructor. Regarding specific equipment,
consult the instruction manual provided by the manufacturer of the equipment. Information regarding
safe use and possible- hazards should be studied carefully.
Part - A
Part - B
1. Formation of YBUS.
2. Load Flow Analysis using Gauss Seidal (GS) Method.
3. Load Flow Analysis using Fast Decoupled (FD) Method.
4. Formation of ZBUS.
5. Simulation of Compensated Line
CO-PO MAPPING
P P P P P P P P P P P P
O1 O2 O3 O4 O5 O6 O7 O8 O9 O O O PSO1 PSO2
10 11 12
C325.1 1 3 2 2 2
C325.2 1 2 3 2 2
C325.3 1 3 2 2 2
C325.4 1 2 3 2 2
C325.5 1 3 2 2 3
C325.6 1 3 2 2 2
Avg 1 2 3 2 2 2
Aim: To study the Operation of an Non- Directional electromechanical type over current (I D M T relay) and plot
the inverse time current characteristics.
Apparatus:
Theory:
IDMT relay is inverse definite minimum time relay. It is one in which Time of operation is inversely
proportional to magnitude of fault current near pickup value and becomes substantially constant slightly above the
pickup value of the Relay. This is achieved by using a core of the Electro Magnet which gets saturated for currents
slightly greater than the pickup current. Fault current and measure relay operation time is used to conduct the
experiment. Values recorded for various TSMs and PSMs. Characteristics studied with the help of a graph and correlated
with theory.
This relay consists of Induction disc unit with an operation indicator and in some cases an instantaneous high
set unit all assembled are in standard frame. Type disc shaft carried silver rod moving contacts which complete the
auxiliary unit circuit through the fixed contract. Permanent magnet is used to control the disc speed. The setting is
adjusted by the movement of the back stop which is controlled by the rotating a KNUR LED molded disc at the base of
graduated time multiplier.
Circuit Diagram:
Procedure:-
3. Now set the described fault current by using the current source. For that switch ON the rotorswitch and move
the current till the described fault current is indicated in the ammeter.
4. Now move the rotor switch is OFF position and press the green button. Note down the time in seconds after
relay operated.
6. Plot the graph between time take for relay to operate Vs P.S.M for various T.S.M.
Precautions:-
PSM = TSM =
Expected graphs:
Result:
Discussion questions:
Theory:
A Differential relay responds to vector difference between two or more similar electrical quantities. From
this definition the Differential relay has at least two actuating quantities say1-1 and 2-1.
The two or more actuating quantities should be same.
Ex: Current/Current.
The Relay responds to vector difference between 1-1 &2-1which includes magnitude and /or phase angle
difference. Differential protection is generally unit protection. The protection zone is exactly determined by
location of CTs. The vector difference is actuated by suitable connection of CTs or PTs secondaries. Most
differential relays are current differential relays in which vector difference between current entering the winding &
current leaving the winding is used for relay operation. Differential protection is used for protection of
Generators, Transformers etc. Internal fault is created using switch and relay operation observed for various
TSMs. Relay operations for external faults can also be studied.
Circuit Diagram:
Procedure:
Result:
Discussion Questions:
1. Why identical CTs are required in this scheme.
2. How would you take into account CT imbalances?
3. What do you understand by internal fault?
Aim:
To study the operation of Microprocessor Based type under voltage relay and hence to obtain inverse
time/voltage characteristics.
Apparatus Required:
Theory:
The microcontroller-based design offers a wide range of Trip-Time characteristics, under voltage
or over voltage mode and PT rating (110V, 240V, 415V), which can all be selected in the field at the time of
commissioning. It accepts very wide auxiliary supply range.
Relay is designed for flush mounting. It is very compact in size, which results in saving of panel
space. Its draw-out construction makes installation and maintenance very easy.
Circuit Diagram:
Procedure:
Tabular Column
Graph
1-(0.05+∑a) Vn,
Where,
= PT rating 110V
Note: In Under voltage mode, continuing with above example, the pick up setting becomes
Vs=(1-0.30) =70% of Vn. For 110 volts Vn, the pick up voltage becomes 77 volts. If Vn=415, then pick up
voltage becomes 290.5 volts. Where voltages below this set value, relay picks up and trips according to selected trip
time characteristics.
a) Trip time characteristic selected and magnitude of fault in case of Inverse Trip Time
Characteristics.
b) Define Time in case of Definite Time Characteristics.
This feature offers various operations of Trip Time for a selected Trip Time Characteristic. The
Time Multiplication Factor can be set from 0.1 to 1.6 in steps of 0.1 using the last block of four DIP switches
shown in Diagram. This means in case of Inverse Trip Time Characteristics. Relay offers 16 parallel curves
corresponding to each Time Multiplier Setting as shown in Figure and in case of Definite Trip Time mode, the
trip time can be set 100msec to 160 secs.
The method of setting this switch is similar to one explained in previous pages.
T = K (0.1+∑t) where T
Result:
Aim: -
To determine the Positive, Negative and Zero sequence (sequence impedance) of the giventhree phase
transformer
Apparatus: -
Theory:
Since Transformers have the same impedance with reversed phase rotation, their +ve and –ve sequence impedances
are equal. This value being equal to the impedance of the Transformer. However, Zero sequence impedance depends upon the
Earth connection. If there is a through Circuit for the earth current, zero sequence impedance will be equal to the +ve
sequence impedance otherwise it will be infinite. Lab experiment is planned to find out sequence impedances by creation of
faults at secondary suitably and measure impedances. Proper care is taken to ensure readings would not damage the
equipment.
1. Circuit Diagram:
Procedure: -
Connect the given three phase transformer as shown in the circuit Diagram 1
After short-circuiting the low voltage side adjusts the voltage on high voltage side with
the help of the autotransformer such that the rated current flows in the windings.
Note down the voltage and current.
From these readings determine the transformer positive sequence Impedance which is also
equal to negative sequence impedance.
Determine the zero sequence impedance of the transformer by making
connections as shown in the 4. Circuit Diagram 2.
Note down the voltage and current.
V
Z1
3I
Z2 Z1
V
Z
0
3I
S.No Z1 Z2 Z0
V I V I V I
Result:
Discussion Questions:
Aim: To determine the Positive, Negative and Zero sequence of impedances or sequenceimpedances of the given
three phase alternator.
Apparatus:-
Theory:
The positive, Negative and Zero sequence impedances of rotating machines are generally different. The +ve
sequence impedance of Synchronous generator is equal to the Synchronous impedance of the machine.
Experimental set up to conduct OCC and SCC is made available. With the help of observations Synchronous
impedance can be calculated. The –ve sequence impedance is much less than +ve Sequence impedance. The
zero sequence impedance is a variable item and if its value is not given, it may be assumed to be equal to the
+ve sequenceimpedance. For Zero sequence impedance a separate model is used to conduct of experiment.
CIRCUIT DIAGRAM
OC test
3) ZERO-SEQUENCE IMPEDANCE:
Procedure:-
I. POSITIVE SEQUENCE IMPEDANCE
1. Obtain the O.C.C of the Alternator by connecting the Alternator As in fig .1.
2. Obtain the S.C.C of the Alternator by connecting the Alternator as in fig .2.
(VI)
Z 2 = V/ ( √(3 I)
Apply low voltage to the Armature, so that rated full load current flow in the series field winding.
Z 0 = V ao / Iao = 3E/I
S.No. E I P Zo Xo
Result:
Discussion Questions:
Aim:-
To determine Efficiency and Regulation of 3 phase Transmission modelWith
Resistive load .
To observe Ferranti effect.
Open conductor operation and measurement of Voltages and Currents.
Apparatus:-
Theory:
Circuit Diagram:
2.Switch ON supply and adjust rated voltage, note down voltage,Current and
3. Repeat step 2 at different loads of (A) Resistive load (B) inductive load
Vs Ws Vr Ir Wr Regulation Efficiency
Sample calculations:
W sending
Precaution: -
Keep the voltage at sending end constant through out the experiment.
Results:
Discussion questions:
a) Distributed Connection
b) Nominal – T connection
Apparatus:
Theory: If a transmission line is erected, the constants are measured by conducting the OC & SC tests at the
two ends of the line.
Using equations
Vs = AVr + BIr
Is = CV r +
DI r
Vs A
Z so = — = — (I r=0)
Is C
Vs B
Z ss = — = — (Vr=0)
Is D
Using equations
Vr = DVs — BIs
Ir = — CVs + AIs
— Is , Ir = — Ir
Vr = DVs — BIs
— Ir = — CVs — AIs
I r = CVs + AIs
Z ro = — = — (I s=0)
Ir C
Vr B
Z rs = — = — (V s=0)
Ir A
D B 1
Z ro — Z rs = — − —= —
C A AC
Z so
----------- = A2
Zro - Zrs
Z so
A = √ ----------------
(Z ro — Z rs)
Z rs = -----
B = Zrs . A
Zso
B = Zrs √ ------------
(Zro – Zrs)
A A 1 Z so
C Z so Z so (Zro – Zrs)
Z ro = ----
D = C.Zro
Z ro Z so
Z so (Zro – Zrs)
D=A
Procedure:
1. Connect the circuit as per fig (3) for O.C test on RE.
2. Set 230V in Voltmeter & note V r, Ir & p.f meter reading.
3. Connect the circuit as per fig (4) for SC test on RE.
4. Set 8A in Ammeter & note V r, Ir & Wattmeter reading.
S.C (V r=0) 8A
S.C (Vs=0) 8A
Calculations:
Vs
Is
Vs
Is
Vr
Ir
Vr
Ir
Z so
A = √ ----------
(Zro – Zrs)
Zso
B = Zrs √ ----------
(Zro – Zrs)
1 Z so
C = --- √ ----------
Z so (Zro – Zrs)
D=A
Discussion questions:
2. Prove AD-BC = 1
Most transmission lines use high-voltage three-phase alternating current (AC), although single
phase AC is sometimes used in railway electrification systems.High-voltage direct-current (HVDC)
technology is used for greater efficiency in very long distances (typically hundreds of miles (kilometres), or
in submarine power cables (typically longer than 30 miles (50 km). HVDC links are also used to stabilize
against control problems in large power distribution networks where sudden new loads or blackouts in one
part of a network can otherwise result in synchronization problems and cascading failures.
A key limitation in the distribution of electric power is that, with minor exceptions, electrical energy
cannot be stored, and therefore must be generated as needed. A sophisticated control system is required to
ensure electric generation very closely matches the demand. If the demand
for power exceeds the supply, generation plants and transmission equipment can shut down which,in the worst
cases, can lead to a major regional blackout, such as occurred in the India Northeast blackouts of 1965, 1977,
2003, and other regional blackouts in 1996 and 2011. To reduce the riskof such failures, electric
transmission networks are interconnected into regional, national or continental wide networks thereby
providing multiple redundant alternative routes for power toflow should (weather or equipment) failures
occur. Much analysis is done by transmission companies to determine the maximum reliable capacity of
each line (ordinarily less than itsphysical or thermal limit) to ensure spare capacity is available should
there be any such failure in
another part of the network.
High-voltage overhead conductors are not covered by insulation. The conductor material is nearly
always an aluminium alloy, made into several strands and possibly reinforced with steel strands. Copper
was sometimes used for overhead transmission but aluminium is lighter, yields only marginally reduced
performance, and costs much less. Overhead conductors are a commodity supplied by several companies
worldwide. Improved conductor material and shapes are regularly used to allow increased capacity and
modernize transmission circuits. Conductor sizes range from 12 mm 2 (#6 to 750 mm 2 (1,590,000 circular mils
area), with varying resistance and current- carrying capacity. Thicker wires would lead to a relatively small
increase in capacity due to the skin effect, that causes most of the current to flow close to the surface of the
wire. Because of this current limitation, multiple parallel cables (called bundle conductors) are used when
higher capacity is needed. Bundle conductors are also used at high voltages to reduce energy loss caused by
corona discharge.
Today, transmission-level voltages are usually considered to be 110 kV and above. Lower voltages
such as 66 kV and 33 kV are usually considered sub transmission voltages but are occasionally used on
long lines with light loads. Voltages less than 33 kV are usually used for distribution. Voltages above
230 kV are considered extra high voltage and require different designs compared to equipment used at lower
voltages.
Since overhead transmission wires depend on air for insulation, design of these lines requires
minimum clearances to be observed to maintain safety. Adverse weather conditions of high wind and low
temperatures can lead to power outages. Wind speeds as low as 23 knots (43 km/h) can permit
conductors to encroach operating clearances, resulting in a flashover and loss of supply.[2] Oscillatory
motion of the physical line can be termed gallop orflutter depending on the frequency and amplitude of
oscillation Grid input
At the power stations the energy is produced at a relatively low voltage between about
2.3 kV and 30 kV, depending on the size of the unit. The generator terminal voltage is then stepped
up by the power station transformer to a higher voltage (115 kV to 765 kV AC, varying by the
transmission system and by country) for transmission over long distances.
Losses
Transmitting electricity at high voltage reduces the fraction of energy lost to resistance, which
averages around 7%.[8] For a given amount of power, a higher voltage reduces the current and thus the
resistive losses in the conductor. For example, raising the voltage by a factor of 10 reduces the current by a
corresponding factor of 10 and therefore the I2R losses by a factor of 100, provided the same sized conductors
are used in both cases. Even if the conductor size (cross- sectional area) is reduced 10-fold to match the
lower current the I2R losses are still reduced 10- fold. Long distance transmission is typically done with
overhead lines at voltages of 115 to 1,200 kV. At extremely high voltages, more than 2,000 kV between
conductor and ground, corona discharge losses are so large that they can offset the lower resistive losses in the line
conductors. Measures to reduce corona losses include conductors having large diameter; often hollow to save
weight,[9] or bundles of two or more conductors.
Transmission and distribution losses in the USA were estimated at 6.6% in 1997 [10] and 6.5% in
2007.[10] In general, losses are estimated from the discrepancy between energy produced (as reported by
power plants) and energy sold to end customers; the difference between what is produced and what is
consumed constitute transmission and distribution losses, assuming no theft of utility occurs.
As of 1980, the longest cost-effective distance for DC electricity was determined to be 7,000 km
(4,300 mi). For AC it was 4,000 km (2,500 mi), though all transmission lines in use today are substantially
shorter.[7]
In an alternating current circuit, the inductance and capacitance of the phase conductors can be
significant. The currents that flow in these components of the
circuit impedance constitute reactive power, which transmits no energy to the load.
Reactive current causes extra losses in the transmission circuit. The ratio of real power (transmitted to the
load) to apparent power is the power factor. As reactive current increases, the reactive power increases and
the power factor decreases. For systems with low power factors, losses are higher than for systems with high
power factors. Utilities add capacitor banks and other components (such as phase-shifting
transformers; static VAR compensators; physical transposition of the phase conductors; and flexible
AC transmission systems, FACTS) throughout the system to control reactive power flow for reduction of
losses and stabilization of system voltage.
Subtransmission
Subtransmission is part of an electric power transmission system that runs at relatively lower
voltages. It is uneconomical to connect all distribution substations to the high main transmission voltage,
because the equipment is larger and more expensive. Typically, only larger substations connect with this high
voltage. It is stepped down and sent to smaller substations in towns and neighborhoods. Subtransmission
circuits are usually arranged in loops so that a singleline failure does not cut off service to a large number of
customers for more than a short time. While subtransmission circuits are usually carried on overhead lines,
in urban areas buried cable may be used.
EXPERIMENT-7
Formation of YBUS.
SOFTWARE-REQUIRED:
MATLAB:7.8
THEORY:
Bus admittance is often used in power system studies. In most of the power system studies it is
required to form y- bus matrix of the system by considering certain power system parameters depending upon
the type of analysis. Y-bus may be formed by inspection method only if there is no mutual coupling between
the lines. Every transmission line should be represented by p- equivalent. Shunt impedances are added to
diagonal element corresponding to the buses at which these are connected. The off diagonal elements are
unaffected. The equivalent circuit of Tap changing transformers is included while forming Y-bus matrix.
PROCEDURE:
1. Enter the command window of the MATLAB.
2. Create a new M – file by selecting File - New – M – File
3. Type and save the program in the editor window.
4. Execute the program by either pressing tools – Run.
5. View the results.
PROGRAM:
% loine data
% nl nr pu pu pu
1 3 0.01 0.03 0 1
for n = 1:nbr
for k=1:nbr;
Ybus(nl(k),nr(k))=Ybus(nl(k),nr(k))-y(k)/a(k);
Ybus(nr(k),nl(k))=Ybus(nl(k),nr(k));
end
end
for n=1:nbus
for k=1:nbr
if nl(k)==n
elseif nr(k)==n
else, end
end
end
disp(Ybus);
clear Pgg
RESULTS
EXPERIMENT-8
Load Flow Analysis using Gauss Seidal (GS) Method.
SOFTWARE REQUIRED:
MATLAB -7.8
THEORY:
The GAUSS – SEIDEL method is an iterative algorithm for solving a set of non-linear load
flow equations.
PROCEDURE:
1. Enter the command window of the MATLAB.
2. Create a new M – file by selecting File - New – M – File
3. Type and save the program in the
editor Window
4. Execute the program by either pressing tool – Run.
5. View the results.
PROGRAM:
clear all;
basemva=100;
accuracy=0.001;
maxiter=100;
%bus data
busdata=[1 1 1.05 0 0 0 0 0 0 0 0
% line data
% nl nr pu pu pu
1 3 0.01 0.03 0 1
Lfybus;
Lfgauss;
Busout;
Lineflow;
nbus = length(busdata(:,1));
for k=1:nbus
n=busdata(k,1);
Qsh(n)=busdata(k, 11);
P(n)=(Pg(n)-Pd(n))/basemva;
Q(n)=(Qg(n)-Qd(n)+ Qsh(n))/basemva;
end
DV(n)=0;
end
Vc = zeros(nbus,1)+j*zeros(nbus,1); Sc = zeros(nbus,1)+j*zeros(nbus,1);
while exist('accel')~=1
accel = 1.3;
end
while exist('accuracy')~=1
accuracy = 0.001;
end
while exist('basemva')~=1
basemva= 100;
end
while exist('maxiter')~=1
maxiter = 100;
end
iter=0;
maxerror=10;
iter=iter+1;
for n = 1:nbus;
YV = 0+j*0;
for L = 1:nbr;
if nl(L) == n, k=nr(L);
YV = YV + Ybus(n,k)*V(k);
YV = YV + Ybus(n,k)*V(k);
end
end
Sc = conj(V(n))*(Ybus(n,n)*V(n) + YV) ;
Sc = conj(Sc);
if kb(n) == 1
Vc(n) = V(n);
elseif kb(n) == 2
if Qmax(n) ~= 0
DV(n)=DV(n)+.005; end
else, end
else,end
else,end
end
if kb(n) ~= 1
else, end
if kb(n) == 0
elseif kb(n) == 2
VcI = imag(Vc(n));
end
end
end
if converge ~= 1
end
k=0;
for n = 1:nbus
if kb(n) == 1
S(n)=P(n)+j*Q(n);
k=k+1;
Pgg(k)=Pg(n);
k=k+1;
Pgg(k)=Pg(n);
S(n)=P(n)+j*Q(n);
end
end
Pgt = sum(Pg); Qgt = sum(Qg); Pdt = sum(Pd); Qdt = sum(Qd); Qsht = sum(Qsh);
busdata(:,3)=Vm'; busdata(:,4)=deltad';
RESULTS
Ybus= 20.0000 -50.0000i -10.0000 +20.0000i -10.0000 +30.0000i
No. of Iterations = 6
EXAMPLE
%PF studies for the Gauss Siedel Method 5-bus system
clear all
clc
basemva=100;
accuracy = .0001;
maxiter = 10;
busdata=[1 1 1.06 0 0 0 0 0 10 50 0
2 2 1.045 0 20 10 40 30 10 50 0
3 2 1.03 0 20 15 30 10 10 40 0
4 0 1 0 50 30 0 0 0 0 0
5 0 1 0 60 40 0 0 0 0 0];
%line dadta
Lfybus;
Decouple;
Busout;
Lineflow;
EXPERIMENT-9
Load Flow Analysis using Fast Decoupled (FD) Method.
AIM: To Develop MATLAB program for FDLF Load Flow Analysis.
SOFTWARE REQUIRED:
MATLAB -7.8
THEORY:
The GAUSS – SEIDEL method is an iterative algorithm for solving a set of non-linear load
flow equations.
PROCEDURE:
1. Enter the command window of the MATLAB.
2. Create a new M – file by selecting File - New – M – File
3. Type and save the program in the
editor Window
4. Execute the program by either pressing tool – Run.
5. View the results.
PROGRAM:
clear all;
basemva=100;
accuracy=0.001;
maxiter=100;
%bus data
busdata=[1 1 1.05 0 0 0 0 0 0 0 0
% loine data
% nl nr pu pu pu
1 3 0.01 0.03 0 1
Lfybus;
decouple;
Busout;
Lineflow;
nbus = length(busdata(:,1));
for k=1:nbus
n=busdata(k,1);
Qsh(n)=busdata(k, 11);
P(n)=(Pg(n)-Pd(n))/basemva;
Q(n)=(Qg(n)-Qd(n)+ Qsh(n))/basemva;
end
nss(n) = ns;
end
Ym = abs(Ybus); t = angle(Ybus);
ii=0;
for ib=1:nbus
if kb(ib) == 0 | kb(ib) == 2
ii = ii+1;
jj=0;
for jb=1:nbus
if kb(jb) == 0 | kb(jb) == 2
jj = jj+1;
B1(ii,jj)=imag(Ybus(ib,jb));
else,end
end
else, end
end
ii=0;
for ib=1:nbus
if kb(ib) == 0
ii = ii+1;
jj=0;
for jb=1:nbus
if kb(jb) == 0
jj = jj+1;
B2(ii,jj)=imag(Ybus(ib,jb));
else,end
end
else, end
end
maxerror = 1; converge = 1;
iter = 0;
% Start of iterations
while maxerror >= accuracy & iter <= maxiter % Test for max. power mismatch
iter = iter+1;
id=0; iv=0;
for n=1:nbus
nn=n-nss(n);
J11=0; J33=0;
for i=1:nbr
if nl(i) == n | nr(i) == n
else , end
end
Pk = Vm(n)^2*Ym(n,n)*cos(t(n,n))+J33;
Qk = -Vm(n)^2*Ym(n,n)*sin(t(n,n))-J11;
if kb(n) == 2 Q(n)=Qk;
if Qmax(n) ~= 0
else, end
else,end
else,end
end
if kb(n) ~= 1
id = id+1;
DP(id) = P(n)-Pk;
DPV(id) = (P(n)-Pk)/Vm(n);
end
if kb(n) == 0
iv=iv+1;
DQ(iv) = Q(n)-Qk;
DQV(iv) = (Q(n)-Qk)/Vm(n);
end
end
Dd=-B1\DPV';
DV=-B2\DQV';
id=0;iv=0;
for n=1:nbus
if kb(n) ~= 1
id = id+1;
if kb(n) == 0
iv = iv+1;
Vm(n)=Vm(n)+DV(iv); end
end
maxerror=max(max(abs(DP)),max(abs(DQ)));
end
if converge ~= 1
end
k=0;
V = Vm.*cos(delta)+j*Vm.*sin(delta);
deltad=180/pi*delta;
i=sqrt(-1);
for n = 1:nbus
if kb(n) == 1
S(n)=P(n)+j*Q(n);
k=k+1;
Pgg(k)=Pg(n);
S(n)=P(n)+j*Q(n);
k=k+1;
Pgg(k)=Pg(n);
end
end
busdata(:,3)=Vm'; busdata(:,4)=deltad';
Pgt = sum(Pg); Qgt = sum(Qg); Pdt = sum(Pd); Qdt = sum(Qd); Qsht = sum(Qsh);
RESULTS
No. of Iterations = 13
EXPERIMENT-10
Aim:
Forming ZBus by building algorithm
Problem statement:
Form the ZBus by building algorithm for the following network shown.
• Enter the inputs in the command window and see the output response.
• Note down the simulated results.
PROGRAM:
end
if newbus<=currentbusno & ref~=0
Zbus=Zbus-1/(value+Zbus(from,from)+Zbus(to,to)-2*Zbus(from,to))*(Zbus(:,from)-
Zbus(:,to))*(Zbus(from,:)-Zbus(to,:));
continue
end
end
fprintf('\n Thus Zbus by building algorithm is \n');
disp(Zbus);
OUTPUT RESPONSE:
Zbus =
0.2500
Zbus =
0.2500 0.2500
0.2500 0.3500
Zbus =
0.2500 0.2500 0.2500
0.2500 0.3500 0.2500
0.2500 0.2500 0.3500
RESULT:
EXPERIMENT - 11
TIME CONSTANT CALCULATION OF RL CIRCUIT
AIM:
To calculate time constant of RL circuit and plot its response..
APPARATUS REQUIRED:
Desktop with pre installed MATLAB
CIRCUIT DIAGRAM:
Circuit Diagram
THEORY:
RL Circuit:
OBSERVATION TABLE:
RESULT:
EXPERIMENT - 12
TIME CONSTANT CALCULATION OF RC CIRCUIT
AIM:
To calculate time constant of RC circuit and plot its response..
APPARATUS REQUIRED:
Desktop with pre installed MATLAB
CIRCUIT DIAGRAM:
Circuit Diagram
THEORY:
RC Circuit:
PROCEDURE:
1. Open MATLAB Software
MALLA REDDY ENGINEERING COLLEGE AND MANAGEMENT SCIENCES(UJ),DEPT.OF EEE Page 63
POWER SYSTEMS LAB EEE DEPARTMENT
2. Open editor window
3. Write the Program in the editor window
4. Run the program
5. Observe the result in the plot window
MATLAB PROGRAM:\
clc;clearall;close all;
%% RC circuit Charging Analysis
%
C = 10e-6; % Capacitance
R_1 = 1e3; % Resistance 1
Tau_1 = C*R_1; % Time Constant 1 (tau=RC)
t = 0:0.002:0.05; % Time Sampling
V_1 = 10*(1-exp(-t/Tau_1)); % Voltage Calculation 1 (formula
from text)
R_2 = 10e3; % Resistance 2
Tau_2 = C*R_2; % Time Constant 2 (tau=RC)
V_2 = 10*(1-exp(-t/Tau_2)); % Voltage Calculation 2
R_3 = .1e3; % Resistance 3
Tau3 = C*R_3; % Time Constant 3 (tau=RC)
V_3 = 10*(1-exp(-t/Tau3)); % Voltage Calculation 3
%% Plotting the Results
plot(t,V_1,'r',t,V_2,'g', t,V_3,'b')
axis([0 0.06 0 12])
title('Capacitor Charging Analysis with three Time Constants')
xlabel('Time, s')
ylabel('Voltage across capacitor')
OBSERVATION TABLE:
MODEL GRAPH:
RESULT:
EXPERIMENT - 13
TIME CONSTANT CALCULATION OF RLC CIRCUIT
AIM:
To calculate time constant of RLC circuit
APPARATUS REQUIRED:
Desktop with pre installed MATLAB
CIRCUIT DIAGRAM:
R L
i(t)
+
_ v(t) C
i(t)
+
_ v(t) C
R L
PROCEDURE:
1. Open MATLAB Software
2. Open editor window
3. Write the Program in the editor window
4. Run the program
5. Observe the result in the plot window
MATLAB PROGRAM:
clc;
clear all;
close all;
%% Series RLC circuit
C=input('C value'); % Capacitance
R=input('R value'); % Resistance
L=input('L value');
TC1=2*L/R
%% parallel RLC circuit
TC2=2*R*C
OBSERVATION TABLE:
CALCULATIONS:
RESULT: