I am new to Dymola and I want to run a linearized model with initial conditions.
I know how to Linearize it. I can get the StateSpace object in Command window or get the dslin.mat. Now I want to run it with initial conditions. I found them in the dsin.txt file, but cant bring them together. Is there an implemented way or do I need to write it on my own?
Best regards, Axel
You can use the block
Modelica.Blocks.Continuous.StateSpaceto build a model containing a state-space description, as shown below:The respective code is:
Additionally you can use a script (or a Modelica function) that does some work for you. More precisely, it
sys. This includes the ones for the initial conditions inx_start