Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

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?

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?

Edited by: sergniko - Mar-25-22 18:27:20

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.

There are 0 guests and 0 other users also viewing this topic
You are here: