Codes, equations and algorithms for load flow analysis in power systems.
This project is maintained by Sree2011
Finding line flows and line losses in a power system.
Bus i and bus j: \(V_{ij} = V_{i} - V_{j}\)
Bus j and bus i: \(V_{ji} = V_{j} - V_{i}\)
Current from bus i to bus j: \(I_{ij} = y_{ij}(V_i - V_j) + y_{i0} V_i\)
Current from bus j to bus i: \(I_{ji} = y_{ji}(V_j - V_i) + y_{j0} V_i\)
From bus i to bus j: \(S_{ij} = V_{ij}I_{ij}^{*}\)
From bus j to bus i: \(S_{ji} = V_{ji}I_{ji}^{*}\)
classDiagram class Complex{ - float real - float imaginary + Complex(float real,float imaginary) Complex + getReal() float + getImag() float + fromString(String s) Complex + findMax(int[] array) int + add(Complex other) Complex + subtract(Complex other) Complex + multiply(Complex other) Complex + divide(Complex other) Complex + negate() Complex + reciprocal() Complex + toString() String } class Lineflow_Loss{ - Scanner sc + main(String args[]) void + get_input(int n, Complex[][] V, Complex[][] I, Complex[][] y) (ArrayList<Complex[][]>) + calculate_lineflow_loss(int n, Complex[][] V, Complex[][] I, Complex[][] y) (ArrayList<Complex[][]>) + display_output(int n, Complex[][] V, Complex[][] I, Complex[][] S, Complex[][] SL) void } Lineflow_Loss --> Complex: uses
Language | Link |
---|---|
Python | Lineflows_python |
Java | Lineflows_java |
MATLAB | Lineflows_matlab |