I'm trying to model Coulomb static friction in a multi-body system based on the equations from this physics.stackexchange.com post. I have written a very primitive Modelica code to test the equations you may see in this GitHub Gist. I have two main issues:
- First of all I get this warning:
Translation Warning [multibody_Coulomb_static_friction: 43:3-47:9]: In component , in relation V1 == V2, == on Real numbers is only allowed inside functions.
what does it mean and how I can fix this?
- The simulation takes like ages to finish. why is it? does it have anything to do with this warning? is there anyway I can do the simulation faster?
P.S.1. I tried running the code in Wolfram SystemModeler, but there it doesn't even succeed to run and I got a error which I have reported here in wolfram forum!