aesim-tech / simba-project

Roadmap & issue tracking
7 stars 0 forks source link

Python script "intermediate time" functionality to add #318

Open AdriPWS opened 1 year ago

AdriPWS commented 1 year ago

It would be good to add a new function such as "intermediate time" in python capability in order to define a Time in which a sudden change can occurs.

For example we want to modify a parameter during the simulation at a given time chosen in order to vary the duty cycle, load resistor... we can do this by creating a set of points which will emulate this "intermediate time" but defining the exact time when change happens would be better.

manu-aesim commented 1 year ago

I don't understand. Are you talking about interactive simulation? In this case, wouldn't it better to specify an end time instead of a number of points ?

AdriPWS commented 1 year ago

Below the request of the user: "I want to change the value of phase angle (phi1) during the simulation in python script. Let’s say the end time of transient analysis is 10 sec. I want to change the value of phi1 after 5 sec during the simulation so that I can see the change in output voltage plot because of phi1 change. I can do it in Simba by using a step response but could not find a way to do it in python script."

I have given him a python script allowing to do that (see below) in order to emulate the "intermediate time" but I use a "set of points" to do that.

result

I thought about "interactive simulation" with this below: but I don't think the customer wants to do it interactively.

result

I don't know if a new attribut linked to the "time" could be added in order to set an "intermediate time" in python.