You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse the tutorials and tests for usefull code snippets and examples of use
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
The text was updated successfully, but these errors were encountered:
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.
Feature Checklist
Searched the issues page for similar reports
Read the relevant sections of the documentation
Browse the tutorials and tests for usefull code snippets and examples of use
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
The text was updated successfully, but these errors were encountered: