DR Apps
DR.OsciDR Apps

Physical background

How mass, spring force and friction shape an oscillation — and how the simulation calculates its motion and balances.

1. One mass between two springs

A glider oscillates on a horizontal air track 2.40 m long. The scale shows the displacement Δx of its centre from equilibrium at the centre of the track: There, Δx = 0 m; values to the left are negative and values to the right are positive. The chart, snapshot and CSV use the same displacement. Mass m and momentum p determine velocity v = p/m.

The glider is permanently attached to two ideal, massless springs. Each has stiffness D2; together they provide restoring force −D · Δx. Thus D is the combined spring constant. Energy is measured relative to equilibrium.

Mass m
1–10 kg
Spring constant D
1–50 N/m
Air damping k
0–0.5 kg/m

The simulation uses SI units. Momentum is also labelled in Huygens: 1 Hy = 1 kg·m/s = 1 N·s. Momentum flow rate is the resultant force: 1 Hy/s = 1 N.

2. Free oscillation

When the glider is displaced and released, the springs pull it towards the centre. The spring force is zero there, but the glider keeps moving because it has momentum. At a turning point, it is momentarily at rest. Without friction, this exchange of energy between glider and springs repeats.

Fspring = −D · Δx
Ekin = · m · v²
Espring = · D · (Δx)²The minus sign means that the spring force opposes the displacement.

For undamped oscillation without contact with the track ends, the natural period is T₀ = 2π · √(m/D). Four times the mass doubles the period. A spring four times as stiff halves it. The displayed natural period is this ideal reference value, not a measurement from the damped motion.

3. Blower, air drag and expert mode

At 100% blower power, sliding and static friction vanish. At lower settings, part of the contact force remains. For air cushion strength s from 0 to 1, the model uses N = m · g · (1 − s). This is a simplified relationship, not a model of a particular blower.

Sliding friction has magnitude μk · N and opposes motion. Static friction can hold a stationary glider if the other forces can be balanced by at most μs · N. Both friction coefficients are 0.12 in this model. This can leave the glider at rest away from the centre.

The separate air-drag switch applies even with full blower power. Air drag grows quadratically with velocity. Expert mode lets you enter its coefficient k; the default is 0.02 kg/m. This coefficient takes effect only when air drag is enabled. Turning expert mode off restores k to 0.02 kg/m. Motion, measurement time, existing measurements and the air-drag switch stay unchanged; turning expert mode on again keeps the default.

Fair = −k · |v| · v
Pinternal,air = k · |v|³Power is non-negative: air drag converts mechanical energy into internal energy.

Internal energy accumulates energy already converted. It therefore does not return to zero when you later turn friction off. Only a new recording resets the balance. The ideal springs and elastic track ends do not themselves produce internal energy.

4. Changes during motion

Changing mass, spring stiffness, blower or air drag does not reset position or time. A mass change preserves momentum, so a larger mass immediately gives a smaller velocity. The change in kinetic energy is recorded as work due to the mass change, including its sign.

Wmass = · p² · (1/mnew − 1/mold)
Wspring = · (Dnew − Dold) · (Δx)²Spring stiffness changes at fixed displacement. Negative work removes energy from the system.

Grasping stops the glider. Dragging guides its position and changes spring energy. Release velocity follows the final hand movement and is limited to ±2 m/s. Stopping, moving and releasing are fully included as hand work and hand momentum. While holding the glider still, the hand can transfer momentum without doing work: with no displacement, work is zero.

“Set up” and Reset deliberately prepare a new recording. Initial displacement and velocity take effect for that new experiment.

5. Energy and momentum balances

The energy balance includes the glider, both springs and the surroundings heated by friction. External interventions are counted as work on the other side of the balance. Initial energy remains unchanged throughout a recording.

Ekin + Espring + Einternal
= Einitial + Whand + Wmass + Wspring

The glider alone does not have constant momentum: the springs exchange momentum with the Earth, and friction also exchanges it with the surroundings. “Total momentum” therefore includes the air, Earth and opposite momentum of the hand. Their sum remains equal to initial momentum. The idealised Earth is so massive that its kinetic energy is neglected.

At a track end, the glider’s velocity is reversed elastically. The Earth receives the opposite momentum. This very short collision has no resolved duration in the model, so the force chart does not show a finite force pulse for it. Its momentum and energy are nevertheless included in the balances.

6. Numerical motion and smooth animation

The simulation calculates position, momentum, opposite momenta and internal energy. A fourth-order Runge–Kutta method integrates the motion. Comparing one whole step with two half steps estimates the error; a step is reduced when necessary. Internal steps are at most 1 ms long. Stopping due to friction and contact with track ends are handled separately.

Physics calculations are independent of display refresh rate. For smooth animation, the renderer interpolates between calculated states. These intermediate images are not additional measurements. Pause freezes the state; slower playback changes the playback speed, not the physical laws.

The displayed balance residual is the remaining numerical error in the energy balance. It is reported openly and is not removed by an artificial correction. Small rounding and integration errors must therefore be distinguished from real energy conversion.

7. Live chart and CSV

Choose displacement, velocity, momentum, resultant force or energy. A bounded ring buffer retains at most the last 60 simulated seconds. The interface indicates when older values are discarded. This keeps memory use and processing costs bounded even during unlimited playback.

The live chart uses a cached, reduced representation. A recorded history is not fully reprocessed for every animation frame. The reduction retains minima and maxima so that brief peaks remain visible. CSV export uses recorded states, not interpolated screen positions. Export a recording before resetting or before it falls outside the 60-second window.

8. Explore a snapshot

A snapshot keeps a copy of the current measurements and pauses the simulation. The wide dialog supports zooming and panning. Use the mouse wheel or two fingers to zoom, and drag to pan. Click or tap the curve to inspect an actual recorded value pair with time and units.

A subtle legend sits inside the chart. Magenta markers show events such as hand contact, parameter changes and track-end contacts. Their labels are grouped to suit the visible range. This makes it possible to examine events and the selected measurement without cluttering the chart.

Closing resumes an experiment that was running. An experiment already paused before opening stays paused. Zooming and panning change neither the measurements nor the physical model.

9. Model limits

The model is one-dimensional. The springs are ideal, linear, massless and have no internal damping. Airflow, temperature dependence, tilting and real blower characteristics are not calculated. Track ends are ideally elastic. Hand guidance is a direct, idealised input, not a biomechanical model of a hand.

Air drag is quadratic rather than the linear damping law of a classical viscously damped oscillator. It therefore cannot be described by one amplitude-independent damping ratio. There is no periodic external drive: the experiment explores free oscillations and individual manual interventions.