Complete Description of the Mathematical Formulae
Load Flow Problem
An alternating current in an electrical network satisfies Ohm's law with complex values. Thus, the complex values (X, V, R) are used in our program.
Ohm's Law for this simple 2-bus system is:
V - V0 = Z I
Where V is the voltage at the load bus, V0 is the voltage at the swing bus (Modulus voltage V0, phase angle δ=0), and I is the complex current.
The simple solution for calculating the bus voltage is:
V = V0 + Z I
Since V0 and Z are known, if the current I consumed at the load bus is provided, the complex value of V is easily computed (The value of Z=0 is a short circuit and we are excluding it.)
In general, I is not known (it's not inexpensive to measure this in medium and high voltage systems), which could reduce the load flow problem to a linear one easily solved by matrix inversion. Loads are only known as complex power values; that is as P (real power) and Q (Reactive power).
The complex power S is given by the formula:
S = P + j Q
The relationship among these formulae is:
S = V I*
where I* is the complex conjugate of I
Therefore, Ohm's Law becomes:
V = V0 + Z S* / V*
where S* and V* are complex conjugates of S and V
The solution for V0≠1 is similar to the case where V0=1.
We have already defined the phase angle of the swing bus as δ =0, as the load flow calculations depend only on the phase angle difference between the two buses.
To illustrate this, we define the term H as:
H = Z S* = (R + jX)(P- jQ) = (RP + XQ) + j(XP-RQ)
Also,
VV* = V*(V0+ZS*/V*) = V*V0 + ZS*V*/V*
Since V0 = 1, then:
VV*=V*+ZS*
As ZS*=H,
VV* = V* + H
Substituting the complex values V = VR + jVI, where VR = the real component of V and VI = the imaginary component of V gives us:
VV* = (VR + jVI)(VR - jVI) = VR2 + VI2
Also, as seen before, VV* = V* + H. Since V* = VR - jVI and H = HR + jHI, then:
VR2 + VI2 = VR - jVI + HR + jHI
Or:
VR2 + VI2 - VR - HR + j(VI - HI) = 0 + j0
Separating the real and imaginary parts gives us:
VR2 + VI2 - VR - HR = 0 and j(VI - HI) = j0
Therefore we have the imaginary part:
VI = HI
Substitution in the real part give us:
VR2 + HI2 = VR + HR
Therefore:
VR2 - VR - (HR - HI2) = 0
And the real power part is:
VR = ½ ±
Now we can conclude that:
If HR - HI2 < -1/4 (there is no physical solution.)
If HR - HI2 > -1/4 (the solution is double: one physical and one spurious.)
If HR - HI2 = -1/4 (both solutions coalesce and there is voltage collapse.)