KmolYuan / Pyslvs-UI

An open source planar linkage mechanism simulation and mechanical synthesis system.
https://pyslvs-ui.readthedocs.io
GNU Affero General Public License v3.0
192 stars 37 forks source link

[BUG] Slider-crank mechanism doesn't work with aligned points #49

Open FEA-eng opened 2 years ago

FEA-eng commented 2 years ago

Hi,

I think that I've encountered a bug. I followed this tutorial: https://www.youtube.com/watch?v=cB5wYyc0J0c

and modeled a simple slider-crank mechanism:

slider crank

The problem is that it doesn't work properly - you can see that the curves showing paths of points belonging to the mechanism are very short and motion of this linkage can't be simulated. However, it happens only when point 0 and point 2 have the same Y coordinate. When I move one of them slightly above or below the other, it starts working:

slider crank 2

I also attached the .pyslvs file packed to zip below. Would it be possible to fix this bug ?

Crank slider problem.zip