Determine stopping distance of a train - modified Euler method

AI Thread Summary
The discussion centers on solving a physics problem involving a train's stopping distance using numerical methods, specifically Euler's and modified Euler methods. The acceleration function is given, and users are attempting to integrate this to find the stopping distance, comparing their results to an analytical value of 138.7m. There is confusion regarding the application of the correct formulas for the modified Euler method, with a request for clarification on the steps taken in the calculations. Participants emphasize the importance of using the appropriate equations for the specific problem to avoid unnecessary complexity. The conversation highlights the need for detailed input to facilitate accurate assistance in solving the problem.
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: 521
  • Pytel 12_7 Numerical Integration2.jpg
    Pytel 12_7 Numerical Integration2.jpg
    38.7 KB · Views: 508
  • Pytel 12_7 Numerical Integration3.jpg
    Pytel 12_7 Numerical Integration3.jpg
    34.9 KB · Views: 493
  • Pytel 12_7 Numerical Integration4.jpg
    Pytel 12_7 Numerical Integration4.jpg
    26.9 KB · Views: 483
  • Pytel 12_7 Numerical Integration5.jpg
    Pytel 12_7 Numerical Integration5.jpg
    35.5 KB · Views: 568
  • Pytel 12_7 Numerical Integration6.jpg
    Pytel 12_7 Numerical Integration6.jpg
    36.6 KB · Views: 491
  • Pytel 12_7 Numerical Integration7.jpg
    Pytel 12_7 Numerical Integration7.jpg
    54.4 KB · Views: 484
  • Pytel 12_7 Numerical Integration8.jpg
    Pytel 12_7 Numerical Integration8.jpg
    44.9 KB · Views: 522
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.
 
TL;DR Summary: I came across this question from a Sri Lankan A-level textbook. Question - An ice cube with a length of 10 cm is immersed in water at 0 °C. An observer observes the ice cube from the water, and it seems to be 7.75 cm long. If the refractive index of water is 4/3, find the height of the ice cube immersed in the water. I could not understand how the apparent height of the ice cube in the water depends on the height of the ice cube immersed in the water. Does anyone have an...
Thread 'Variable mass system : water sprayed into a moving container'
Starting with the mass considerations #m(t)# is mass of water #M_{c}# mass of container and #M(t)# mass of total system $$M(t) = M_{C} + m(t)$$ $$\Rightarrow \frac{dM(t)}{dt} = \frac{dm(t)}{dt}$$ $$P_i = Mv + u \, dm$$ $$P_f = (M + dm)(v + dv)$$ $$\Delta P = M \, dv + (v - u) \, dm$$ $$F = \frac{dP}{dt} = M \frac{dv}{dt} + (v - u) \frac{dm}{dt}$$ $$F = u \frac{dm}{dt} = \rho A u^2$$ from conservation of momentum , the cannon recoils with the same force which it applies. $$\quad \frac{dm}{dt}...
Back
Top