The reciprocating motion of a non-offset piston connected to a rotating crank through a connecting rod (as would be found in internal combustion engines) can be expressed by equations of motion. This article shows how these equations of motion can be derived using calculus as functions of angle (angle domain) and of time (time domain).
The geometry of the system consisting of the piston, rod and crank is represented as shown in the following diagram:
From the geometry shown in the diagram above, the following variables are defined:
l
r
A
x
v
a
\omega
A
The frequency (Hz) of the crankshaft's rotation is related to the engine's speed (revolutions per minute) as follows:
\nu=
RPM | |
60 |
So the angular velocity (radians/s) of the crankshaft is:
\omega=2\pi ⋅ \nu=2\pi ⋅
RPM | |
60 |
As shown in the diagram, the crank pin, crank center and piston pin form triangle NOP.
By the cosine law it is seen that:
l2=r2+x2-2 ⋅ r ⋅ x ⋅ \cosA
l
r
x
A
Angle domain equations are expressed as functions of angle.
The angle domain equations of the piston's reciprocating motion are derived from the system's geometry equations as follows.
Position with respect to crank angle (from the triangle relation, completing the square, utilizing the Pythagorean identity, and rearranging):
\begin{array}{lcl} l2=r2+x2-2 ⋅ r ⋅ x ⋅ \cosA\\ l2-r2=(x-r ⋅ \cosA)2-r2 ⋅ \cos2A\\ l2-r2+r2 ⋅ \cos2A=(x-r ⋅ \cosA)2\\ l2-r2 ⋅ (1-\cos2A)=(x-r ⋅ \cosA)2\\ l2-r2 ⋅ \sin2A=(x-r ⋅ \cosA)2\\ x=r ⋅ \cosA+\sqrt{l2-r2 ⋅ \sin2A}\\ \end{array}
Velocity with respect to crank angle (take first derivative, using the chain rule):
\begin{array}{lcl} x'&=&
dx | |
dA |
\\ &=&-r ⋅ \sinA+
| |||||
\sqrt{l2-r2 ⋅ \sin2A |
Acceleration with respect to crank angle (take second derivative, using the chain rule and the quotient rule):
\begin{array}{lcl} x''&=&
d2x | |
dA2 |
\\ &=&-r ⋅ \cosA-
r2 ⋅ \cos2A | |
\sqrt{l2-r2 ⋅ \sin2A |
The angle domain equations above show that the motion of the piston (connected to rod and crank) is not simple harmonic motion, but is modified by the motion of the rod as it swings with the rotation of the crank. This is in contrast to the Scotch Yoke which directly produces simple harmonic motion.
Example graphs of the angle domain equations are shown below.
Time domain equations are expressed as functions of time.
Angle is related to time by angular velocity
\omega
A=\omegat
If angular velocity
\omega
dA | |
dt |
=\omega
and:
d2A | |
dt2 |
=0
The time domain equations of the piston's reciprocating motion are derived from the angle domain equations as follows.
Position with respect to time is simply:
x
Velocity with respect to time (using the chain rule):
\begin{array}{lcl} v&=&
dx | |
dt |
\\ &=&
dx | |
dA |
⋅
dA | |
dt |
\\ &=&
dx | |
dA |
⋅ \omega\\ &=&x' ⋅ \omega\\ \end{array}
Acceleration with respect to time (using the chain rule and product rule, and the angular velocity derivatives):
\begin{array}{lcl} a&=&
d2x | |
dt2 |
\\ &=&
d | |
dt |
dx | |
dt |
\\ &=&
d | ( | |
dt |
dx | |
dA |
⋅
dA | |
dt |
)\\ &=&
d | ( | |
dt |
dx | |
dA |
) ⋅
dA | |
dt |
+
dx | |
dA |
⋅
d | ( | |
dt |
dA | |
dt |
)\\ &=&
d | ( | |
dA |
dx | |
dA |
) ⋅ (
dA | |
dt |
)2+
dx | |
dA |
⋅
d2A | |
dt2 |
\\ &=&
d2x | |
dA2 |
⋅ (
dA | |
dt |
)2+
dx | |
dA |
⋅
d2A | |
dt2 |
\\ &=&
d2x | |
dA2 |
⋅ \omega2+
dx | |
dA |
⋅ 0\\ &=&x'' ⋅ \omega2\\ \end{array}
From the foregoing, you can see that the time domain equations are simply scaled forms of the angle domain equations:
x
x'
x''
To convert the angle domain equations to time domain, first replace A with ωt, and then scale for angular velocity as follows: multiply
x'
x''
By definition, the velocity maxima and minima occur at the acceleration zeros (crossings of the horizontal axis).
The velocity maxima and minima (see the acceleration zero crossings in the graphs below) depend on rod length
l
r
A
The velocity maxima and minima do not necessarily occur when the crank makes a right angle with the rod. Counter-examples exist to disprove the statement "velocity maxima and minima only occur when the crank-rod angle is right angled".
For rod length 6" and crank radius 2" (as shown in the example graph below), numerically solving the acceleration zero-crossings finds the velocity maxima/minima to be at crank angles of ±73.17615°. Then, using the triangle law of sines, it is found that the rod-vertical angle is 18.60647° and the crank-rod angle is 88.21738°. Clearly, in this example, the angle between the crank and the rod is not a right angle. Summing the angles of the triangle 88.21738° + 18.60647° + 73.17615° gives 180.00000°. A single counter-example is sufficient to disprove the statement "velocity maxima/minima occur when crank makes a right angle with rod".
The graphs below show the angle domain equations for a constant rod length
l
r
l
r
Below is an animation of the piston motion equations with the same values of rod length and crank radius as in the graphs above
Note that for the automotive/hotrod use-case the most convenient (used by enthusiasts) unit of length for the piston-rod-crank geometry is the inch, with typical dimensions being 6" (inch) rod length and 2" (inch) crank radius. This article uses units of inch (") for position, velocity and acceleration, as shown in the graphs above.