What Is Lfnewton ?: More Info
What Is Lfnewton ?: More Info
What is LFNewton()?
How to install:
Just send the shin_adm and LFNewton files to you TI device. (Any folder but I use PSA
for power system analyzing programs and functions.)
The shin_adm() is a program that generates YBUS matrix. This matrix will be stored in
variable xxx and this is the only variable that is used by the program, other variables are
local.
Another thing to mention is that both programs can be archived after running once, but the
variable xxx must be unlocked so shin_adm can store YBUS in it.
For every bus we assign a number, when using this program use number one for
slack bus. (Its not a limit for program because the numbers are optional and in the
other hand I can say that this is a standard, even if the question has given a different
number for this bus just change the number with the number of a bus that is one.)
On basis of the questions picture above, the PQ bus number is 2 and PV is 3.
Another important point when using this or any other method of load flow is that
everything should be per-unite. (The base value of power in this system is 100MVA)
As you see the program automatically finds the number of PV buses, so you just
need to enter bus number.
Most of generating buses have a reactive power generation limit, if there is also a
load on the PV bus use Qmin=Qm-Qd in which Qm is the minimum generated
reactive power by the generator and Qd is the demanded reactive power on this bus.
If there is no limit to minimum reactive power for the generator, use -.
This is the absolute of Ybus matrix. If your system has more than 3 buses it probably
wont fit on the screan, but dont worry, once you have finished you can generate
this matrix by typing abs(xxx) at home screan. The same can done about angle of it:
(angle(xxx))
(The program is showing the formulas which are going to be used. |Yij| and ij are
the element of the matrixes shown in previous screens.)
If you have downloaded this program you probably are familiar with Newton-
Rophson method in load flow so you should know what is the usage of Qs and Ps,
if you dont refer to the Saadats book.
As you can see bus number (i) and iteration counter (k) are shown in the matrix
below the screen.
These are the formulas to calculate the elements of Jacobean matrix. In some
references this matrix is shown like this:
[H, N; J, L]
But here we show them like this:
[J1, J3; J2, J4]
(The same as Hadi Saadat)
(Finished Calculating J1, the same process for J2, J3 and J4)
At the top of the screen you see the answer of sigma when calculating J2 [1, 1].
(The Jacobean inverse is shown in this screen; if your Jacobean matrix doesnt fit to
screen then if you want to generate this matrix you should do it manually in the main
menu on basis of the Jacobean elements you have, however in usual problems (in
standard tests I mean) the question is made in a way that usually this matrix wont
exceed 3*3, for example if you have another PV in this question, then the row and
column of that bus in Jacobean matrix will be omitted so your Jacobean would have
only one element!
Do you know why?
Because in PV buses the voltage is constant (its specified in the question) and in the
other hand reactive power is constant too so we wont have V and Q.
If you still dont get what I mean or why Q=0 just email me.)
OK! First iteration finished.
A little boring huh? Yes, Newton-Rophson method has long steps but only a few
steps are needed to reach the final answer.
For example if you have solved this problem using GS method then you know
reaching the answer with an error of less than 5*10^-5, need at least seven steps
but here we will see that only after 3 steps we will reach the final answer.
But there are other advantages that make NR much more reliable. For instance in a
few system the iteration may not become converge when using GS method but the
probability for such situation is very less in NR method. (Besides the method you use
being convergent or not is very relevant to your first guess of voltages; as a standard
in programs we assume that all PQ voltages are 1p.u. because in a real system and
its usual work (I mean except short circuit situations) it is really something near
1p.u. .)
If you want to calculate more Vis with more repeats enter 1, any other number will
lead you to next loop.
Only one more step!
We wanted to know how much power should the slack bus produce. In some kind of
problems the power produced by other PV buses is questioned too, so the program is
designed in a way that can give you the power of any bus!
The rest of program just gives a few useful information about the system (Iij, Sij and
Sloss,ij) in which Sloss,ij is the Power loss in line i to j.
After you finish you can see the Ybus by typing xxx:
Thats all.
The only limit I found when using this program was that its not programmed to
calculate the effect of tab-changing of transformers. (Of coarse there is a big
difference between a real system and what we just explained, but as a program to
help you solve your problems I think its very useful.)
Sorry for my bad English, if there is anything that I should add or any dictation or grammar
errors just email me. Thanks. ;D
Any suggestions, any errors, anything, just contact me:
mailto:[email protected]