Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

QV CURVES MATLAB CODES

%Reactive Power Control Exercie of Series 03


%Jafar Fathi
%ID:941181007

%QV Curves of Transmission Line with Various P


clc;
clear all;
close all;

v1=1.0;
b=1.0;
N=0;
A={'0.1' '0.2' '0.3' '0.4' '0.5'};

for i=[0.1 0.2 0.3 0.4 0.5 ]

pd1=i;

N=N+1;
COLORS=hsv(N);

v2=linspace(1.05,0.15,1000);
sintheta=pd1./(b*v1.*v2);
theta=asin(sintheta);

qd1=-v2.^2*b+v1*b.*v2.*cos(theta);

plot(qd1,v2,'Color',COLORS(N,:),'DisplayName',['p = ' A{N}],'linewidth',2);


hold on
xlabel('Q');
ylabel('V');
title('QV Curves of Transmission Line with Various P')
legend show

QV Curves of Transmission Line with Various P


1.1
p= 0.1
1 p= 0.2
p= 0.3
0.9
p= 0.4
p= 0.5
0.8

0.7

0.6
V

0.5

0.4

0.3

0.2

0.1
-0.25 -0.2 -0.15 -0.1 -0.05 0 0.05 0.1 0.15 0.2 0.25
Q

You might also like