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
  • Index
  • » Users
  • » anushkap
  • » Profile

Posts

Posts

Thanks!

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

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

  • Index
  • » Users
  • » anushkap
  • » Profile
You are here: