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

Saving the final state and reusing it in a new simulation

Saving the final state and reusing it in a new simulation

I would like to start the simulation of a model from a point reached at the end of another simulation.
To do so I should be able to save the simulation state (i.e. all the values of the state variables) at the end of the first simulation, and recall it at the beginning of the second simulation.

Obviously I can do this manually for very simple models having a few states.
I wonder whether there is some way to do this in an automated way, i.e. without having to manually copy all the state variables and setting them again for the second simulation.

Thanks.

Re: Saving the final state and reusing it in a new simulation

Re: Saving the final state and reusing it in a new simulation

Where can I find info about how to use this?

I mean, how to create the file from a previous run?
How the values from the initialisation file mix with the model's variables start  values?
Is there an example somewhere?

Thanks

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