Professional Documents
Culture Documents
Calculation of The Bus Admittance Matrix of A Multi-Bus Electrical Power System Using MATLAB
Calculation of The Bus Admittance Matrix of A Multi-Bus Electrical Power System Using MATLAB
Calculation of The Bus Admittance Matrix of A Multi-Bus Electrical Power System Using MATLAB
08EL03
Calculation of the Bus Admittance Matrix of a Multi-Bus Electrical Power System Using MATLAB
Introduction:
This assignment compromises of a program that in MATLAB coding to return the values of Bus Admittance Matrix of a multi-bus electrical network. The main advantages of bus admittance matrix are that it helps in data preparation. Its formation and modification is easy. For a large power system, more than 90 per cent of its off-diagonal elements are zero. Hence, the computer memory requirements are less. Mathematically,
MATLAB Code:
function imped_matrix(Z_delta) [m,n]=size(Z_delta); if m~=0 numArray1=Z_delta(:,1); numArray2=Z_delta(:,2); ResisArray=Z_delta(:,3); ReactArray=Z_delta(:,4); numBranchArray=length(numArray1); numbusArray=max(max(numArray1),max(numArray2)); ImpedArray=ResisArray+j*ReactArray ImpedOnes=ones(numBranchArray,1)./ImpedArray BusImpedMatrix=zeros(numbusArray,numbusArray) for k=1:numBranchArray if numArray1(k)>0 & numArray2(k)>0
Assignment No. 2
08EL03
BusImpedMatrix(numArray1(k),numArray2(k))=BusImpedMatrix(numArray1(k),numArra y2(k))-ImpedOnes(k); BusImpedMatrix(numArray2(k),numArray1(k))=BusImpedMatrix(numArray1(k),numArra y2(k)); end end for n=1:numbusArray for k=1:numBranchArray if numArray1(k)==n | numArray2(k)==n; BusImpedMatrix(n,n)=BusImpedMatrix(n,n)+ImpedOnes(k) else,end end end end
Execution:
Running Program for the System shown below:
Assignment No. 2
08EL03
Flow Chart