e2nIEE / pandapower

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

rundcpp returns NaN while runpp converges #2161

Closed MikhailSkl closed 11 months ago

MikhailSkl commented 11 months ago

Feature Checklist

Issue

Hello! I have a huge network that contains only switches, transformers, lines, buses, loads, and one external grid. We run AC powerflow on it with runpp(), which succesfully converges. However, DC powerflow rundcpp() returns NaN results for all components. Our assumptions that the problem is somehow with a lot of switches in the network. We removed switches by converting network to PPC and then back to pandapower network. After that the DC powerflow gives valid results.

What could be the issue there? What parameters of switches should we be aware off ? Or is it problem due to a lot of switches in the network? Has anyone here encountered problem like that?

Label

### Tasks
MikhailSkl commented 11 months ago

We found out what the problem was. Transformers parameters shifting_degree was NaN. When we set it to 0, DC powerflow gave results. It is strange though, that AC powerflow was not affected by it.