I tried to simulate a "special" pendulum with the Modelica library.
The pendulum got one revolute at the first end and a secound revolute on the other end. At time < t
the first pendulum should rotate around the axis of the first revolute. At time > t
the pendulum should rotate around the axis of the secound revolute.
I have two problems:
I cannot simulate a pendulum with two revolutes where one frame ist unused.
I tried to change the rotating revolute by using an if-clause like this:
if time < 5 then connect(world.frame_b, revolute.frame_a); else connect(world.frame_b, revolute1.frame_b); end if;
Starting the simulation I get this error:
Failed to expand block containing connect: if (time < 5) then connect(world.frame_b, revolute.frame_a); else connect(world.frame_b, revolute1.frame_b); end if;
Has Someone an Idea how i can solve this problems?