Gaussppg.m

download Gaussppg.m

of 2

Transcript of Gaussppg.m

  • 7/25/2019 Gaussppg.m

    1/2

    % Program for Gauss - Seidel Load Flow Analysis

    % Assumption, Bus 1 is considered as Slack us!

    yus " yusppg#$ % &alling program 'yusppg!m' to get (-Bus!

    usdata " usdata)#$ % &alling 'usdata)!m' for us data!

    us " usdata#*,1$ % Bus numer!

    type " usdata#*,+$ % ype of Bus 1-Slack, +-P, .-P/!

    " usdata#*,.$ % 0nitial Bus oltages!

    t " usdata#*,2$ % 0nitial Bus oltage Angles!

    Gen34 " usdata#*,5$ % PGi, 6eal Power in7ected into te uses!

    Gen3A6 " usdata#*,)$ % /Gi, 6eacti8e Power in7ected into te uses!

    Load34 " usdata#*,9$ % PLi, 6eal Power :rawn from te uses!

    Load3A6 " usdata#*,;$ % /Li, 6eacti8e Power :rawn from te uses!

    /min " usdata#*,

  • 7/25/2019 Gaussppg.m

    2/2

    iteration % otal iterations!

    % Bus oltages in &omple= form!

    mag " as#$ % Final Bus oltages!

    Ang " 1;>piangle#$ % Final Bus oltage Angles in :egree!