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

time series with multiple loads #2421

Open
4 tasks
WajihaNazHasan opened this issue Oct 18, 2024 · 2 comments
Open
4 tasks

time series with multiple loads #2421

WajihaNazHasan opened this issue Oct 18, 2024 · 2 comments
Labels
question Further information is requested

Comments

@WajihaNazHasan
Copy link

Feature Checklist

Issue

Hello!

I am very new to pandapower. I would like to run time series for my designed LV distribution network. I have a total of 12 loads (4 loads are of same 'p_mw' and 'q_mvar' values and and remaining 8 loads are of same value). I have one residential load curve that I would like to apply on all the loads. I have the values 'Time' and 'pu' of load curve that I need to put in in my code. Could you please tell me how to do that because I cannot find any such help. Also please tell me that do I need to create just one controller for all the loads or do I need to create 12 controllers (one for each load)

when I run my code with one load and one controller it works fine but when I introduce any other load it produces this error 'ValueError: Must have equal len keys and value when setting with an iterable'.

Also please can you tell me how to create multiple controllers for the load or how to fix this issue?

Thank you so much

Label

  • Relevant labels are selected
@vogt31337 vogt31337 added the question Further information is requested label Nov 21, 2024
@vogt31337
Copy link
Contributor

@WajihaNazHasan is this still relevant? Have you looked into the tutorials? There should be everything you need.

@ricoeo
Copy link

ricoeo commented Dec 4, 2024

hello @WajihaNazHasan, I could try to answer your questions since the last few weeks I have also been working to make the time-series simulation work. First question, I create one controller for every changing parameter, so for one load, two const controllers. I give one similar example:

def create_datasource_cccontroller_with_wind_turbine_profiles(
    net, generator_profiles, turbine_id
):
    # Create data sources for real and reactive power
    ds_sgen = DFData(generator_profiles)

    # Apply the ConstControl for real power
    ConstControl(
        net,
        element="sgen",
        element_index=net.sgen.index[turbine_id],
        variable="p_mw",
        data_source=ds_sgen,
        profile_name="real_power_mw",
    )

    # Apply the ConstControl for reactive power
    ConstControl(
        net,
        element="sgen",
        element_index=net.sgen.index[turbine_id],
        variable="q_mvar",
        data_source=ds_sgen,
        profile_name="reactive_power_mw",
    )

I don't know if it is the best and elegant way, but it works!
For the second question, I think you could try to follow the first solution first, I haven't encountered something like that.

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

No branches or pull requests

3 participants