Professional Documents
Culture Documents
% in Chapter 3
% m1.m determines the RLC parameters of the line from its physical
% description and then computes
% the ABCD matrix and the circuit parameters of the
% series RL, nominal pi and equivalent pi model of the line.
% It computes and plot the receiving-end real and reactive power
% circle diagram of the line assuming that the voltage magnitude
% at the sending- and receiving-end are kept constant.
% input constant
epso = 8.854e-12; % permittivity of free space in F/m
muo = 4e-7*pi; % permeability of free space in H/m
we = 2*pi*60 ; % system frequency in rad/sec
% receiving-end condition
PR = 120e6/3; % per phase receiving-end power in W
VR = 345e3/sqrt(3); % receiving-end phase voltage in rms V used as ref
pfR = 0.9; % pf of load at receiving end
sinphiR = -sqrt(1-pfR*pfR);%sine of pf angle, neg for lagging
SR = PR*(1 - j*sinphiR/pfR)% per phase complex load power
IR = conj(SR/VR) % receiving-end current
% plot PQ locus
plot(real(SR(1,:)),imag(SR(1,:)),'-.', real(SR(2,:)),imag(SR(2,:)),'-',
real(SR(3,:)), imag(SR(3,:)),':');
title('Loci of receiving-end P+jQ')
xlabel('P in W');
ylabel('Q in Var');
axis('square'); % set for square plot
axis('equal'); % equal scaling for both axis