OpenModelica modelling Coulomb friction: Translation Error, post-optimization module findZeroCrossings (simulation) failed

前端 未结 4 1563
名媛妹妹
名媛妹妹 2021-01-23 11:44

I\'m trying to simulate Coulomb friction in Modelica. The basic concept is to check if relative velocity speed between to surfaces is less than a constant and the external force

4条回答
  •  天涯浪人
    2021-01-23 12:44

    Your model does work with the 1.11 release. The issue is the extends coulombFriction; statement. Once you removed it, it should work fine even without the noEvent calls:

    package Friction
      function coulombFriction
        input Real relVel;
        input Real shearForce;
        input Real normalForce;
        input Real statfricco;
        input Real kinfricco;
        output Real fricForce;
      algorithm
        if relVel==0 and abs(shearForce)

提交回复
热议问题