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

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.

Re: Accessing index reduced model via OMC

Thanks!

How to create a Modelica model for the reduced model given in test_init.xml file?

Re: Accessing index reduced model via OMC

By hand current/sad

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