Bus Admittance Matrix 1
implement bus admittance matrix using matlab, java and python
|
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. | |
Display the bus impedance matrix.
choice = input('Enter 1 for impedance and 2 for admittance:') |
Get the choice from the user - 1 for impedance and 2 for admittance.
n = input('Enter the number of buses: ') |
Get the number of buses from the user.
Form the bus admittance matrix based on the input.
ZBUS = calculate_zbus(ybus) |
Form the bus impedance matrix by taking inverse of ybus matrix.