Torsional Pendulum Simulator

JJ Ben-Joseph headshot JJ Ben-Joseph

Introduction: 1. Why torsional pendulums matter

A torsional pendulum turns a twist in a wire or fiber into a measurable rotational oscillation. A disk suspended by the wire rotates back and forth after release while the wire supplies a torque that tends to restore its untwisted position. This simulator goes beyond a period-only result by calculating the motion of the rotating body over time. Adjusting inertia, torsion constant, damping, or an applied sinusoidal torque makes it possible to see why a compliant wire gives a slower oscillation, why a larger moment of inertia resists angular acceleration, and why damping removes mechanical energy.

2. Torsional pendulum variables and assumptions

This torsional pendulum simulation tracks angular displacement θ and angular velocity ω of a rigid body with moment of inertia I . The torsion wire supplies a restoring torque with magnitude τ = κ θ , where κ is the torsion constant. Linear viscous damping with coefficient b opposes motion through a torque proportional to b ω . An optional driving torque τd( t ) = τ0 sin ( ωd t ) can add energy. The model assumes linear torsional elasticity, so the restoring torque remains proportional to θ ; gravitational effects and axial vibration are omitted. Inputs are in SI units: kg·m² for inertia, N·m/rad for torsion constant, N·m·s/rad for damping, and seconds for time. The calculator requires positive finite values of I and κ , and clamps Δt to 0.001–0.1 s.

Formula: 3. Torsional pendulum governing equations

The simulated torsional pendulum follows rotational Newton’s law: I d ω d t = τd( t ) - b ω - κ θ . Together with d θ d t = ω , this gives the two first-order equations integrated by the script. Rotational kinetic energy is Ek = 1 2 I ω 2 , torsional potential energy is Ep = 1 2 κ θ 2 , and dissipated energy accumulates at rate b ω 2 . Driver work is tracked as W = τd( t ) ω dt , allowing the displayed energy check Ek + Ep + Ed - ( E0 + W ) .

4. Torsional pendulum numerical scheme

The torsional pendulum trajectory is integrated with a fourth-order Runge–Kutta method. At each time step, the code evaluates the restoring, damping, and driving torques at the current state, two midpoint estimates, and a predicted endpoint. Their weighted average advances both θ and ω . RK4’s error scales with Δt 4 , so reducing the step improves the numerical path substantially. Very stiff torsion constants or strong damping can still call for a smaller time step. The input is therefore limited to the displayed range, and input changes are debounced before the motion is recalculated.

5. Worked example: an undriven damped torsional pendulum

With the default inputs, the disk has I=0.02 kg·m², the wire has κ=0.1 N·m/rad, and damping is b=0.01 N·m·s/rad. The initial condition is a 10° twist with zero angular velocity and no driving torque. In the absence of damping, these inertia and stiffness values correspond to a natural period of about 2.8 s; the entered damping makes successive swings smaller. Press Play to watch that initial twist exchange torsional potential energy for rotational kinetic energy while the gray dissipated-energy bar grows. The CSV button exports the calculated time, angle, angular velocity, and energy columns for the simulated 30-second interval.

6. Comparison table: torsion stiffness and damping inputs

This torsional pendulum comparison keeps the same initial 10° displacement and zero initial angular velocity while changing the wire stiffness or damping setting.

Scenario κ (N·m/rad) b (N·m·s/rad) Initial |θ| (deg) What changes in the simulation
Baseline 0.1 0.01 10 Reference motion and energy balance
Stiffer wire 0.3 0.01 10 Faster restoring oscillation
Heavier damping 0.1 0.05 10 More rapid decay after release

For the same initial twist, increasing κ increases the restoring torque and shortens the undamped period; it does not erase the starting 10° displacement. Increasing b removes energy more quickly, so later peaks diminish sooner. Use the caption’s ΔE value to judge the numerical energy balance for the selected time step rather than treating it as a physical energy loss.

7. How to read the torsional pendulum animation

The torsional pendulum canvas is a top view: the radial line gives the disk’s current angle relative to the horizontal axis, and its faint trail records recent rotation. The striped orange, blue, and gray bars show rotational kinetic energy, torsional potential energy, and cumulative dissipated energy. Their patterns, as well as the text caption, keep the energy states distinguishable without relying on color. The caption reports time, angle, angular velocity, and energy-balance error, while the screen-reader summary repeats that information. Keyboard users can focus the canvas and press the space bar to play or pause.

8. Torsional pendulum limitations

This torsional pendulum model assumes linear elasticity and linear viscous damping. Real fibers and wires can show anelasticity, nonlinear stiffness, hysteresis, or permanent deformation that this calculation does not represent. The rotating body is treated as rigid, with no gravitational torque or axial vibration included. Large twists near a wire’s yield range are outside the model’s intended use. A large integration step can also introduce phase error or energy-balance drift, which is why the simulator reports ΔE and permits a smaller Δt.

9. Suggested torsional pendulum extensions

A more elaborate torsional pendulum model could couple two rotating bodies to investigate normal modes or add magnetic torque for an electromagnetic torsion balance. A phase-space plot of ω versus θ would make the damped path toward equilibrium visible. For related motion, compare the assumptions here with the Foucault Pendulum Precession Calculator, the Damped Harmonic Oscillator, and the Rotational Kinetic Energy Calculator.

10. References for torsional oscillation

For a fuller treatment of torsional oscillators, see J. L. Meriam and L. G. Kraige, Engineering Mechanics: Dynamics, and D. Halliday, R. Resnick, and J. Walker, Fundamentals of Physics. Both texts cover rotational dynamics, energy methods, and damping models relevant to the equations used in this simulation.

How to use this torsional pendulum simulator

  1. Enter I (kg·m²) for the rotating body’s moment of inertia.
  2. Enter κ (N·m/rad) for the torsion wire or fiber’s stiffness.
  3. Enter b (N·m·s/rad) for the damping torque coefficient, then set any initial twist, angular velocity, or driving torque you want to examine.
  4. Press Play to follow the torsional motion, then alter one physical parameter at a time to compare its effect on period, decay, and the energy display.

Arcade Mini-Game: Torsional Pendulum Simulator Calibration Run

Use this quick arcade run to practice separating useful scenario inputs from common planning mistakes before you rely on the calculator output.

Score: 0 Timer: 30s Best: 0

Start the game, then use your pointer or arrow keys to catch useful inputs and avoid bad assumptions.

Enter parameters and press Play.
Simulation summary will appear here.
Status messages will appear here.
Interactive details will appear here after you run the calculator.
Interactive details will appear here after you run the calculator.
Interactive details will appear here after you run the calculator.
Interactive details will appear here after you run the calculator.