Open christian-cahig opened 1 year ago
Dear @christian-cahig ,
this is an interesting observation, thank you.
@christian-cahig Are you sure that the comparision being made are for the same bus indices/ same bus? It could be that the S , P, Q are maybe not for the same bus, I think that the indexing sequence for the bus could be important in this case. I mean to say , _ppc and res_bus indexing could be different/ have a different starting value 0 or 1 (offset)
Issue Report Checklist
pip install --upgrade pandapower
(orgit pull
)Problem Description
I was doing power flow with the 1888RTE power system test case as follows.
Out of curiosity, I checked how
net.res_bus['p_mw']
andnet.res_bus['q_mvar']
(in per-unit values) relate tonet._ppc['internal']['Sbus']
,expecting that they should be (at least approximately) equal. It turns out they are not:
I also tried comparing
net.res_bus
values to the net injections calculated via the voltage phasors and the admittance matrix, i.e.,and got lucky with the active component:
For completeness, I also compared the net injections via
net._ppc['internal']['Sbus']
and those calculated:Help is much appreciated.
Versions