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

RollingWheelSetDriving Example produces an error

RollingWheelSetDriving Example produces an error

The RollingWheelSetDriving Example included in Modelica-Mechanics-Multibody-Examples-Elementary compiles, but in runtime generates a zero division error:

ERROR: Division by zero in partial equation: (-wheelSet.wheelSetJoint.rolling2.e_axis_0[2]) / sqrt(wheelSet.wheelSetJoint.rolling2.e_axis_0[2] * wheelSet.wheelSetJoint.rolling2.e_axis_0[2] + wheelSet.wheelSetJoint.rolling2.e_axis_0[1] * wheelSet.wheelSetJoint.rolling2.e_axis_0[1]) because sqrt(wheelSet.wheelSetJoint.rolling2.e_axis_0[2] * wheelSet.wheelSetJoint.rolling2.e_axis_0[2] + wheelSet.wheelSetJoint.rolling2.e_axis_0[1] * wheelSet.wheelSetJoint.rolling2.e_axis_0[1]) == 0.
Simulation call assert() at time 0.006
Level : error
Message : Model error: Argument of sqrt should  >= 0

¿any ideas?

thanks in advance for your help...

Oscar

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