e2nIEE / pandapower

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

How to specify pw_mw for ext_grid #2273

Closed angrysnail closed 1 month ago

angrysnail commented 5 months ago

Feature Checklist

Issue

I want to hold a specified value for ext_grid, by adjusting the pcs, pvs, even the load。 But the load, sgen, storage in pandapower, all need to specify a p_mw value, then after runpp(), the ext_grid p_mw value will be changed even I set ext_grid's controllable=False. Any suggestion?

Label

pawellytaev commented 1 month ago

In power flow analysis, the ext_grid automatically adjusts to balance the total generation and load in the network, since it acts as an infinite bus. You set a voltage and as a result you get the results P&Q. To maintain a specified ext_grid value, you need a control strategy that adjusts the power of other elements (loads, PVs, storage) dynamically. As you can see in the doc for ext_grid https://pandapower.readthedocs.io/en/latest/elements/ext_grid.html , the max_p_mw and min_p_mw are only considered in OPF