- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Continuation of simulation from...
Continuation of simulation from previous runs
Continuation of simulation from previous runs
I have a model that successfully ran from startTime=0 to endTime=10 say ... and the results are saved in OldResult.mat
Now I want to rerun the model starting with results at T=5, and continue to run it for another 10 seconds from that initial condition and the new results saved in a different output file.
How can this be done?
- ravi
- 32 Posts
Re: Continuation of simulation from previous runs
I also want to do the same.
Maybe for the past 8 years there are a way to do this?
Maybe Equation System Initialization File (Optional): and Equation System Initialization Time (Optional): on Simulation flags tab is a solution?
Re: Continuation of simulation from previous runs
You can use "Equation System Initialization File" and Initialization Method "none" to restart simulation with some values from a result-file to chain simulations.
But if you use an external state (external functions, external objects), delay functions, spatialDistribution or perhaps if you use a lot of events and need to preserve pre-values/etc, you might get some unexpected results.
- sjoelund.se
- 1700 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Continuation of simulation from...