Elaboration Construction of model lines and computation
Elaboration of
the model in mathematical terms or in a graphical model representation
Educated guess of parameter values in the model on the basis of data
Computation of the model with an adequate time step
Class discussion
Group work
The computation of the falling motion in subsequent time steps, as
elaborated in Table
2, can be systematised in an iterative calculation scheme.1
Model lines of code for free fall
1. Change of velocity
2. New velocity
3. Change of position
4. New position
5. New time
TABLE 3. Iterative calculation scheme of free fall
In the first two model lines, a new velocity is calculated from the acceleration; hereafter a new position is calculated from this velocity.
The last model line adds one time step to the time for a new calculation. These calculation steps can be repeated until a chosen final situation
is reached, for example y = 0. The change of a state of this dynamic model can thus be fully expressed in terms of the acceleration and
the initial states of position and velocity (or end states when one calculates back in time).
With the model lines in Table 3, the falling motion of an object subject to gravity only can be calculated on a computer.
A specific modelling environment is usually used for this, such as Coach2
or Modellus.3 For a simple phenomenon such as free fall, the calculations can also be performed in a spreadsheet program such as Excel.4
The sequence of the steps in the calculation scheme is important.5 First the new velocity is calculated and then the new location.
This has to do with the fact that the velocity is not constant over a time interval Δt; with a uniformly accelerated motion, the velocity
increases linearly in time. In fact, the average velocity should be calculated:
Here v- and v+ are the initial velocity and final velocity, respectively, for a given time step.
In the calculation scheme in Table 3 the following approximation is chosen:
. In numerical mathematics this is known as the Euler-Cromer
algorithm. This algorithm differs from the commonly used numerical method called the
Euler method, which is based on the approximation
. Thus, the Euler method computes with the initial velocity for a given time interval
and the Euler-Cromer method with the final velocity. Both methods have an approximation error of order Δt over a finite interval,
but the Euler-Cromer method is more stable.6
An even better approach for the numerical iteration of equations of motion is the so-called leapfrog method, as described in the Feynman
Lectures7, which basically means that the formula for the above average velocity is numerically implemented.8