e2nIEE / pandapower

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

[BUG] powerflow leads to error #2408

Open AnkurArohi opened 2 months ago

AnkurArohi commented 2 months ago

Bug report checklis

Reproducible Example

>>> pandapower.rundcpp(topo)
 RuntimeWarning: invalid value encountered in divide
  V0[gbus] = gen[on, VG] / abs(V0[gbus]) * V0[gbus]

I tried only DC run pp and I have this runtime warning, all the attributes seems ok, DC powerflow should provide better warnings in irder to find where the error is

Issue Description and Traceback

The slack is already set and the balance looks good, atleast DC load flow should work.

Expected Behavior

DC loadflow should work or the exception should be more descriptive

Installed Versions

Label

vogt31337 commented 5 days ago

@AnkurArohi, have you tried the diagnostic function?

AnkurArohi commented 4 days ago

yes and it is all good