PMKS-Web / PMKSWeb

An educational web-based tool designed for comprehensive 2D linkage analysis developed at WPI (Worcester Polytechnic Institute)
https://pmksplus.com
3 stars 2 forks source link

Put in logic for determining if four bar is parallel #108

Open AlexG1031 opened 1 year ago

AlexG1031 commented 1 year ago

This was simulated in PMKSConversation but require attention within the simulator class in PMKSWeb.

Image

This mechanism can animate. This is a 4-bar mechanism. This is an okay mechanism. However, when we add the middle joint, the animation is incorrect.

url: https://pmksplus.mech.website/?j=A,0,0,AB,R,t,0,0.1,t,%0AB,-0.11,1.255,AB%7CCBE,R,f,0,0.1,f,%0AC,1.69,1.255,DC%7CCBE,R,f,0,0.1,f,%0AD,1.8,0,DC,R,t,0,0.1,f,%0AE,0.89,1.255,EF%7CCBE,R,f,0,0.1,f,%0AF,1,0,EF,R,t,0,0.1,f,%0A&l=AB,1,1,0,0.63,A%7CB,,l,-0.11,0,0,0,0,1.255,-0.11,1.255%0ADC,1,1,1.8,0.63,D%7CC,,l,1.69,0,1.8,0,1.8,1.255,1.69,1.255%0AEF,1,1,1,0.63,E%7CF,,l,1,1.255,0.89,1.255,0.89,0,1,0%0ACBE,1,1,0.9000000000000001,1.26,C%7CB%7CE,,b,1.89,1.055,-0.31,1.055,-0.31,1.455,1.89,1.455%0A&f=&pp=&tp=&s=10,false,false,cm

https://github.com/PMKS-Web/PMKSWeb/assets/42430291/0254c131-2d97-4b08-a781-92e6a0963027

Once this logic is uploaded in the new version of PMKS+ and this problem is still here, then we may need an alternative position solver method to determine the middle joint.