|
Bus Admittance Matrix 1
implement bus admittance matrix using matlab, java and python
|
Static Public Member Functions | |
| static void | main (String[] args) |
| static Complex[][] | get_input (int choice, int nbus) |
| static Complex[][] | calculate_matrix (Complex[][] y, int n) |
| static void | display_matrix (Complex[][] Ybus, int nbus) |
This class creates a bus admittance matrix (Ybus). Functions:
main(): The main function that executes the formation of the Ybus matrix.get_input(): This function takes the input from the user.calculate_matrix(): This function calculates the bus admittance matrix.display_admittance_matrix(): This function displays the bus admittance matrix. This function calculates the bus admittance matrix.
| y | Line admittance matrix |
| n | Total no.of buses in the system |
Initialize the bus admittance matrix
External loop
Internal loop
|
static |
This function displays the bus admittance matrix.
| Ybus | Bus admittance matrix |
| n | Total no.of buses in the system |
|
static |
This function takes the input from the user.
| choice | User choice: 1 for impedance and 2 for admittance |
| nbus | Total no.of buses in the system |
Initialize the line admittance matrix
|
static |
Main function that executes the formation of the Ybus matrix.
| args | Command line arguments. |