Ask Your Question
0

How to use time as a variable using python

asked 2019-06-23 23:52:12 -0500

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-06-24 03:01:09 -0500

perolofl gravatar image

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

edit flag offensive delete link more

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 ( 2019-06-24 06:25:41 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2019-06-23 23:52:12 -0500

Seen: 198 times

Last updated: Jun 24 '19