05-07-2024 05:54 PM
I want to calculate a simulation output using the time step between simulation points as a variable in the equation. (i.e. total energy delivered to a load).
Is there a variable available that is this current time step value to use for this?
My alternative is to set the max time step very small so that it never becomes smaller during the simulation and then use that value in my expression, but some simulations may run a long time doing that. Or if the time step does become smaller that that for any portion of the simulation interval, then the calculation would be off.
05-08-2024 12:01 PM
Hellow!Here is the dependence of the output voltage on the time interval (Tmax=2-15 s)
05-09-2024 01:48 PM
I was trying to find the time step so I could incorporate it in to the total energy integration, but by trial and error I found the integral function seems to automatically do that for you. integral(pwr(Rn)) shows total cumulative energy delivered to a resistor as time moves forward in the simulation.
I found no detailing info on how the integral function works.