First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
You can write Python code into a loop,where you are running the simulation from one time step to the next, and then changing the value of GREF in accordance with the sine function (which is a function of time of course). It's not a very elegant solution, but at least writing the code into a loop means that it will not be too verbose.