Having run out of ideas again I turn to you.
I'm sure this has to have been answered before though for the life of me I can't find a clear description of it.
Scenario:
You work hard to get a model all set up with initial guesses, etc., and then solve for the 'real' steady state (SS) condition of all parameters in the model. From this solution I want to investigate events effects on the system.
To perform this deviation from SS analysis, it would be expedient to be able to simply load the SS solution .mat file with all the model parameters that is already generated by Dymola. Loading this solution removes any need to first simulate the model to achieve the SS solution before performing the deviations from the SS investigations. I can conceive that a possible step at which this takes place is during the 'Initialization' phase of the simulation.
Given that this would seem to be an important concept, I imagine that this idea would have been considered from a very early stage of Modelica/Dymola development. Manual extraction of each individual parameter does not seem proper given that the size of these models quickly become very large.
Question:
I very much appreciate your help. I am using Dymola 2016.
I have found the following answers to my own questions posted above.
Edit: matth also pointed to the following helpful reference on the subject: http://claytex.com/blog/how-to-restart-a-simulation
These are instructions for Dymola. I cannot verify if they are applicable to other Modelica based programs. I also found some documentation in the Dymola User Manual Volume 1 Section 5.3.3 Simulation > Continue > Import Initial/Continue.
1) Yes it is possible to start your model from the generated .mat file. You can also continue it from the dsfinal.txt file.
2) Below are the steps using the GUI:
Alternative method: (an odd thing though with this method no .mat file seems to be generated or updated.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With