Originally Posted by

**revolution2000** I am currently calculating the numerical solution to a vehicle in motion stopping.

I have used an Euler method where the initial kinetic energy T is calculated with 1/2mv^2.

The Euler method then reduces the kinetic energy in terms of friction and wind resistance. Tn+1 = Tn + h*f(x)

where f(x) = B + Cv^2 and B, C are the constants for friction and wind.

After each iteration I have used the new kinetic energy to calculate the velocity for the next value. i.e Tn+1 = 1/2mv^2

Therefore

v = sqrt((2*Tn+1)/m)

The Euler loop then continues until the Kinetic energy is zero and nh is the distance.

The problem;

When plotting the results Kinetic energy against Distance I have a line. This should be a curve should it not?

Am I calculating the velocity correctly? Are there any problems with my calculations etc. Any help would be greatly appreciated