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

Posts

Posts

May-26-10 12:29:49
Category: Programming

Hello,

does anybody know, if it is possible to integrate the OMC in VisualStudio?

Regards
Melanie

May-26-10 12:27:06
Category: Programming

Hello,
I'm new in OM, i work with OM since a few weeks.
I test the example of OM: 'RevoluteLoop2D' , but it doesn't work.
If I simulate it without the library CutJoints, it works!
Also I make examples by myself, no example works with CutJoints only without CutJoints.
Can anybody help me and explain why?
Here is the example RevoluteLoop2D:

class RevoluteLoop2D
  import ModelicaAdditions.MultiBody.Parts;
  import ModelicaAdditions.MultiBody.Joints;
  import ModelicaAdditions.MultiBody.CutJoints;
  Parts.InertialSystem InertialSystem1;
  Parts.CylinderBody   cylinderBody1(r = {1, 0, 0}, Radius = 0.02,
                                   Material = {0.5, 0.5, 0, 0});
  Joints.Revolute      revolute1(startValueFixed = true, q(start = -1.0));
  Parts.CylinderBody   cylinderBody2(r = {0, -1, 0});
  Joints.Revolute      revolute2;
  Parts.CylinderBody   cylinderBody3(r = {-1, 0, 0}, Material = {0,1, 0, 0.5});
  Joints.Revolute      revolute3;
  Parts.CylinderBody   cylinderBody4(r = {0, 1, 0});
  CutJoints.Revolute2Dloop revolute2Dloop1;
equation
  connect(InertialSystem1.frame_b, cylinderBody1.frame_a);
  connect(cylinderBody1.frame_b,   revolute1.frame_a);
  connect(revolute1.frame_b,       cylinderBody2.frame_a);
  connect(InertialSystem1.frame_b, revolute3.frame_a);
  connect(revolute3.frame_b,       cylinderBody4.frame_a);
  connect(cylinderBody2.frame_b,   revolute2.frame_a);
  connect(cylinderBody3.frame_a,   revolute2.frame_b);
  connect(revolute2Dloop1.frame_b, cylinderBody3.frame_b);
  connect(cylinderBody4.frame_b,   revolute2Dloop1.frame_a);
end RevoluteLoop2D;

Regards
Melanie

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