You are on page 1of 34

EPTD LAB

INTRODUCTION TO MATLAB
Expt.No:
Date :

OBJECTIVES

(i) To procure sufficient knowledge in MATLAB to solve the power system


Problems.

(ii) To write a MATLAB program.

SOFTWARE REQUIRED

(i) MATLAB

1. INTRODUCTION TO MATLAB

MATLAB is a high performance language for technical computing. It integrates


computation, visualization and programming in an easy-to-use environment where problems and
solutions are expressed in familiar mathematical notation.

MATLAB is numeric computation software for engineering and scientific calculations.


MATLAB is primary tool for matrix computations. MATLAB is being used to simulate random
process, power system, control system and communication theory.

MATLAB comprising lot of optional tool boxes and block set like control system,
optimization, and power system and so on.

1.1. TYPICAL USES INCLUDE

 Math and computation.

 Algorithm development.

 Modeling, simulation and prototype.

 Data analysis, exploration and Visualization.

 Scientific and engineering graphics.

 Application development, including graphical user interface building.

MATLAB is a widely used tool in electrical engineering community. It can be used for
simple mathematical manipulation with matrices for understanding and teaching basic
mathematical and engineering concepts and even for studying and simulating actual power system
and electrical system in general. The original concept of a small and handy tool has evolved to

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


EPTD LAB

become an engineering work house. It is now accepted that MATLAB and its numerous tool boxes
replace and/or enhance the usage of traditional simulation tool for advanced engineering
applications.

Engineering personnel responsible for studies of electrical power system, control system
and power electronics circuits will benefit from the MATLAB. To expertise in Electrical System
Simulation one should have a basic understanding of electric circuits, power system and power
electronics.

1.2. GETTING STARTED WITH MATLAB

To open the MATLAB applications double click the Matlab icon on the desktop. This will
open the MATLAB window space with Matlab prompt as shown in the fig.1.

Fig-1: MATLAB window space

To quit from MATLAB type…

>> quit
(Or)
>>exit
To select the (default) current directory click ON the icon […] and browse for the folder
named “D:\SIMULAB\xxx”, where xxx represents roll number of the individual candidate in
which a folder should be created already.

When you start MATLAB you are presented with a window from which you can enter
commands interactively. Alternatively, you can put your commands in an M- file and execute it at
the MATLAB prompt. In practice you will probably do a little of both. One good approach is to
incrementally create your file of commands by first executing them.
M-files can be classified into following 2 categories,

i) Script M-files – Main file contains commands and from which


functions can also be called.
ii) Function M-files – Function file that contains function command at the
first line of the M-file.
M-files to be created by you should be placed in your default directory. The M-files
developed can be loaded into the work space by just typing the M-file name.

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


EPTD LAB

To load and run a M-file named “ybus.m” in the workspace.

>>ybus

These M-files of commands must be given the file extension of “.m”. However M-files are
not limited to being a series of commands that you don’t want to type at the MATLAB window,
they can also be used to create user defined function. It turns out that a MATLAB tool box is
usually nothing more than a grouping of M-files that someone created to perform a special type of
analysis like control system design and power system analysis. Any of the matlab commands (eg:
sqrt) is really an M-file.

One of the more generally useful matlab tool boxes is simulink – a drag and-drop dynamic
system simulation environment. This will be used extensively in laboratory, forming the heart of
the computer aided control system design (CACSD) methodology that is used.
>>simulink
At the matlab prompt type simulink and brings up the “Simulink Library Browser”. Each of
the items in the Simulink Library Browser are the top level of a hierarchy of palette of elements
that you can add to a simulink model of your own creation. At this time expand the “simulink”
pallete as it contains the majority of the elements you will use in this course. Simulink has built
into it a variety of integration algorithm for integrating the dynamic equations. You can place the
dynamic equations of your system into simulink in four ways.
1 Using integrators
2. Using transfer functions.
3. Using state space equations.
4. Using S- functions (the most versatile approach)
Once you have the dynamics in place you can apply inputs from the “sources” palettes and
look at the results in the “sinks” palette.

Finally the most important MATLAB features are its help. At the MATLAB Prompt
simply typing helpdesk gives you access to searchable help as well as all the MATLAB manuals.
>>helpdesk

To get the details about the command name sqrt, just type…

>>help sqrt

Where sqrt is the command name and you will get pretty good description in the MATLAB
window as follows.
/SQRT Square root.
SQRT(X) is the square root of the elements of X. Complex
results are produced if X is not positive.

See also SQRTM.

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


EPTD LAB

Overloaded methods
help sym/sqrt.m

1.3 MATLAB WORKSPACE


The workspace is the window where you execute MATLAB commands (Ref. figure-1). The
best way to probe the workspace is to type whos. This command shows you all the variables that
are currently in workspace. You should always change working directory to an appropriate
location under your user name.

Another useful workspace-like command is


>>clear all

It eliminates all the variables in your workspace. For example start MATLAB and execute
the following sequence of commands
>>a=2;
>>b=5;
>>whos
>>clear all
The first two commands loaded the two variables a and b to the workspace and assigned
value of 2 and 5 respectively. The clear all command clear the variables available in the work
space. The arrow keys are real handy in MATLAB. When typing in long expression at the
command line, the up arrow scrolls through previous commands and down arrow advances the
other direction. Instead of retyping a previously entered command just hit the up arrow until you
find it. If you need to change it slightly the other arrows let you position the cursor anywhere.

Finally any DOS command can be entered in MATLAB as long as it is preceded by any
exclamination mark.
>>!dir
1.4 MATLAB Data Types

The most distinguishing aspect of MATLAB is that it allows the user to manipulate vectors
(like 5+j8) and matrices with the same ease as manipulating scalars (like5,8). Before diving into
the actual commands everybody must spend a few moments reviewing the main MATLAB data
types. The three most common data types you may see are,

1) arrays 2) strings 3) structures.


As for as MATLAB is concerned a scalar is also a 1 x 1 array. For example clear your
workspace and execute the commands.

>>a=4.2:
>>A=[1 4;6 3];
>>whos

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


EPTD LAB

Two things should be evident. First MATLAB distinguishes the case of a variable name
and that both a and A are considered arrays. Now let’s look at the content of A and a.

>>a
>>A

Again two things are important from this example. First anybody can examine the
contents of any variables simply by typing its name at the MATLAB prompt. Second, when typing
in a matrix space between elements separate columns, whereas semicolon separate rows. For
practice create the matrix in your workspace by typing it in all the MATLAB prompt.

>>B= [3 0 -1; 4 4 2;7 2 11];


(use semicolon(;) to represent the end of a row)
>>B
Arrays can be constructed automatically. For instance to create a time vector where the
time points start at 0 seconds and go up to 5 seconds by increments of 0.001

>>mytime =0:0.001:5;
Automatic construction of arrays of all ones can also be created as follows,
>>myone=ones (3,2)
Note:
Any MATLAB command can be terminated by a semicolon, which suppressed any
echo information to the screen.

1.5 Scalar versus Array Mathematical Operation

Since MATLAB treats everything as an array, you can add matrices as easily as
scalars.
Example:
>>clear all
>> a=4;
>> A=7;
>>alpha=a+A;
>>b= [1 2; 3 4];
>>B= [6 5; 3 1];
>>beta=b+B
Of course cannot violate the rules of matrix algebra which can be understood from the following
example.
>>clear all
>>b=[1 2;3 4];
>>B=[6 7];
>>beta=b*B
In contrast to matrix algebra rules, the need may arise to divide, multiply, raise to a
power one vector by another, element by element. The typical scalar commands are used for this

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


EPTD LAB

“+,-,/, *, ^” except you put a “.” in front of the scalar command. That is, if you need to multiply the
elements of [1 2 3 4] by [6 7 8 9], just type...

>>[1 2 3 4].*[6 7 8 9]

1.6 Conditional Statements

Like most Programming languages, MATLAB supports a variety of conditional statements


and looping statements. To explore these simply type

>>help if
>>help for
>>help while
Example :
>>if z=0
>>y=0
>>else
>>y=1/z
>>end

Looping :
>>for n=1:2:10
>>s=s+n^2
>>end
- Yields the sum of 1^2+3^2+5^2+7^2+9^2
1.7 PLOTTING

MATLAB’s potential in visualizing data is pretty amazing. One of the nice features is that
with the simplest of commands you can have quite a bit of capability.
Graphs can be plotted and can be saved in different formulas.

>>clear all
>>t=0:10:360;
>>y=sin (pi/180 * t);
To see a plot of y versus t simply type,
>>plot(t,y)
To add label, legend, grid and title use

>>xlabel (‘Time in sec’);


>>ylabel (‘Voltage in volts’)
>>title (‘Sinusoidal O/P’);
>>legend (‘Signal’);

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


EPTD LAB

The commands above provide the most plotting capability and represent several shortcuts
to the low-level approach to generating MATLAB plots, specifically the use of handle graphics.
The helpdesk provides access to a pdf manual on handle graphics for those really interested in it.
1.8 Functions
As mentioned earlier, a M-file can be used to store a sequence of commands or a user-
defined function. The commands and functions that comprise the new function must be put in a
file whose name defines the name of the new function, with a filename extension of '.m'.A function
is a generalized input/output device. That is you can give some input.(arguments) and provides
some output. MATLAB functions allow you much capability to expand MATLAB’s usefulness.
We will just touch on function here as you may find them beneficial later.
We will start by looking at the help on functions :
>>help function
We will create our own function that given an input matrix returns a vector containing the
admittance matrix(y) of given impedance matrix(z)’

z=[5 2 4;
1 4 5] as input, the output would be,

y=[0.2 0.5 0.25;


1 0.25 0.2] which is the reciprocal of each elements.
To perform the same name the function “admin” and noted that “admin” must be
stored in a function M-file named “admin.m”. Using an editor, type the following commands and
save as “admin.m”.
admin.m :
function y = admin(z)
y = 1./z
return
Simply call the function admin from the workspace as follows,
>>z=[5 2 4;
1 4 5]
>>admin(z)
The output will be,
ans = 0.2 0.5 0.25
1 0.25 0.2
Otherwise the same function can be called for any times from any script file provided the function
M-file is available in the current directory.

With this introduction anybody can start programming in MATLAB and can be
updated themselves by using various commands and functions available. Concerned with the
“Power System Simulation Laboratory”, initially solve the Power System Problems manually, list
the expressions used in the problem and then build your own MATLAB program or function.

RESULT:

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


EPTD LAB

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


EPTD LAB

Expt. No: Date:


COMPUTATION OF LINE PARAMETERS USING MATLAB

AIM
To determine the positive sequence line parameters L and C per phase per kilometre
of a three phase single and double circuit transmission lines for different conductor
arrangements and to understand modeling and performance of medium lines.

SOFTWARE REQUIRED: MATLAB 7.7

THEORETICAL BACK GROUND:-

Line Parameters
Transmission line has four electrical parameters - resistance, inductance,
capacitance and conductance. The inductance and capacitance are due to the
effect of magnetic and electric fields around the conductor. The shunt
conductance characterizes the leakage current through insulators, which is
very small and can be neglected. The parameters R, L and C are essential for
the development of the transmission line models to be used in power system
analysis both during planning and operation stages.

While the resistance of the conductor is best determined from manufactures


data, the inductances and capacitances can be evaluated using formula. The
student is advised to read any other text book before taking up the
experiment.

INDUCTANCE
The inductance is computed from flux linkage per ampere. In the case of the
three phase lines, the inductance of each phase is not the same if
conductors are not spaced equilaterally. A different inductance in each
phase results in unbalanced circuit. Conductors are transposed in order to
balance the inductance of the phases and the average inductance per phase is
given by simple formulas, which depends on conductor configuration and

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


1
EPTD LAB

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


EPTD LAB

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


EPTD LAB

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


EPTD LAB

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


EPTD LAB

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


EPTD LAB

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


EPTD LAB

PROCEDURE
Enter the command window of the MATLAB.
Create a new M – file by selecting File - New – M – File.
Type and save the program in the editor window.
Execute the program by pressing Tools – Run.
View the results.

EXERCISE

1.A 500kv 3φ transposed line is composed of one ACSR 1,272,000-cmil, 45/7 bittern
conductor per phase with horizontal conductor configuration as show in fig.1. The conductors
have a diameter of 1.345in and a GMR of 0.5328in. Find the inductance and capacitance per
phase per kilometer of the line and justify the result using MATLAB.

A D12=35’ B D 23=35’ C

D =70’

Fig.1

2.The transmission line is replaced by two ACSR 636,000-cmil, 24/7 Rook conductors which
have the same total cross-sectional area of aluminum as one bittern conductor. The line
spacing as measured from the centre of the bundle is the same as before and is shown in fig.2.
The conductors have a diameter of 0.977in and a GMR of 0.3924in.Bundle spacing is 18in
.Find the inductance and capacitance per phase per kilometer of the line and justify the result
using MATLAB.

18” A B C
D12=35’ D 23=35’

D13=70’
Fig.2

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


3
EPTD LAB

3.A 345- KV double –circuit three- phase transposed line is composed of two ACSR,
1,431,000-cmil, 45/7 Bobolink conductors per phase with vertical conductor configuration as
shown in fig.3. The conductors have a diameter of 1.427in and a GMR of 0.564 in .the
bundle spacing in 18in. find the inductance and capacitance per phase per kilometer of the
line and justify the result using MATLAB.

a S11=11m
c’ H12 = 7m

b S22=16.5m b’

H12 = 6.5m

S33=12.5m
c a’
Fig.3
PROGRAM 1:
Dab= input('Enter Dab value’);
Dbc= input('Enter Dbc value’);
Dca= input('Enter Dac value’);
GMD=(Dab*Dbc*Dca)^(1/3);
GMRL= input('Enter GMRL(GMR) Value in ft (inch/12): ');
disp('Value of L in mH/KM:’);
L = 0.2*log(GMD/GMRL)
dia= input('Enter conductor diameter in in’);
r=dia/2; GMRC=r/12;
disp('Value of C in µF/KM:’);
C = 0.0556/log(GMD/GMRC)

PROGRAM 2:
Dab= input('Enter Dab value:’);
Dbc= input('Enter Dbc value:’);
Dca= input('Enter Dac value:’);
GMD=(Dab*Dbc*Dca)^(1/3);
dia=input('Enter conductor diameter in in’);
r=dia/2;
d=input('Enter Bundle Spacing in inch’);
Ds=input('Enter GMR(Ds) in inch’);
GMRL=(sqrt(d*Ds))/12;
GMRC=(sqrt(d*r))/12;
disp('Value of L in mH/KM:’);
L = 0.2*log(GMD/GMRL)
disp('Value of C in µF/KM:’);
C = 0.0556/log(GMD/GMRC)

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


4
EPTD LAB

PROGRAM 3 :
S = input('Enter row vector [S11, S22, S33] = ');
H = input('Enter row vector [H12, H23] = ');
d = input('Bundle spacing in inch = ');
dia = input('Conductor diameter in inch = '); r=dia/2;
Ds = input('Geometric Mean Radius in inch = ');
S11 = S(1); S22 = S(2); S33 = S(3); H12 = H(1); H23 = H(2);
a1 = -S11/2 + j*H12;
b1 = -S22/2 + j*0;
c1 = -S33/2 - j*H23;
a2 = S11/2 + j*H12;
b2 = S22/2 + j*0;
c2 = S33/2 - j*H23;
Da1b1 = abs(a1 - b1); Da1b2 = abs(a1 - b2);
Da1c1 = abs(a1 - c1); Da1c2 = abs(a1 - c2);
Db1c1 = abs(b1 - c1); Db1c2 = abs(b1 - c2);
Da2b1 = abs(a2 - b1); Da2b2 = abs(a2 - b2);
Da2c1 = abs(a2 - c1); Da2c2 = abs(a2 - c2);
Db2c1 = abs(b2 - c1); Db2c2 = abs(b2 - c2);
Da1a2 = abs(a1 - a2);
Db1b2 = abs(b1 - b2);
Dc1c2 = abs(c1 - c2);
DAB=(Da1b1*Da1b2* Da2b1*Da2b2)^0.25;
DBC=(Db1c1*Db1c2*Db2c1*Db2c2)^.25;
DCA=(Da1c1*Da1c2*Da2c1*Da2c2)^.25;
GMD=(DAB*DBC*DCA)^(1/3)
Ds = 2.54*Ds/100; r = 2.54*r/100; d = 2.54*d/100;
Dsb = (d*Ds)^(1/2); rb = (d*r)^(1/2);
DSA=sqrt(Dsb*Da1a2); rA = sqrt(rb*Da1a2);
DSB=sqrt(Dsb*Db1b2); rB = sqrt(rb*Db1b2);
DSC=sqrt(Dsb*Dc1c2); rC = sqrt(rb*Dc1c2);
GMRL=(DSA*DSB*DSC)^(1/3)
GMRC = (rA*rB*rC)^(1/3)
L=0.2*log(GMD/GMRL) % mH/km
C = 0.0556/log(GMD/GMRC) % micro F/km

MANUAL SOLUTION: (PROBLEM-1)

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


5
EPTD LAB

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


MANUAL SOLUTION:
EPTD LAB(PROBLEM-2)

MANUAL SOLUTION: (PROBLEM-3)

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


6
EPTD LAB

RESULT

Thus the positive sequence line parameters L and C per phase per kilometre of a three
phase single and double circuit transmission lines for different conductor arrangements were
determined and verified with MATLAB software.
The value of L and C obtained from MATLAB program are:
Case1: L= C=
Case2: L= C=
Case3: L= C=

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


8
EPTD LAB

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


EPTD LAB

Expt. No: Date:


MODELING OF TRANSMISSION LINES

AIM
To understand modeling and performance of Short, Medium and Long transmission
lines.

SOFTWARE REQUIRED: MATLAB 7.7

THEORY
The important considerations in the design and operation of a transmission line are the
determination of voltage drop, line losses and efficiency of transmission. These values are
greatly influenced by the line constants R, L and C of the transmission line. For instance, the
voltage drop in the line depends upon the values of above three line constants. Similarly, the
resistance of transmission line conductors is the most important cause of power loss in the line
and determines the transmission efficiency.

A transmission line has three constants R, L and C distributed uniformly along the
whole length of the line. The resistance and inductance form the series impedance. The
capacitance existing between conductors for 1-phase line or from a conductor to neutral for a 3-
phase line forms a shunt path throughout the length of the line.

Short Transmission Line:

When the length of an overhead transmission line is upto about 50km and the line
voltage is comparatively low (< 20 kV), it is usually considered as a short transmission line.

Medium Transmission Lines:

When the length of an overhead transmission line is about 50-150 km and the line
voltage is moderatly high (>20 kV < 100 kV), it is considered as a medium transmission line.

Long Transmission Lines:


When the length of an overhead transmission line is more than 150km and line voltage
is very high (> 100 kV), it is considered as a long transmission line.

Voltage Regulation:

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


9
EPTD LAB

The difference in voltage at the receiving end of a transmission line between conditions of
no load and full load is called voltage regulation and is expressed as a percentage of the receiving
end voltage.

Performance of Single Phase Short Transmission Lines


As stated earlier, the effects of line capacitance are neglected for a short transmission line.
Therefore, while studying the performance of such a line, only resistance and inductance of
the line are taken into account. The equivalent circuit of a single phase short transmission line
is shown in Fig. (i).Here, the total line resistance and inductance are shown as concentrated
or lumped instead of being distributed. The circuit is a simple a.c. series circuit.

Let I = load current


R = loop resistance i.e., resistance of both conductors
XL = loop reactance
VR = receiving end voltage
cos ϕR = receiving end power factor (lagging)
VS = sending end voltage
cos ϕS = sending end power factor

The phasor diagram of the line for lagging load power factor is shown in Fig. (ii). From the
right angled traingle ODC, we get,

2 2
(OC) = (OD)2 + (DC)
2 2
VS = (OE + ED)2 + (DB + BC)
2 2
= (VR cos ϕR + IR) + (VR sinϕR + IXL)

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


10
EPTD LAB

An approximate expression for the sending end voltage VS can be obtained as follows. Draw
perpendicular from B and C on OA produced as shown in Fig. 2. Then OC is nearly equal to
OF i.e.,

OC = OF = OA + AF = OA + AG + GF
= OA + AG + BH
VS = VR + I R cos ϕR + I XL sin ϕR

Medium Transmission Line

Nominal T Method
In this method, the whole line capacitance is assumed to be concentrated at the middle
point of the line and half the line resistance and reactance are lumped on its either side as
shown in Fig.1, Therefore in this arrangement, full charging current flows over half the line.

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


11
EPTD LAB

In Fig.1, one phase of 3-phase transmission line is shown as it is advantageous to work in


phase instead of line-to-line values.

Fig.1
Let IR = load current per phase
R = resistance per phase
XL = inductive reactance per phase
C = capacitance per phase
cos ϕR = receiving end power factor (lagging)
VS = sending end voltage/phase
V1 = voltage across capacitor C

The phasor diagram for the circuit is shown in Fig.2. Taking the receiving end voltage VR as
the reference phasor, we have,

Receiving end voltage, VR = VR + j 0


Load current, IR = IR (cos ϕR - j sin ϕR)

Fig.2

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


12
EPTD LAB

Nominal π Method

In this method, capacitance of each conductor (i.e., line to neutral) is divided into two
halves; one half being lumped at the sending end and the other half at the receiving end as
shown in Fig.3. It is obvious that capacitance at the sending end has no effect on the line
drop. However, it’s charging current must be added to line current in order to obtain the total
sending end current.

Fig.3
IR = load current per phase
R = resistance per phase
XL = inductive reactance per phase
C = capacitance per phase
cos R = receiving end power factor (lagging)
VS = sending end voltage per phase
The phasor diagram for the circuit is shown in Fig.4. Taking the receiving end voltage as the
reference phasor, we have,
VR = VR + j 0
Load current, IR = IR (cos R - j sin R)

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


13
EPTD LAB

EXERCISE ( Short Transmission Line)

A 220- KV, 3φ transmission line is 40 km long. The resistance per phase is 0.15 Ω per km
and the inductance per phase is 1.3623 mH per km. The shunt capacitance is negligible. Use
the short line model to find the voltage and power at the sending end and the voltage
regulation and efficiency when the line supplying a three phase load of
a) 381 MVA at 0.8 power factor lagging at 220 KV.
b) 381 MVA at 0.8 power factor leading at 220 KV.

PROGRAM (Short Transmission Line)


VRLL=220;
VR=VRLL/sqrt(3);
Z=[0.15+j*2*pi*60*1.3263e-3]*40;
disp=('(a)For 0.8 power factor lagging')
SR=304.8+j*228.6;
IR=conj(SR)/(3*conj(VR));
IS=IR;
VS=VR+Z*IR;
VSLL=sqrt(3)*abs(VS)
SS=3*VS*conj(IS)
REG=((VSLL-VRLL)/(VRLL))*10
EFF=(real(SR)/real(SS))*100
disp=('(b)For 0.8 power factor leading')
SR=304.8-j*228.6;
IR=conj(SR)/(3*conj(VR));
IS=IR;
VS=VR+Z*IR;
VSLL=sqrt(3)*abs(VS)
SS=3*VS*conj(IS)
REG=((VSLL-VRLL)/(VRLL))*100
EFF=(real(SR)/real(SS))*100

MANUAL SOLUTION: (Short transmission line)

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


14
EPTD LAB

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


15
EPTD LAB

Exercise : (Medium Transmission Line)


A three phase overhead line 200km long R = 0.16 ohm/km and Conductor diameter of 2cm with spacing 4, 5, 6 m
transposed. Find A, B, C, D constants, sending end voltage, current, power factor and power when the line is
delivering full load of 50MW at 132kV, 0.8 pf lagging, transmission efficiency, receiving end voltage and regulation.

PROGRAM (Medium Transmission Line)


clc
clear all
z=[];
z=input('Enter the length of line(km),Receiving voltage(v),Power(W),Powerfactor,L,R&C(per phase per km)');
l=z(1);vr=z(2);p=z(3);pf=z(4);L=z(5);R=z(6);c=z(7);
z=32+i*81;
y=i*0.00056;
disp('Medium Transmission line by nominal T method:')
A=1+(z*y)/2;C=y;B=z*(1+(z*y)/4);D=1+(z*y)/2;
disp('Generalized ABCD Constants are:')
disp(A);
disp(B);
disp(C);
disp(D);
ir=p/(1.732*vr*0.8)
vs=(A*vrph)+(ir*B);
fprintf('Sending end voltage Vs is %f\n',vs);
is=(vrph*C)+(D*ir);
fprintf('Sending end current Is is %f\n',is);
reg=((3*conj(vs)/conj(A))-v)*100/v;
fprintf('Voltage Regulation is %f\n',reg);
pows=3* conj(vs)* conj(is)*0.808;
eff=p*100/pows;
fprintf('Efficiency is %f\n',eff);
MANUAL SOLUTION: (Medium transmission line)

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


16
EPTD LAB

RESULT
Thus the program for modeling of transmission line was executed by using
MATLAB and the output was verified with theoretical calculation.
The value of the voltage regulation and efficiency obtained from the MATLAB
program are
SHORT TRANSMISSION LINE
FOR LAGGING PF: FOR LEADING PF:

Voltage regulation REG = Voltage regulation REG =

Efficiency EFF = Efficiency EFF =

MEDIUM TRANSMISSION LINE

Voltage regulation REG =


Efficiency EFF =

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


18
EPTD LAB
1

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


EPTD LAB

Expt. No: Date:

FORMATION OF BUS ADMITTANCE & BUS IMPEDANCE


MATRIX USING MATLAB
AIM
To determine the bus admittance & bus impedance matrix for the given power
system Network.
SOFTWARE REQUIRED: MATLAB 7

OBJECTIVES
To determine the bus admittance and impedance matrices for the given
power system network.

To obtain network solution using these matrices.

To obtain certain specified columns of the bus impedance matrix Z


or the full matrix Z using the factors of Y or the inverse of Y.

SOFTWARE REQUIRED
MATLAB.

THEORETICAL BACKGROUND
Network Description of a Multimode Power System
The bus admittance matrix Y and bus impedance matrix Z are the two
important network descriptions of interconnected power system. The
injected bus currents and bus voltages of a power system under steady
state condition can be related through these matrices as

Y V= I
Z I =V

GCEK,ELECTRICAL ENGINEERING DEPARTMENT


19
EPTD LAB

GCEK,ELECTRICAL ENGINEERING DEPARTMENT

You might also like