e2nIEE / pandapower

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

Understanding internal Ybus matrix dimension #2144

Closed rahatN-tech closed 9 months ago

rahatN-tech commented 1 year ago

Bug report checklis

Reproducible Example

import pandapower.networks as nw
net = nw.create_cigre_network_mv(with_der="all")
pp.runpp(net)

ybus = net._ppc["internal"]["Ybus"].todense()
print(ybus.shape)

print(net._pd2ppc_lookups["bus"])

Issue Description and Traceback

i am using network nw.create_cigre_network_mv(with_der="all"), which is a 15 bus system. i am getting 18X18 ybus matrix through ybus = net._ppc["internal"]["Ybus"].todense() i have also checked internal bus mapping through print(net._pd2ppc_lookups["bus"]).. which is showing exact bus mapping of 15 buses... so what can be the issue..how to fix this

Expected Behavior

i should get 15X15 bus matrix

Installed Versions

Label

SteffenMeinecke commented 9 months ago

Dear @rahatN-tech, in the cigre MV network, three lines end at open switches. In order to take into account the line impedances of these energized but unloaded lines, auxiliary nodes are added internally at the open ends. Therefore, the internal Ybus matrix has the dimension 18x18, since 18=15+3. The addition of auxiliary nodes is explained and illustrated in Table II of the IEEE Transactions article http://dx.doi.org/10.1109/TPWRS.2018.2829021.