Sie sind auf Seite 1von 6

1.

Program should ask for the number of busses in the system


2. For each bus it has to ask the values for the R X B C
3. Based on the values it should create the bus admittance matrix at each harmonic order up to 25
(Need separate function).
4. Invert the bus admittance matrix at each harmonic order (Need a separate function)
5. The harmonic impedance at bus k will be Z(k,k) vs harmonic order.click here. Just an example
which is known as Zh. { (k.k) is the position in the matrix}
6. Plot the graph between Zh and harmonic order.
7. And find harmonic distortion for each bus with respect to harmonic order.
8. Should be an option to inject the current source to any bus.
9. Find the harmonic voltages V=Z*I for each harmonic order h.
10. Compare the obtained value of V with the Australia and New Zeeland standards. Go to end of the
doc
Note: make sure that you are adding the capacitance to each bus
If you formed the admittance matrix perfectly then the rest is very simple

Example is just for 2 bus system but please reduce the length using the loops. I got it from my supervisor
for better undersyanding try not to take the things from the program do it on your own way. Its just s very
basic structure.

>> rline=0.001;
>> xline=0.01;
>> bline=0.005;
>> y12=1/(rline+j*xline)

y12 =

9.9010 -99.0099i

>> Y=zeros(2,2)

Y=

0 0
0 0

>> Y(1,2)=-y12

Y=

0.0000 + 0.0000i -9.9010 +99.0099i


0.0000 + 0.0000i 0.0000 + 0.0000i

>> Y(2,1)=Y(1,2)

Y=

0.0000 + 0.0000i -9.9010 +99.0099i


-9.9010 +99.0099i 0.0000 + 0.0000i

>> Y(1,1) = y12+0.5*j*bline

Y=

9.9010 -99.0074i -9.9010 +99.0099i


-9.9010 +99.0099i 0.0000 + 0.0000i

>> Y(2,2)=y12+0.5*j*bline

Y=

9.9010 -99.0074i -9.9010 +99.0099i


-9.9010 +99.0099i 9.9010 -99.0074i

>> Y1=Y;
>> h=3;
>> y12=1/(rline+j*h*xline)

y12 =

1.1099 -33.2963i

>> Y3=zeros(2,2)

Y3 =

0 0
0 0

>> Y3(1,2)=-y12

Y3 =

0.0000 + 0.0000i -1.1099 +33.2963i


0.0000 + 0.0000i 0.0000 + 0.0000i

>> Y3(2,1)=Y3(1,2)

Y3 =

0.0000 + 0.0000i -1.1099 +33.2963i


-1.1099 +33.2963i 0.0000 + 0.0000i

>> Y(1,1)=y12+0.5*j*bline*h

Y=

1.1099 -33.2888i -9.9010 +99.0099i


-9.9010 +99.0099i 9.9010 -99.0074i

>> Y3(1,1)=y12+0.5*j*bline*h

Y3 =

1.1099 -33.2888i -1.1099 +33.2963i


-1.1099 +33.2963i 0.0000 + 0.0000i

>> clear Y
>> Y3(2,2)=y12+0.5*j*bline*h

Y3 =

1.1099 -33.2888i -1.1099 +33.2963i


-1.1099 +33.2963i 1.1099 -33.2888i

>> Y5=zeros(2,2)

Y5 =
0 0
0 0

>> h=5

h=

>> y12=1/(rline+j*h*xline)

y12 =

0.3998 -19.9920i

>> Y5(1,2)=-y12

Y5 =

0.0000 + 0.0000i -0.3998 +19.9920i


0.0000 + 0.0000i 0.0000 + 0.0000i

>> Y5(2,1)=Y5(1,2)

Y5 =

0.0000 + 0.0000i -0.3998 +19.9920i


-0.3998 +19.9920i 0.0000 + 0.0000i

>> Y5(1,1)=y12+0.5*bline*h

Y5 =

0.4123 -19.9920i -0.3998 +19.9920i


-0.3998 +19.9920i 0.0000 + 0.0000i

>> Y5(2,2)=y12+0.5*bline*h

Y5 =

0.4123 -19.9920i -0.3998 +19.9920i


-0.3998 +19.9920i 0.4123 -19.9920i

>> Z1=inv(Y1)

Z1 =

1.0e+02 *

0.0000 - 2.0000i -0.0000 - 2.0000i


-0.0000 - 2.0000i 0.0000 - 2.0000i

>> Z3=inv(Y3)

Z3 =

0.0003 -66.6592i -0.0003 -66.6742i


-0.0003 -66.6742i 0.0003 -66.6592i

>> Z5=inv(Y5)

Z5 =
40.0003 + 0.0125i 39.9997 - 0.0125i
39.9997 - 0.0125i 40.0003 + 0.0125i

>> zh=[abs(Z1(2,2)) abs(Z3(2,2)) abs(Z5(2,2))]

zh =

199.9975 66.6592 40.0003

>> h=[1 3 5]

h=

1 3 5

>> plot(h,Zh)
Undefined function or variable 'Zh'.
Did you mean:
>> plot(h,zh)
Another example

% harmonic load flow


%two Bus system
MaxHarmonic=30;
z12=j*0.1;
bcapbus2=j*0.05;
bcapline=j*0.2;
Zh1=zeros(1,MaxHarmonic);%Bus 1 impedance at harmonic frequencies
Zh2=zeros(1,MaxHarmonic);%Bus 2 impedance at harmonic frequencies
for h=1:MaxHarmonic
%First set up Y the harmonic bus admittance matrix
Y=zeros(2,2);
Y(1,1)=1/(z12*h);% increase inductive reacance in proportion to
harmonic order h
Y(1,1)=Y(1,1)+0.5*h*bcapline; % adding line capacitance which is
multiplied by h
Y(2,2)=1/(z12*h);% increase inductive reacance in proportion to
harmonic order h
Y(2,2)=Y(2,2)+0.5*h*bcapline;
Y(2,2)=Y(2,2)+h*bcapbus2;
Y(1,2)=-1/(h*z12);
Y(2,1)=Y(1,2);
%Finished forming harmonic bus admittance matrix
Z=inv(Y);%get bus impedance matrix
Zh1(h)=Z(1,1);
Zh2(h)=Z(2,2);
end
figure(1)
h=1:MaxHarmonic;
plot(h,abs(Zh1));
title('Harmonic Impedance at Bus 1');
xlabel('Harmonic Order')
ylabel('Harmonic Impedance - per unit')
grid
figure(2)
plot(h,abs(Zh2));
title('Harmonic Impedance at Bus 2');
xlabel('Harmonic Order')
ylabel('Harmonic Impedance - per unit')
grid
% Calulate Voltages at the 13th harmonic for a 0.1 per unit current
% injection at bus 2
Y=zeros(2,2);
h=13;
Y(1,1)=1/(z12*h);% increase inductive reacance in proportion to
harmonic order h
Y(1,1)=Y(1,1)+0.5*h*bcapline; % adding line capacitance which is
multiplied by h
Y(2,2)=1/(z12*h);% increase inductive reacance in proportion to
harmonic order h
Y(2,2)=Y(2,2)+0.5*h*bcapline;
Y(2,2)=Y(2,2)+h*bcapbus2;
Y(1,2)=-1/(h*z12);
Y(2,1)=Y(1,2);
%Finished forming harmonic bus admittance matrix
Z=inv(Y);%get bus impedance matrix
%13th harmonic Current injection vector
I=[0;0.1];
%13th harmonic voltages at buses 1 and 2
V=Z*I

Das könnte Ihnen auch gefallen