You are on page 1of 5

# CHAPTER 14

14.2

## % pwrplt-Script file to plot Pdc vs Pac

% Developed by the authors
for phi=0:15:75
Pac=linspace(0,2,500);
Pdc=(0.9428)./(cos(phi*pi/180))*Pac;
hold on
keyboard
end
hold off

## The script file is executed by calling pwrplt as shown below

pwrplt
K plot(Pac,Pdc)
K return
K plot(Pac,Pdc,'--')
K return
K plot(Pac,Pdc,':')
K return
K plot(Pac,Pdc,'-.')
K return
K plot(Pac,Pdc,'.')
K return
K plot(Pac,Pdc,'x')
K grid
K xlabel('AC power per circuit in pu')
K ylabel(DC power per circuit in pu')

## K ylabel('DC power per circuit in pu')

K title('PLOT OF DC POWER VS AC POWER')
K legend('phi=0 deg','phi=15 deg','phi=30 deg','phi=45 deg',...
'phi=60 deg','phi=75 deg')
K return

## The output is shown below.

PLOT OF DC POWER VS AC POWER
8
phi=0 deg
phi=15 deg
phi=30 deg
phi=45 deg
phi=60 deg
phi=75 deg

## DC power per circuit in pu

6
5
4
3
2
1
0

0.2

0.4

0.6

0.8
1
1.2
1.4
AC power per circuit in pu

1.6

1.8

14.3 The MATLAB function VIprofile, given below, plots the voltage profile of
variable lengths (as a fraction of wave length) of loss-free transmission lines for varying
function [Vs,Is,leng] = VIprofile(L,C,Vr,Pr,pf,pftype,f);
% Programme to compute plot the VI profile of a transmission line

## % Developed by the authors

%Computation of SIL of the line
Zc=sqrt(L/C);lambda=1/(f*sqrt(L*C))
SIL=(abs(Vr))^2/Zc;
%Computation of ABCD constants
beta=2*pi*f*sqrt(L*C);
l=input('length of line as percentage of lambda') % input length of the
% as a fraction of wave length
leng=fix(l*lambda)
Vs=zeros(1,leng+1);Is=zeros(1,leng+1);
for k=1:leng+1
if k == 1
Ir=Pr/(Vr*pf);
phi=acos(pf);
if pftype == 0;
phi=-phi;
else
end
Ir=Ir*(cos(phi)+i*sin(phi));
else
A=cos(beta*(k-1));D=A;
B=i*Zc*sin(beta*(k-1));C=i*sin(beta*(k-1))/Zc;
Vs(k)=A*Vr+B*Ir;
Is(k)=C*Vr+D*Ir;
end
end
for k=1:leng+1
x=k-1;y1=abs(Vs(k))/(10^3);y2=angle(Vs(k))*180/pi;
plot(x,y1,'^')
hold on
plot(x,y2,'.')
end

Input data:
L=1.0*10^(-3);C=0.025*10^(-6);Vr=220*10^3/sqrt(3);
Pr=300*10^6/3;pf=0.8;pftype=0;f=50;
[Vs,Is,leng] = VIprofile(L,C,Vr,Pr,pf,pftype,f); % Execution of function VIprofile for
% lagging pf
Wave length:
lambda = 4000 kms
Input:
length of line as percentage of lambda0.05
l = 0.0500

## xlabel('Length of line in kms')

ylabel('Voltage in kV / Voltage angle in degrees')
title('VOLTAGE PROFILE OF A LOSS FREE LINE')
pftype=1.0;
[Vs,Is,leng] = VIprofile(L,C,Vr,Pr,pf,pftype,f); % Execution of function VIprofile for
lambda = 4000 kms
Input:
length of line as percentage of lambda0.05
l = 0.0500
leng = 200 kms

## VOLTAGE PROFILE OF A LOSS FREE LINE

180
Voltage - lagging pf

160
140

120
100
80
60
40

20
0

20

40

60

## Voltage angle lagging pf

80
100 120 140 160
180
Length of line in kms

200

## Errata: Problem 14.3 (page 612)

Line

as printed in text

3rd line