Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to adjust steps of shunt devices in time series simulation #2288

Open
4 tasks done
mchirsa5 opened this issue May 22, 2024 · 6 comments
Open
4 tasks done

How to adjust steps of shunt devices in time series simulation #2288

mchirsa5 opened this issue May 22, 2024 · 6 comments

Comments

@mchirsa5
Copy link

mchirsa5 commented May 22, 2024

Feature Checklist

Issue

I'm running the time series simulation for a distribution system. In the simulation, I will have hundreds of transformers and shunt capacitors. I want to adjust the tap of the transformers and the steps of the c-bank based on the voltage magnitudes of the connected bus. Currently, I can change the taps of transformers in the network using "trafocontroller". However, I don't know how to adjust the steps of the c-bank based on the voltage magnitude of the connected bus. Could you advise if there is any function to do that kind of adjustment?

Label

  • Relevant labels are selected

Tasks

No tasks being tracked yet.
@vogt31337
Copy link
Contributor

Can't you just set the step of the shunt? If this is the case, you could write a shunt controller similar to the trafo controller and just add it. Maybe write one and send a Pull Request.

@pawellytaev
Copy link
Contributor

Hi @mchirsa5, we just merged two new controllers that might solve your issue: A DiscreteShuntController https://github.com/e2nIEE/pandapower/blob/develop/pandapower/control/controller/shunt_control.py for changing the discrete steps of the shunt depending on voltage settings (similar to DiscreteTapControl for trafos)
and BinarySearchControl https://github.com/e2nIEE/pandapower/blob/develop/pandapower/control/controller/station_control.py that you can use if you're relaxing the steps of the shunts

you can find uses for both here: https://github.com/e2nIEE/pandapower/blob/develop/pandapower/test/control/test_shunt_control.py

@HafizRiaz
Copy link

I ma trying to add capacitor to my existing code that is currently dealing with continuous devices like inverter and SVC, using DDPG algo, i am wondering if there is a discrete controller for shunt capacitor that dont allow taps, just switches On or OFF when voltage falls below lower limit e.g 0.95 p.u, plz help me regarding this

@HafizRiaz
Copy link

HafizRiaz commented Sep 7, 2024

Hi @mchirsa5, we just merged two new controllers that might solve your issue: A DiscreteShuntController https://github.com/e2nIEE/pandapower/blob/develop/pandapower/control/controller/shunt_control.py for changing the discrete steps of the shunt depending on voltage settings (similar to DiscreteTapControl for trafos) and BinarySearchControl https://github.com/e2nIEE/pandapower/blob/develop/pandapower/control/controller/station_control.py that you can use if you're relaxing the steps of the shunts

you can find uses for both here: https://github.com/e2nIEE/pandapower/blob/develop/pandapower/test/control/test_shunt_control.py

i try to use these shunt controllers, raise LoadflowNotConverged("Power Flow {0} did not converge after "
pandapower.powerflow.LoadflowNotConverged: Power Flow bfsw did not converge after 100 iterations!
discrete controller error

@pawellytaev
Copy link
Contributor

if you set up the shunt with max_step=1, and use the discrete shunt controller, it should be able to turn it on or off. otherwise you can always build your own controller with this functionality, here's a tutorial that explains it: https://github.com/e2nIEE/pandapower/blob/develop/tutorials/building_a_controller.ipynb

for the not-converging power flow, we'll need more information on the grid. does it work with newton raphson? does the DC power flow calculate? maybe you can start with it. Since it's a separate topic from this issue here, please open another issue or discussion

@HafizRiaz
Copy link

HafizRiaz commented Sep 10, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants