HP Forums
AC Load Flow solver for the HP71 with Math ROM - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: AC Load Flow solver for the HP71 with Math ROM (/thread-9341.html)



AC Load Flow solver for the HP71 with Math ROM - cmurillo - 10-21-2017 01:00 AM

[attachment=5274]Hello all...

I thought that I should share a couple of BASIC programs for the HP71B that let you solve AC load flow problems for small systems. Because it relies on complex arithmetic, it needs the Math ROM, as well as the KEYWAIT lex file that provides the KEYWAIT$ function.

In the attached text file, there are two programs: PFEDIT lets you create a load flow case data in a text file. The format is similar to that used in the MATPOWER package (http://www.pserc.cornell.edu/matpower) . PFLOW lets you load a power flow case, solve it using Newton's method, and edit/change system parameters, as well as saving a solved case in another text file. The programs need the data structure definition contained in another text file called PFDATDEF; I also include text fles defining a simple 3-bus case and the IEEE 9 bus test case. The programs only allow one generator per bus.

The numerical techniques are pretty much those used in the MATPOWER package (which I co-authored). The 9 bus case is solved in a little over 4 minutes and 3 Newton iterations.

Enjoy!