I am relatively new to Solidworks but want to animate the movement of a mechanical latch as pictured. I have applied tortional springs on the two pivots and added solid body contact between the red latch and the angled section, and this seems to work fine (bottom left).
The problem is when I apply a motor to the moving part. As the picture shows the corner piece penetrates through the angle section above it even though I have applied solid body contact and a distance mate in the range of 0 – 1000 mm. (Note it stops correctly in the model space with the distance mate but not when a motor is added). Also it seems to slow down as it passes through as if passing through a viscous material rather than steel.
Can anybody help me fix this problem? Thanks.
SolidworksMotion Studies
I suggest you search the archive for my discussions on this topic.
I expect you will need to change default settings of integration parameters.
Jorge,
Motors are treated by SW as constraints - so the solver will always try to satisfy them and apply whatever force/torque is needed. You should not use motors when you have contact defined on the moving part. The solver will always try to satisfy the motor motion even if that means bodies need to penetrate - that's what is happening in your case.
What you need to do is replace the motor with a force (for linear motion) or a torque (for rotary motion). You will have to figure out the force/torque function that is appropriate for your case and apply that.
Hope that helps,
Shrikant