This action might not be possible to undo. Are you sure you want to continue?

**Generating Bus. Impedance & Admittance Matrices
**

by Engr. Khurram Hashmi BS. Electrical Power Engineering (FOE, Univ. of Central Punjab)

For those of you who are interested in automating your power / load flow calculations. This might provide an initial step. When invoked in Matlab workspace, This algorithm asks for the total number of busses in your system, followed by prompts asking for impedances between busses. It generates a Bus Impedance Matrix (called ZMAT here) and a Bus admittance Matrix ( called YMAT here). A dummy variable ( a ) is used as input to the algo. While being invoked. You can assign any integer value, the operation is regardless of it. Paste this in an M.file and save with the function name Please follow the Matlab syntax when calling function in Main

>>[ZMAT,YMAT]=admittmat(1)

function[ZMAT,YMAT]=admittmat(a) %ANY NUMBER OF BUSSES WITH ANY IMPEDANCE BETWEEN THEM n=input('indicate the total number of busses .n. ='); ZMAT=zeros(n,n); YMAT=zeros(n,n); %initializing matrix %initializing matrix

%..Input Algo... %possib=n^2 ;%total elements rw=1 ; col=1; for(rw = 1:n) for(col =rw:n) if(col == rw) ZMAT(rw,col) = 0; %this calculated later on else str=['Impedance between bus',num2str(rw),'&','bus',num2str(col)]; %output display string disp(str)% %IMPEDANCE MATRIX ENTRIES ZMAT(rw,col) = input('entry =')*(-1); ZMAT(col,rw) = ZMAT(rw,col); %corresponding in lower diagonal %ADMITTANCE MATRIX ENTRIES YMAT(rw,col) = inversion(ZMAT(rw,col)); YMAT(col,rw) = YMAT(rw,col); %corresponding in lower diagonal end end end clc; %calculating the Bus Admittance and Impedances YMATdiag=(-1)*sum(YMAT,2,'double'); %adding row wise ZMATdiag=(-1)*sum(ZMAT,2,'double'); %adding row wise for(cntr = 1:n) YMAT(cntr,cntr) = YMATdiag(cntr,1); ZMAT(cntr,cntr) = ZMATdiag(cntr,1); end %----INVERSION-------------------------function[inverse]= inversion(value); if( value == 0) inverse = 0; else inverse = inv(value); end

%placing in diagonal %placing in diagonal

**Notes on the Algorithm:
**

Each element of a bus impedance or admittance matrix corresponds to the impedance or admittance the busses share with each other (corresponding to the index number). A negative sign is supplemented with non Diagonal elements. YMAT=

**Y12 gives the admittance Busses 1 and 2 share Y13.. the admittance Busses 1 ad 3 share and so on.
**

Whereas Y11 gives the self admittance of the Bus 1 i.e. the sum of impedances connected to bus 1 Note that: Y11 =Y12 + Y13 ZMAT and YMAT (n by n) matrices are initialized with zeroes ZMAT= YMAT=

Elements in the Diagonal are omitted as zeros. Whereas, only the upper diagonal elements are prompted for and multiplied by (-1). These form corresponding elements ZMAT= The algorithm reflects these in the lower diagonal of the matrix ZMAT= Partially, Admittance matrix is generated by inversing each of these elements YMAT= Adding the rows we get the diagonal elements ZMATdiagonal = Similarly for the Admittance diagonal elements YMATdiagonal = These are placed in the diagonals respectively

ZMAT= Similarly,

YMAT= .

Your feedback welcome at: khurram_hashmi_pk@hotmail.com

- Brocheure A4
- Quotation 2000 Watt -Cmplete
- Quotation 1000 Watt -Cmplete
- Quotation 400 Watt
- Quotation 200 Watt Solar UPS
- Quotation 200 Watt Solar UPS- Add On
- CV Engr. Khurram Hashmi-Amend
- Soln Exp-1 by Khurram Hashmi
- Wind Turbine Control Matlab Simulations Pid
- Reactive Power Control
- Economic Load Dsipatch-Fixed
- Design, Instal,Solar Array -Progress 2
- MOSFETs
- AirBlast Circuit Breakers
- Wien Bridge Oscillator.
- Wien Bridge Oscillator.
- Solving a System in Matlab
- O Dearest of My Friends
- As Far as the Poem Goes
- Applictaions.8051
- Standing in the Shadows By
- Intruder
- As if u were. .
- who am I

generates bus Impedance and admittance matrix

generates bus Impedance and admittance matrix

- Matlab Programs
- exp 1 DI Y-Bus
- Ybus formation for load flow studies
- Matlab Program
- PSS Lab
- Formation of Zbus Matrix
- Step by Step Formation of Ybus and Zbus
- Power system simulation Lab Manual
- PSS Lab Manual_ssit
- Power System Analysis Lab Manual
- Ee 1404 Power System Lab Manual
- LOAD FLOW
- Power System Analysis
- Power Flow Analysis by Ramaswamy Natarajan
- Power System Lab Manual Original and Modified
- MATLAB Lab 5a - Bus Admittance Matrix 200%5B1%5D
- FAULT ANALYSIS IN TRANSMISSION SYSTEM USING MATLAB
- Load flow PPT
- Matlab
- MATLAB-Based Transient Stability Analysis of a Power System
- Computer Methos in Power System Analysis
- Power System Stability Vol III Kimbark
- Load-Flow Analysis in Power Systems
- Modern Power Systems Analysis D P Kothari I J Nagrath
- Computer Methods in Power System Analysis by G.W. Stagg & a.H. El-Abiad
- Power System Nagrath Kothari Solutions
- Power Flow Analysis Software Using Matlab
- Power Systems Analysis (2nd Edition) by Bergen, Vittal
- Solving a System in Matlab
- Power Systems Analysis - Solutions Manual
- Bus Admittance Impedance. Matrix Algorithm. Matlab

Are you sure?

This action might not be possible to undo. Are you sure you want to continue?

We've moved you to where you read on your other device.

Get the full title to continue

Get the full title to continue reading from where you left off, or restart the preview.

scribd