First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Hi,
I made a script to run a set of transient simulations while applying a fault on a bus. Fault duration will increase in each step of a loop and a separate out file will be created for every fault duration. I have done up to this but want to terminate the simulation when the rotor angle exceeds a certain value (to save simulation time).
Is there any way to read a particular channel value (while the dynamic simulation is running) and compare it with some predefined value by an "if statement" and then terminating the loop when the if statement becomes true?
Can anybody help me with some python code?