Codes - Load flow Analysis

Codes, equations and algorithms for load flow analysis in power systems.

This project is maintained by Sree2011

Home

Line Flows and Line Losses

Finding line flows and line losses in a power system.

Formulas for Calculation

Voltage Between Buses

Current Calculation

Line Flows

Line Losses

\[S_{L_{ij}} = S_{ij} + S_{ji}\]

Class Diagram

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

Documentation

Language Link
Python Lineflows_python
Java Lineflows_java
MATLAB Lineflows_matlab