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

Ask Your Question
0

How to use time as a variable using python

asked Jun 24 '19

rajeev070707 gravatar image

Dear all, I want to change exciter reference, load, and turbine reference continuously in the time domain (randomly or sinusoidally) using python code. Is there any way to do it.
I searched for it and found that 'dynamicsolutionparam_2', 'ALTR', may help to change the solution parameter during run time.
It will be very helpful for me if someone could help me with this. Thanks in advance.

1 answer

Sort by » oldest newest most voted
0

answered Jun 24 '19

perolofl gravatar image

You have to run the simulation in steps, using a loop, and update the reference signal within the loop.

link

Comments

Thank for your answer. I also figured that and I was able to implement it in MATLAB out but I was wondering how to write it in a loop in python.

rajeev070707 gravatar imagerajeev070707 (Jun 24 '19)

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

1 follower

Stats

Asked: Jun 24 '19

Seen: 232 times

Last updated: Jun 24 '19