e2nIEE / pandapower

Convenient Power System Modelling and Analysis based on PYPOWER and pandas
https://www.pandapower.org
Other
847 stars 478 forks source link

shunt reactor modelling #1615

Open rauf-cresg opened 2 years ago

rauf-cresg commented 2 years ago

It looks like the function _pandapower.createshunt() creates only a shunt capacitor, not a reactor. I tried changing the sign of the value of the q_mvar parameter, but it fails to model the component as a shunt reactor.

rbolgaryn commented 2 years ago

Dear @rauf-cresg ,

can you elaborate?

I tried creating the shunt element with positive and negative q_mvar and the results of the power flow calculation are different.

import pandapower as pp
import pandapower.networks as nw

net = nw.example_simple()
s_id = pp.create_shunt(net, 4, q_mvar=10)
pp.runpp(net)
net.res_bus.loc[[4]]

       vm_pu  va_degree  p_mw     q_mvar
4     1.019452   1.800451   0.0  10.392832

net.shunt.at[s_id, 'q_mvar'] = -10
pp.runpp(net)
net.res_bus.loc[[4]]

       vm_pu  va_degree  p_mw     q_mvar
4     1.029751    1.77725   0.0 -10.603874