Simulation of mass and spring with simmechanic
16 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
hi, I want to simulate motion of mass and spring (SLIP) in simmechanic, but I cannot simulate collision of the mass with the ground. I used a prismatic joint with spring and damper. I read the force that applied on the spring and apply the negative force on the mass, the mass still pass through the ground. I cannot simply handle the velocity of the mass...
any ideas?
0 comentarios
Respuestas (1)
pietro
el 30 de Abr. de 2013
Hi,
with simmechanics 1st gen you should get the relative displacement and speed between the two bodies, convert the signal in simulink signals, derive the force using this formula F=-k*ds-c*dv (ds is the relative displacement, dv is the relative speed, k is the stiffeness and c is the damping coefficient), convert it from simulink signal to physical one and finally actuate the two bodies with it.
Hope this helps
Regards
Pietro
0 comentarios
Ver también
Categorías
Más información sobre Multibody Dynamics en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!