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] Failing power flow calculation if non mandatory attributes not set #2445

Open AnkurArohi opened 2 weeks ago

AnkurArohi commented 2 weeks ago

Bug report checklis

Reproducible Example

Simply create a network and do not provide "tap_step_degree" for trafo dfand "shift_mv" and "shift_lv_degree" for trafo3w df. Try to run power flow , this results in error of missing shift_mv_degree exception.

Issue Description and Traceback

After setting PU gens as PQ gens in network, Load Flow did not converge: 'DataFrame' object has no attribute 'shift_mv_degree' dc powerflow did not work: 'DataFrame' object has no attribute 'shift_mv_degree'

Expected Behavior

Since these columns are not mandatory in the pandapower documentation for load flow calculation this should never occur

Installed Versions

Label

bott-j commented 4 days ago

@AnkurArohi, was this after changing to using static generators in the network model?

Did it fail both normal power flow and dc power flow, and do you have an example of the network being modelled?

AnkurArohi commented 4 days ago

Yes and it fails for both

bott-j commented 3 days ago

@AnkurArohi , I haven't been able to reproduce this.

Was create_transformer_from_parameters() and create_sgen() used to create the equipment in the network? What was the slack/reference bus for the model?

I'm assuming it was the latest version of pandapower?

AnkurArohi commented 3 days ago

Yes it was latest,slack and all other details were same and it works with the old pp version