« View all new features in Mathematica 9  previous  |  next 
New in Mathematica 9Advanced Hybrid and Differential Algebraic Equations

Slider-Crank Mechanism 

In[7]:=
Click for copyable input
X
In[8]:=
Click for copyable input
X
In[9]:=
Click for copyable input
X
In[10]:=
Click for copyable input
X
In[11]:=
Click for copyable input
X
In[12]:=
Click for copyable input
X

Model the motion of a simple slider-crank mechanism subject to an external force.

Click for copyable input
X

The state of the slider-crank mechanism can be described completely by two angles 1, 2 and the distance of the slider from origin.

In[1]:=
Click for copyable input
X

Define the force that is exerted on the slider.

In[2]:=
Click for copyable input
X

The equations of motion are derived by resolving the forces and applying Newton's law and . The crank and connecting rod have mass and therefore inertia.

In[3]:=
Click for copyable input
X

The algebraic equations define the geometry of the system.

In[4]:=
Click for copyable input
X

Define the physical parameters for the system. Here and are the moment of inertia.

In[5]:=
Click for copyable input
X

Solve and visualize the system.

In[6]:=
Click for copyable input
X
       
Play Animation »
Stop Animation »
Click to play animation