DR Apps
DR.DynamikDR Apps

Physical background

Forces, motion and energy on a straight road: the model behind DR.Dynamik.

1. Why does a vehicle keep moving?

A vehicle needs a net force to change its velocity. Without a net force it maintains its velocity. Switch to coasting while moving and compare a vehicle with rolling resistance and air drag to one without them.

DR.Dynamik models up to two independent vehicles on a straight, level road. Both share the experiment clock. Separate lanes prevent collisions and do not affect the calculation. The camera follows the selected vehicle. The road has no end; world position is never reset.

2. Position, velocity and forces

The positive direction points right along the road. Position x is measured in metres from the starting point, velocity v in metres per second and acceleration a in metres per second squared. Mass m is given in kilograms. One newton accelerates one kilogram at one metre per second squared.

p = m · v
Fnet = dpdt = m · a

p denotes momentum in kg·m/s. The second equality applies at constant mass. The net force is the sum of driving force, braking force, rolling resistance and air drag. Driving force, braking force, rolling resistance and air drag are distinguished by colour and vector notation. Every arrow shows direction and magnitude on the same scale; the net force is their vector sum. For readability, arrows sit in slightly offset parallel rows. This display offset does not represent different points of application or torques. The coloured legend names the vectors without connecting lines. The magnifier shows the selected car with enlarged force arrows and current values: a running experiment or replay continues, while a paused one remains paused.

3. Drive, braking and tyre grip

In the normal setting the drive prescribes a constant force in newtons, not constant power. Coasting switches the drive off. Braking opposes forward motion and brings the vehicle to rest, but never drives it backwards. Drive, Coast and the two braking modes are mutually exclusive.

The force slider specifies a requested value. The tyres can transmit at most μH · m · g. Here μH is tyre grip and g = 9.81 m/s². The default is μH = 0.8. Grip remains even when rolling resistance and air drag are disabled. At μH = 0 neither drive nor brakes can act. Grip is a transmission limit in this model, not an additional heat source.

|Ftyres| ≤ μH · m · g

During normal braking the wheels keep rolling. Expert mode additionally offers full braking with locked wheels. The tyres then slide over the road; the sliding-friction coefficient μG determines braking force independently of the force slider:

Fbrakes = −μG · m · g

The default is μG = 0.6. Grip and sliding coefficients can be changed separately; in the usual comparison the sliding coefficient is lower. Without other resistances this gives a longer stopping distance than maximum braking with rolling wheels. Additional rolling resistance is omitted while sliding; air drag still acts. Sliding heat in tyres and road is included in the displayed braking contribution. Releasing the lock lets the wheels resume turning from their current orientation.

Expert mode can additionally limit mechanical motor power. At positive velocity, P = F · v. Actual driving force is then the smallest of the requested force, the grip limit and Pmax/v. The finite force limit applies at the start. At 0 kW the motor produces no force. Positive power limits range from 0.1 to 200 kW. Without a power limit there is no hidden maximum speed.

4. Resistances dissipate kinetic energy

Rolling resistance and air drag can be enabled independently. Both are initially disabled in the free experiment. During forward motion with rolling wheels:

Froll = −cr · m · g
Fair = −k · |v| · v

The normal rolling coefficient is cr = 0.015. The air drag coefficient is k = 0.4 kg/m; it combines air density, shape and frontal area. Expert mode allows both to be changed. Doubling speed quadruples air drag.

At 1000 kg, the normal rolling coefficient gives about 147 N. This is only around 14.7% of a 1000 N driving force. Without drive or air drag, it reduces velocity by about 0.147 m/s each second. The short rolling-resistance arrow therefore represents a small force; the magnifier makes it easier to see.

At rest the model uses an idealised breakaway threshold: a driving force smaller than rolling resistance cannot move the vehicle. Above the threshold it starts moving. This simplification prevents numerical back-and-forth motion. Real resistance at the onset of rolling is not modelled in detail.

With air drag enabled, driving force can balance the resistances. Acceleration then vanishes while the vehicle keeps moving. The resulting speed follows from the forces and is not imposed. At 1000 kg, with the normal rolling resistance and air drag and the maximum selectable driving force of 1400 N, this balance occurs at about 201 km/h. This is not a built-in speed limit; without resistances, the vehicle keeps accelerating.

5. Where does the energy go?

A moving vehicle has kinetic energy. Braking, rolling resistance and air drag convert it into internal energy. The display separates these three contributions. Internal energy already produced remains when a resistance is subsequently switched off.

Ekin = 12 · m · v²
dWmotordt = Fdrive · v

The motor is an external energy source. Its supplied mechanical energy is displayed, rather than work at an ideal stationary tyre contact point. Fuel capacity, efficiencies and electrical losses are not simulated.

Ekin + Qbrakes + Qroll + Qair
= Einitial + Wmotor + Wmass

Internally all energy is calculated in joules. The overview displays kilojoules; the energy chart and CSV use joules. The small difference between the two sides is the numerical balance residual. It is not relabelled as heat. Momentum balance includes the surroundings: road and air receive the opposite momentum of every force. Vehicle plus environmental momentum remains equal to initial momentum; both appear in the CSV.

6. What the controls change

Driving mode, force, resistances and expert parameters act immediately. Position, momentum, experiment time and accumulated internal energy are preserved. Changing mass also preserves momentum here: velocity changes according to v = p/m. The resulting change in energy is recorded as signed work.

ΔWmass = p²2 · (1mnew − 1mold)

This is an idealised parameter change, not realistic loading or unloading. Available masses range from 100 to 5000 kg; driving force ranges from 0 to 1400 N, braking force from 0 to 10000 N.

Changing initial velocity, choosing a preset, enabling or disabling B and Reset start a new shared experiment. Initial energy and the recording are reset. Initial velocities range from 0 to 60 m/s. A and B can initially be adjusted independently. The vehicle selector determines which car the controls apply to. Optionally linked driving controls synchronise only the driving mode and requested forces; mass, resistances and expert parameters remain independent. Disabling expert mode restores μH = 0.8, cr = 0.015 and k = 0.4 kg/m without a power limit, as well as μG = 0.6, for both vehicles. An active wheel lock changes to normal braking.

7. Motion is calculated from forces

The calculation integrates position, momentum, motor energy, internal energy and environmental momentum together using the fourth-order Runge–Kutta method (RK4). A normal substep is at most one hundred and twentieth of a second. One full step is compared with two half steps; excessive differences trigger further subdivision. The time of stopping within a step is located so braking does not create backwards motion.

Displayed vehicle positions interpolate between computed states. Measurements remain unchanged results of the calculation. A slow frame catches up at most 0.1 seconds of real time. Under heavy device load the experiment clock may therefore run slower than the wall clock. A hidden browser tab pauses the experiment. Camera, zoom, window size and language do not change the experiment.

8. Measurements, replay and snapshots

The recording stores 30 original states per simulated second, plus additional states for interventions and stops. Replay, chart, snapshot and CSV use the same rolling window of the last 60 simulated seconds. At most 4001 states are retained. Older values are discarded even if the experiment continues indefinitely.

Charts show velocity, position, acceleration, net force or energy over time. The energy chart distinguishes kinetic energy, internal energy and available energy from initial energy, motor work and mass-change work. A is mint and B orange. Lines connect samples without implying additional measurement precision. Displayed curves use a bounded selection that retains minima and maxima. CSV contains the unchanged original values.

Replay pauses the experiment and only shows previously recorded states within this 60-second window. Use the time slider to choose a time, or Play to watch the recorded motion. Numerical values come unchanged from the latest recorded sample at or before the selected time. Only the displayed vehicle positions are interpolated between samples for smooth motion. This creates no new measurements and does not advance the physics calculation.

Driving controls and experiment settings are locked during replay. The current experiment retains its parameters, measurements and final state. Return to experiment displays that exact state again and leaves it paused. The experiment only continues when you start it again. A/B selection, the outside view and cockpit remain available for observation. Cockpit follows the selected vehicle and changes neither forces nor energy. Force arrows are shown in the outside view; switching to cockpit preserves their setting.

A snapshot pauses the experiment and copies the retained measurements. Zooming and panning change only the view. Clicking or tapping shows an actual recorded value pair. Subtle event markers identify recorded driving commands, parameter changes and stops. Nearby events are grouped according to zoom level. Closing the snapshot resumes a previously running experiment.

9. What this model deliberately simplifies

Vehicles are moving point masses whose spatial bodywork provides a visual representation. Wheels rotate according to the distance travelled while rolling and stop turning when locked. Their rotational energy is not included; locking and unlocking are immediate model changes without a tyre-slip transition or ABS control. The model omits gradients, suspension, gears, load transfer, tyre temperature, slip dynamics and vehicle collisions. V1 moves straight ahead. The freely rotating 3D view is not yet a cornering or drifting simulation.

Sounds follow motion and actual forces. They are presentation, not another energy sink. Interior lighting and the blue beacon on vehicle A are also purely visual and are not part of the energy balance. All calculations and measurements remain in the browser. Only a deliberate CSV download creates a local file.