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
  • » lucas_8033
  • » Profile

Posts

Posts

Jan-13-13 00:19:29
Usage of the Orientation object

Dear all,

is the Orientation object is only allowed with constant values?

If I try this model:

model OrientationTest
  import Modelica.Mechanics.MultiBody.Frames.*;
  Orientation o;
equation
  o = from_nxy({1,0,0},{0,1,0});
end OrientationTest;

works perfectly, but as far as I change it to make the Orientation object moving:

model OrientationTest
  import Modelica.Mechanics.MultiBody.Frames.*;
  import Modelica.Math.*;
  Orientation o;
equation
  o = from_nxy({cos(time),sin(time),0},{-sin(time),cos(time),0});
end OrientationTest;

the compiler gives strange errors about "Not found variables"

Does anyone know why?

Thanks,
Lucas.

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