First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

Need python code for load removal from load bus during dynamic simulation

asked May 14 '18

Sazzad gravatar image

Hello, Thanks for ur support I need to curtail some amount of loads from different buses during dynamic simulation. Load curtailment may be on basis of frequency deviations from steady state (e.g., if freq<49.5 then shed 0.5 p.u from 3bus, 4bus etc.). How can I do that by writing python code and then at the end of simulation I need to see the total amount of load shedding and extract report?

Thanks in advance Sazzad

2 answers

Sort by » oldest newest most voted
1

answered May 15 '18

EBahr gravatar image

Take a look at the LDSHBL model in the MODELS.pdf documentation. For your example, you can add something similar to the following to your .dyr: 3, 'LDSHBL', '1', 49.5, 0.2, 0.5, 0, 0, 0, 0, 0, 0, 0.05 /

Where 3 is the bus number, '1' is the load ID, 49.5 is your setpoint frequency for shedding, 0.2 is the pickup time of the relay, 0.5 is the pu amount of load to shed, and 0.05 is the breaker time. Of course, your delays might be a bit different and would depend on your relay and breaker timings.

link

Comments

Thanks for your reply. I have done this before and it works fine. But I was wondering that, this can be done by python or not. If so many thing will become easier for me.

Sazzad gravatar imageSazzad (May 16 '18)
0

answered May 15 '18

perolofl gravatar image

It is better to use a load shedding model to curtail loads, see Dynamic Models manual. Python is the wrong tool to use here!

link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

Stats

Asked: May 14 '18

Seen: 564 times

Last updated: May 15 '18