Hi Mahraz, What is it exactly that makes you think the solution is wrong? If you want to perform an independent double-check on the solution, one way to do it consists simply in verifying current mismatches at every bus (which is the very expression of the power flow equations).
When calculating flows across branches, you've got to be aware of their PI-model topology. Line charging susceptances result in two shunt capacitors---they typically inject reactive power, which has to be taken into account when calculating flow balances accross the branch. -- Jose L. Marin Grupo AIA 2017-04-10 22:03 GMT+02:00 mahraz amini <[email protected]>: > Hi every one, > > I am trying to solve AC Power flow in matpower. I made my own model in > matpower format and when I run it, it got converged in a few iterations and > gave me the solutions. the problem is the given solution is not correct. I > mean when I calculate the power flow based on given Vmag and Vang the > mismatch is not only zero but also large numbers. I am wondering how it > could happen. > > Furthermore when I look at the flow at the branch, losses on the lines > are not equal the difference between S_from and S_to, for example : > > Brnch From To From Bus Injection To Bus > Injection Loss (I^2 * Z) > # Bus Bus P (MW Q (MVAr) P (MW) > Q (MVAr) P (MW) Q (MVAr) > > 16 13 16 -168.57 26.10 168.93 > -47.47 0.357 3.82 > 17 13 19 122.42 -38.42 -122.07 > -4.82 0.349 3.64 > 18 13 21 107.36 -34.03 -107.17 > 3.36 0.189 1.97 > 19 16 17 -95.59 -2.66 > 95.74 -28.46 0.147 1.56 > > I would really appreciate if you can help me understand why it is so. > > Thanks, > Mahraz >
