- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Accessing index reduced model via OMC
Accessing index reduced model via OMC
Accessing index reduced model via OMC
Here is a higher index Modelica model (index = 3):
[b]model test
parameter Real m = 1;
parameter Real L = 1;
parameter Real g = 9.81;
Real x;
Real y;
Real vx;
Real vy;
Real T;
equation
der(x) = vx;
der(y) = vy;
m * der(vx) = -(T * x) / L;
m * der(vy) = -T * y - m * g;
x ^ 2 + y ^ 2 = L ^ 2;
end test;
I want to get the corresponding index reduced model as an XML file or .mo file. How can I do it?
WBR
Anushka
Re: Accessing index reduced model via OMC
Use the regular translation commands you will get a file test_init.xml and test_info.xml. This contains the causalized, index-reduced system on ODE form. There is also the dumpXMLDAE command.
- sjoelund.se
- 1700 Posts
Re: Accessing index reduced model via OMC
By hand
- sjoelund.se
- 1700 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Accessing index reduced model via OMC