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

FMU containing Revolute joint crashes

FMU containing Revolute joint crashes

Hello,
I generated several FMUs ver. 2.0 containing the Modelica.Mechanics.MultiBody.Joints.Revolute model. All these FMUs cause the crash of the FMUChecker tool. The same crash I obtained after import of these FMUs to Matlab-Simulink and also to our own software. It seems that the same problem is in both variants - Model Exchange and CoSimulation. Please, see the attached very simple example.

Best regards
Pavel Balda,
University of West Bohemia, Pilsen, CZ

Re: FMU containing Revolute joint crashes

The code for the post above is this one:

Code:


model RevoluteCrash
  import SI = Modelica.SIunits;
  parameter SI.RotationalDampingConstant d(final min=0, start=1.5)
    "Damping constant";
   
  inner Modelica.Mechanics.MultiBody.World world(n = {0, 0, -1}) annotation(Placement(visible = true, transformation(origin = {-70, 70}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Mechanics.MultiBody.Joints.Revolute revolute1(n = {0, 1, 0}, phi(displayUnit = "rad"), useAxisFlange = true) annotation(Placement(visible = true, transformation(origin = {-34, 70}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Mechanics.MultiBody.Parts.Body body1(m = 0.5, r_CM = {0, 0, -1}) annotation(Placement(visible = true, transformation(origin = {6, 70}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
equation
  connect(revolute1.frame_b, body1.frame_a) annotation(
    Line(points = {{-24, 70}, {-4, 70}}, color = {95, 95, 95}));
  connect(world.frame_b, revolute1.frame_a) annotation(
    Line(points = {{-60, 70}, {-44, 70}, {-44, 70}, {-44, 70}}, color = {95, 95, 95}));
end RevoluteCrash;

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