Adjust crank radius, connecting rod length, and angular velocity to visualize piston kinematics in real time. Explore position, velocity, and acceleration waveforms with engine design applications.
What exactly is this simulator showing? I see a circle, a rod, and a block moving back and forth.
🎓
Basically, you're looking at the core of an engine. The circle is the crankshaft, the rod is the connecting rod, and the block is the piston. The simulator shows how spinning the crank (rotary motion) makes the piston slide back and forth (reciprocating motion). Try moving the "Crank Radius" slider above to see how a bigger crank makes the piston travel farther.
🙋
Wait, really? So the piston's speed isn't constant? The graph shows it speeding up and slowing down.
🎓
Exactly! That's the key point. The piston moves fastest near the middle of its stroke and slows to a stop at each end before reversing. This is because of the geometry of the linkage. For instance, in a car engine, this changing speed creates the inertia forces we need to manage. Change the "Rod Length" parameter and watch how the velocity curve changes shape.
🙋
So why is acceleration so important? The graph shows it spikes even higher than velocity.
🎓
Great observation. Acceleration is crucial because force is mass times acceleration ($F = m a$). Those high acceleration spikes mean huge inertia forces are acting on the piston and rod. In practice, this determines the loads on bearings and the stress on the crankshaft. Crank up the "Angular Velocity" slider and see how acceleration increases dramatically—this is why high-speed engines are so challenging to design!
Physical Model & Key Equations
The exact position of the piston (x) is found from the geometry of the triangle formed by the crank radius (r), connecting rod length (L), and the crank angle (θ).
Where:
$x$ = Piston position from crank center
$r$ = Crank radius
$L$ = Connecting rod length
$\theta$ = Crank angle ($\theta = \omega t + \phi_0$)
Taking the derivative of position gives velocity, and a second derivative gives acceleration. A common simplified formula for velocity uses the ratio $r/L$ and is accurate for most practical designs.
Where:
$v$ = Piston velocity
$\omega$ = Crankshaft angular velocity
The term $\frac{r}{2L}\sin 2\theta$ is the correction due to the finite connecting rod length. If the rod were infinitely long ($L \to \infty$), this term vanishes and the motion would be a simple sine wave.
Frequently Asked Questions
Increasing the crank radius increases the piston stroke (displacement) and raises the peak velocity and acceleration. Shortening the connecting rod enhances the asymmetry of piston motion (sharper velocity changes near top dead center), making higher harmonics more likely to appear in the acceleration waveform.
Because the connecting rod has a finite length, piston motion is not simple harmonic but becomes asymmetric due to the rod's inclination. The distortion becomes more pronounced as the r/L ratio (crank radius ÷ rod length) increases, and higher-order terms in the approximation can no longer be ignored.
This tool is intended for educational purposes; actual design requires detailed analysis considering friction, inertial forces, combustion pressure, and other factors. However, it is effective for understanding trends in piston motion due to changes in the r/L ratio or angular velocity, and it aids in initial parameter studies and intuitive comprehension.
Increasing the angular velocity compresses the time axis, making the waveform's frequency higher and appear denser on the screen. However, the shape of the waveform itself (asymmetry and distortion) does not depend on angular velocity but is determined by the ratio of r to L. If it appears distorted due to display scaling or update rate, adjust the time range.
Real-World Applications
Internal Combustion Engines: This is the most common application. Every piston in your car's engine is part of a crank-slider mechanism. The kinematics determine valve timing, inertial balance, and the forces that the crankshaft and bearings must withstand.
Steam Engines and Pumps: The classic reciprocating steam engine uses this mechanism to convert the linear push of steam pressure into useful rotary motion for factories, trains, and ships. Reciprocating pumps use it in reverse, taking rotary input to create linear pumping action.
Presses and Manufacturing Machinery: Mechanical presses use a crank-slider to deliver a powerful, controlled linear force at a specific point in the stroke, ideal for stamping metal, punching holes, or forging parts.
CAE and Engine Design: Computer-Aided Engineering software uses these exact kinematic equations to calculate inertial loads for finite element analysis (FEA) of crankshafts and connecting rods. The R/L ratio you adjust in the simulator is a key design variable that affects engine smoothness, size, and bearing wear.
Common Misconceptions and Points to Note
First, is the assumption that "the smaller the R/L ratio, the better." It's true that increasing the connecting rod length L (decreasing the R/L ratio) makes the piston velocity and acceleration waveforms closer to a sine wave, which is advantageous from a vibration perspective. However, it also increases the overall engine height and weight, as well as frictional losses. In practice, within the trade-off between overall engine packaging and performance, an R/L ratio around 1/3.5 to 1/4.5 is often chosen. For example, with a crank radius r=45mm, a typical connecting rod length L would be in the range of 160mm to 200mm.
Next, is simply equating the simulator's "angular velocity" with real-world engine RPM. While increasing the angular velocity ω in the tool causes acceleration to spike, in actual engine design the metric of "mean piston speed" is more critical. The formula is $V_m = 2 \times S \times N$ (S: Stroke, N: RPM), and this determines material and lubrication limits. For instance, mass-production gasoline engines are often designed so that $V_m$ does not exceed 20 m/s.
Finally, is considering only static balance. While the static balance of the crankshaft (using counterweights to balance rotation) is certainly important, the couple (shaking force) caused by the inertia forces of the reciprocating piston and connecting rod shakes the engine block. To reduce this vibration, countermeasures such as using a V-type engine with a bank angle or employing balance shafts are necessary. The acceleration calculated by the simulator is the first step in calculating this "shaking force."
Set crank radius (r) using val-r slider, typically 20–80 mm for automotive engines
Adjust connecting rod length (L) with sl-L; maintain R/L ratio between 0.25–0.35 for four-stroke engines
Input angular velocity (ω) in rad/s using sl-w; 100 rad/s equals ~955 RPM
Vary crank angle (φ) from 0° to 360° to observe instantaneous piston position and velocity
Read real-time kinematic outputs: stroke displacement, maximum velocity, and peak acceleration
Worked Example
Gasoline engine with r=40 mm, L=150 mm, ω=157 rad/s (1500 RPM): Stroke = 80 mm (2r), R/L ratio = 0.267, Max velocity ≈ 6850 mm/s at φ≈90°, Max acceleration ≈ 1,240,000 mm/s² at top dead center. Verify using second derivative of slider displacement equation x(φ) = r·cos(φ) + √(L² − r²·sin²(φ)).
Practical Notes
R/L below 0.2 reduces peak acceleration but increases rod stress; diesel engines typically use 0.28–0.32
Higher ω amplifies inertial loads quadratically; 3000 RPM generates 4× the acceleration of 1500 RPM
Observe velocity reversal near dead centers (φ=0°, 180°) where piston momentarily stops
For reciprocating pumps or compressors, match rod length to desired flow uniformity across the stroke