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

Usage of the Orientation object.

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.

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