🔗 Four-Bar Linkage Simulator ⚙️

Simulate and visualize the motion of four-bar linkage systems in real-time

The four-bar linkage position analysis can be performed using the following equations:

Position Analysis:

θ₂ = θ₁ + cos⁻¹[(L₃² - L₄² - L₁² - L₂² + 2L₁L₄cos(θ₁)) / (2L₂√(L₁² + L₄² - 2L₁L₄cos(θ₁)))]

Velocity Analysis:

ω₂ = (ω₁L₁sin(θ₁ - θ₃)) / (L₂sin(θ₂ - θ₃))

ω₃ = (ω₁L₁sin(θ₁ - θ₂)) / (L₃sin(θ₃ - θ₂))

Crank-Rocker: The input link (crank) can rotate fully, while the output link (rocker) oscillates.

Double Crank: Both the input and output links can rotate fully.

Double Rocker: Both the input and output links oscillate.

Slider-Crank: Converts rotational motion to linear motion or vice versa.