Determine stopping distance of a train - modified Euler method

Click For Summary

Homework Help Overview

The discussion revolves around a problem involving the stopping distance of a train that is brought to an emergency stop. The acceleration of the train is defined as a function of time, and participants are tasked with integrating this acceleration using both Euler's method and the modified Euler method. The context includes comparing results with an analytically derived value.

Discussion Character

  • Mixed

Approaches and Questions Raised

  • Participants discuss the application of Euler's method and modified Euler method for integrating acceleration. There are inquiries about the specific formulas being used and whether they are appropriate for the problem at hand. Some participants express confusion regarding the correct approach and seek clarification on the formulas and methods.

Discussion Status

There is an ongoing exchange where participants are attempting to clarify the correct application of Euler-type methods. Some have provided their formulas, while others are questioning their suitability for the specific problem. Guidance has been offered regarding the need for explicit details in the application of the methods, but no consensus has been reached on the best approach yet.

Contextual Notes

Participants are working under the constraints of homework rules, which may limit the amount of direct assistance they can receive. There is an emphasis on understanding the underlying methods rather than simply obtaining answers.

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.
Pytel_Dynamics048.jpg


Can you check this?
 
Physics news on Phys.org
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

  • Pytel 12_7 Numerical Integration.jpg
    Pytel 12_7 Numerical Integration.jpg
    44 KB · Views: 542
  • Pytel 12_7 Numerical Integration2.jpg
    Pytel 12_7 Numerical Integration2.jpg
    38.7 KB · Views: 526
  • Pytel 12_7 Numerical Integration3.jpg
    Pytel 12_7 Numerical Integration3.jpg
    34.9 KB · Views: 511
  • Pytel 12_7 Numerical Integration4.jpg
    Pytel 12_7 Numerical Integration4.jpg
    26.9 KB · Views: 500
  • Pytel 12_7 Numerical Integration5.jpg
    Pytel 12_7 Numerical Integration5.jpg
    35.5 KB · Views: 584
  • Pytel 12_7 Numerical Integration6.jpg
    Pytel 12_7 Numerical Integration6.jpg
    36.6 KB · Views: 514
  • Pytel 12_7 Numerical Integration7.jpg
    Pytel 12_7 Numerical Integration7.jpg
    54.4 KB · Views: 505
  • Pytel 12_7 Numerical Integration8.jpg
    Pytel 12_7 Numerical Integration8.jpg
    44.9 KB · Views: 542
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.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
Replies
8
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
7K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 3 ·
Replies
3
Views
5K
Replies
4
Views
2K