Determine stopping distance of a train - modified Euler method

5 replies · 3K views · last reply
Alexanddros81
Messages
177
Reaction score
4

Homework Statement


12.81[/B] A train traveling at 20m/s is brought to an emergency stop. During braking,
the acceleration is a=-(7/4)+(t/16) m/s^2, where t is the time in seconds measured
from when the brakes were applied. (a) Integrate the acceleration from t=0 to
t=16s using Euler's method with Δt=2s. (b) Use the results of the integration to
determine the stopping distance of the train and compare you answer with 138.7m,
the value found analytically.

12.82 Solve Prob. 12.81 using the modified Euler method with Δt=4s

Homework Equations

The Attempt at a Solution



12.81 [/B]was handled in my previous post in this sub forum. I attach my attempt in 12.82.
I have run an online modified Euler calculator and my values are not correct.
Handwritten table of modified Euler integration steps for train braking, with columns for i, t, v, x, a, and predicted values at t = 0, 4, 8, 12, 16 s, including formulas and numerical results such as v = 16.75, 11.25, 6.75, 3.25 and x = 66, 121, 156, 175, 188.


Can you check this?
 
Alexanddros81 said:

Homework Statement


12.81[/B] A train traveling at 20m/s is brought to an emergency stop. During braking,
the acceleration is a=-(7/4)+(t/16) m/s^2, where t is the time in seconds measured
from when the brakes were applied. (a) Integrate the acceleration from t=0 to
t=16s using Euler's method with Δt=2s. (b) Use the results of the integration to
determine the stopping distance of the train and compare you answer with 138.7m,
the value found analytically.

12.82 Solve Prob. 12.81 using the modified Euler method with Δt=4s

Homework Equations

The Attempt at a Solution



12.81 [/B]was handled in my previous post in this sub forum. I attach my attempt in 12.82.
I have run an online modified Euler calculator and my values are not correct.
View attachment 210017

Can you check this?

No. Type it all out and I will be happy to help. Also: you do not state what formulas you use, so it is impossible to say whether you are doing it correctly. (There are several versions of Euler-type methods---modified or otherwise---so you need to be explicit about what you mean.)
 
Last edited:
what do you want me to type out besides the formulas?
 
Alexanddros81 said:
what do you want me to type out besides the formulas?

Starting with the formulas would be nice; then we could go on from there. For instance, are you just using some form of Euler on the single ##v'(t) =a(t)## (then somehow getting ##x(t)## from ##v(t)##), or are you applying an Euler method to the 2-dimensional linear, non-homogeneous system
$$\frac{d}{dt}\pmatrix{x(t) \\ v(t)} = \pmatrix{v(t) \\ a(t)} = \pmatrix{0 & 1\\0 & 0} \pmatrix{x(t)\\v(t)} + \pmatrix{0 \\ a(t)} ? $$
 
Last edited:
So here are the formulas:

##\hat v_{i+1}=v_i+a_i Δt##
##\hat x_{i+1}=x_i+v_i Δt##

##v_{i+1}=v_i+\frac {a_i + \hat a_{i+1}} {2} Δt##

##x_{i+1}=x_i+\frac {v_i + \hat v_{i+1}} {2} Δt##

##a_i=f(v_i, x_i, t_i)##
##\hat a_{i+1}=f(\hat v_{i+1}, \hat x_{i+1}, t_{i+1})##

I have attached the theory.

Do you want to upload the book example?
 
Attachments
  • Textbook page titled 12.7 Numerical Integration of a Second-Order Differential Equation, with introduction and rationale text and equations 12.27 giving accelerations a_x, a_y, a_z as functions of velocities, positions and time.
    Pytel 12_7 Numerical Integration.jpg
    44 KB · Views: 570
  • Textbook page showing Fig. 12.7: three panels (a), (b), (c) plotting acceleration a, velocity v and displacement x against time t, with shaded area strips and time points t0, t1, t2 marked.
    Pytel 12_7 Numerical Integration2.jpg
    38.7 KB · Views: 553
  • Textbook page 59 on numerical integration of a second-order differential equation, showing equations 12.32 to 12.34 for the trapezoidal method and text on the general case a = f(v, x, t) and the Euler method.
    Pytel 12_7 Numerical Integration3.jpg
    34.9 KB · Views: 536
  • Fig. 12.9: three rows of graphs showing the graphical interpretation of Euler's method, with columns (a), (b) and (c) for acceleration a, velocity v and position x against time t, with each first point known and the next point estimated from the rectangular area Δt.
    Pytel 12_7 Numerical Integration4.jpg
    26.9 KB · Views: 529
  • Textbook page showing the modified Euler method equations (12.33) and (12.34) and a flowchart labeled Fig. P12.10 with a blank table for recording t, v, x, a values.
    Pytel 12_7 Numerical Integration5.jpg
    35.5 KB · Views: 612
  • Textbook page showing the modified Euler method: equations 12.35 and 12.36 for predictor and corrector steps, a flowchart (a) of the algorithm, and an empty results table (b) with columns i, t, x, v, a, and predicted values, labelled Fig. 12.11.
    Pytel 12_7 Numerical Integration6.jpg
    36.6 KB · Views: 537
  • Textbook page titled 12.7 Numerical Integration of a Second-Order Differential Equation, covering Higher-Order Runge-Kutta Methods and Sources of error, printed body text with section headings e and a footnote.
    Pytel 12_7 Numerical Integration7.jpg
    54.4 KB · Views: 536
  • Textbook page 64 of Chapter 12, Dynamics of a Particle: Rectangular Coordinates, covering choice of time increment, adaptive methods, and equivalent first-order equations, with equations 12.38, 12.39a and 12.39b.
    Pytel 12_7 Numerical Integration8.jpg
    44.9 KB · Views: 572
Alexanddros81 said:
So here are the formulas:

##\hat v_{i+1}=v_i+a_i Δt##
##\hat x_{i+1}=x_i+v_i Δt##

##v_{i+1}=v_i+\frac {a_i + \hat a_{i+1}} {2} Δt##

##x_{i+1}=x_i+\frac {v_i + \hat v_{i+1}} {2} Δt##

##a_i=f(v_i, x_i, t_i)##
##\hat a_{i+1}=f(\hat v_{i+1}, \hat x_{i+1}, t_{i+1})##

I have attached the theory.

Do you want to upload the book example?

No, do not upload anything more.

The equations you wrote above are not the best ones for YOUR problem, which has acceleration ##a = ## known function of ##t## alone. You should use the equations on page 61, but the ones you wrote above are from page 62. Actually, for the case of ##\ddot{x} = a(t)## the equations on pages 61 and 62 are mathematically equivalent, but why do more work than you need to do? Why make things more complicated than they need to be?

Anyway, if you type out (not photograph) the results of the first two or three time-steps I will be glad to review them.

Oh, and by the way: the answer to the question I asked in post #4 (but which you never answered) is YES, you are applying Euler's method to the system I wrote there.