Bus Admittance Matrix 1
implement bus admittance matrix using matlab, java and python
Loading...
Searching...
No Matches
Functions | Variables
Zbus_matlab.m File Reference

Functions

 display_matrix (ZBUS, n)
 Display the bus impedance matrix.
 

Variables

 n = input('Enter the number of buses: ')
 Get the number of buses from the user.
 
 choice = input('Enter 1 for impedance and 2 for admittance:')
 Get the choice from the user - 1 for impedance and 2 for admittance.
 
 y = get_input(choice,n)
 get input from the user and calculate line admittances
 
 ybus = calculate_matrix(y, n)
 Form the bus admittance matrix based on the input.
 
 ZBUS = calculate_zbus(ybus)
 Form the bus impedance matrix by taking inverse of ybus matrix.
 

Function Documentation

◆ display_matrix()

display_matrix ( ZBUS  ,
n   
)

Display the bus impedance matrix.

display_matrix

Variable Documentation

◆ choice

choice = input('Enter 1 for impedance and 2 for admittance:')

Get the choice from the user - 1 for impedance and 2 for admittance.

◆ n

n = input('Enter the number of buses: ')

Get the number of buses from the user.

◆ y

y = get_input(choice,n)

get input from the user and calculate line admittances

get_input

◆ ybus

ybus = calculate_matrix(y, n)

Form the bus admittance matrix based on the input.

calculate_matrix

◆ ZBUS

ZBUS = calculate_zbus(ybus)

Form the bus impedance matrix by taking inverse of ybus matrix.

calculate_matrix