Codes - Load flow Analysis

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

This project is maintained by Sree2011

Home

Static Load flow Equations

Real Power, \(\begin{equation} P_i = \text{Re}\left(V_i^* \left( V_i Y_{ii} + \sum_{j=1, j \neq i}^{n} V_j Y_{ij} \right) \right) \end{equation}\)

Reactive Power, \(\begin{equation} Q_i = -\text{Im}\left(V_i^* \left( V_i Y_{ii} + \sum_{j=1, j \neq i}^{n} V_j Y_{ij} \right) \right) \end{equation}\)

Apparent power, \(S_i = V_i^* \left( V_i Y_{ii} + \sum_{j=1, j \neq i}^{n} V_j Y_{ij} \right)\)

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 other) Complex
        + reciprocal(Complex other) Complex
        + toString() String
        }

        class Load_flow_Eqns{
                - Scanner sc
                + main(String args[]) void
                + calculate_ybus(Complex[][] y, int n) Complex[][]
                + calculate_real_power(Complex[][] ybus, Complex[][] V, int n) Complex[][]
                + calculate_reactive_power(Complex[][] ybus, Complex[][] V, int n) Complex[][]
                + calculate_apparent_power(Complex[][] P, Complex[][] Q, int n) Complex[][]
                + display_results(Complex[][] V,Complex[][] ybus,Complex[][] P,Complex[][] Q,Complex[][] S) void

        }

        Load_flow_Eqns --> Complex : uses