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

Functions

 display_matrix (YBUS, n)
 Display the bus admittance 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.
 

Function Documentation

◆ display_matrix()

display_matrix ( YBUS  ,
n   
)

Display the bus admittance 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