CHAPTER 1: Introduction.

IBM said "It was to have been the nuclear age, it became the computer age..." The computer is now an indispensable tool in power system operation and planning. We can find numerous literature/algorithms on loadflow, fault calculation, dynamic and transient analysis, relay coordination, state estimation, optimal dispatch, security analysis, network reduction, shunt Mvar optimization and others. All these studies are implemented on a computer and most of them requires loadflow as part of the software.

Loadflow or powerflow is a steady state or static solution of a power system given the set of conditions. The primary information derived from such calculation are the voltage angle and power flows. For offline applications, only the peak and off-peak conditions are of primary interest.For real time application, loadflow may be run every 5 minutes together with economic dispatching, state estimation, security analysis. We can find these softwares in a computerised energy control center.

There are myriad possible conditions of a power system. Consideration of such selection must be based on:
 
1. How should the total system demand be shared by on-line plants for economic operation?

2. Transmission lines and transformers have thermal ratings.How should the system demand and 
generation be distributed without overloading them? System stability should be maintained.

3. How should we schedule Mvar generation, Mvar capacitor/reactor, synchronous condensers, 
transformer taps so that there will be no undervoltage or overvoltage to critical busses?

4. If the power system is a part of a larger pool, it must maintain power scheduling commitments 
via its tie lines to neighboring system. How should the system generation be scheduled (hourly,
 every minute, AGC) so that its import-export be realized?

5. How should we expand our power system? What will happen 1,2,5,10,20 years from now? 
Where will the generating plants be constructed? What will be the transmission line configuration?
Voltage level? Wire size?

6. Which transmission lines, transformers are critical to the system? Critical means that if that 
equipment is non operational, how much MW load should be out of power to have the system in a normal
running mode, without overloads.
All these conditions can be answered only by running a loadflow program.

Definition of a Loadflow Problem

Loadflow or powerflow is a computer algorithm that displays the MW and MVAR loading of transmission lines and transformers after an iterative process of solving for node voltages. It is like using your ammeter and voltmeter and determine the junction voltages and current on the resistors of Figure 1. But instead of amperes, line flows are in MW and MVAR. Instead of E=126 volts from dry cells, the source feeding the circuit is in MW and MVAR. All other units are in per unit. Most chosen base MVA is 100.

Types of variables used
 
1. Uncontrollable or disturbance variable--Pd,Qd (demand)are beyond control since they are 
dictated by the customer.

2. State or dependent variable--Voltage magnitude and angle are computed based on the other 
two variables.

3. Control or independent variable--Has direct effect on the state variable. Mvar generation 
(Qg) greatly affects voltage magnitude. Mw generation (Pg) greatly affects voltage angle.

Classification of loadflow busses.
TypeKnown variablesunknown variables
1. SL, Swing or Slack or Reference bus V,theta Pg,Qg
2. PV, Voltage controlled bus Pg,V Qg, theta
3. PQ, Load bus Pg, Qg, Pd, Qd V, theta

V- voltage magnitude
theta- voltage angle
Pg, Qg- Mw, Mvar generation
Pd, Qd- Mw, Mvar demand

Node Equations

GSLF_Fig 1
Let us derive the nodal equation using a simple electrical circuit. The junctions formed when two or more elements (R, L, C ,etc)are connected are called nodes. One of them is designated as the Reference. By applying Kirchoff's current law, we can derive the nodal equations. The sum of current entering the node equals the sum of currents leaving the node. When making the current equation for node i, we assume that node to be of a higher potential than node j. In node 1 for example, the left side is the current source and the right side is [V(1)-V(2)]/r(1,2) + etc. Here node 1 is of a higher potential than node 2. We do this to all nodes except the reference. If there is no current source, put zero on the left side, as in node 3.

GSLF_Eq. 1

GSLF_Eq. 2
In Eq. (3), current sources is replaced by I. This is so because in power system analysis, current source is no longer a "cell" or a battery symbol with an "r" in series with that cell. Current source is a MW and MVAR generation and resistance in ohms as load is replaced by MW and MVAR demand or load. Connections between generator and load are transmission lines and transformers. These are in impedance in complex numbers with line charging in MVAR which are represented by pi equivalent.
Rearranging Eq. (2) in matrix form,
GSLF_Eq. 3
The square matrix when replaced with line/transformer impedances becomes the bus admittance matrix or Ybus. The topic on Ybus formation is thoroughly discussed with examples on Chapter 5 of Part 1- Short Circuit Calculation.
In general, the diagonal part of the Ybus, Yii for node i is the sum of the admittances of all elements connected to node i. This may include connectiions to ground such as line charging, reactor/capacitor and the equivalent inductance for off-nominal transformers. Yij, (one of the off-diagonal element of the Ybus), is the negative of the admittance between node i and node j.


GSLF_Fig 2


Fig. (2) shows the direction of current flow. You will note that it obeys the Kirchoff's current law, "the algebraic sum of currents on each node is zero."

Shown on the text area below is a small program to compute for the matrix and solve the simultaneous linear equations using Gauss-Jordan Reduction. The input/output is also included. Numbers on the left are for purposes of discussion. Just copy, paste and delete the numbering if you need to compile it.

Program Listing_1: DC CIRCUIT FLOW

Code Explanation:
In Gauss-Jordan reduction, the matrix A is augmented by the vector b (in A.x=b). The objective is to make A a unity matrix by normalizing each row and elimination the upper and lower A(i,j) for each diagonal of node i. Each process of the normalizing and elimination is depicted in the output. There are only 3 major subroutines, input(), gaussj() and flow(). Subroutine input() reads the data and rightaway forms the Ybus.

i n n o v a t e   o r   s t a g n a t e  
Free Web Hosting