The basic problem of classical mechanics is simply stated : given a force law F(r,v,t)-a force F that may vary with position, velocity, and time- and initial conditions for positions and velocities, find the acceleration a = F/m and, from the acceleration, determine the trajectory r(t) for the particle. This procedure can be solved analytically in some cases; you can then derive an equation for position as a function of time. Let us state the step-by-step method in following words. 1. Start at the initial point with the initial velocity. 2. Choose a time step ∆t. 3. Calculate the force F and from it the acceleration a. 4. Calculate the change in velocity ∆v = a∆t and the change in position ∆r = v∆t. 5. The new velocity and position are then v + ∆v and r + ∆r, at the new time t+ ∆t. 6. Since you are now at the next point on the particle trajectory, return to step 3 and repeat 3, 4, and 5 (as often as you wish). Acording to above lines calculate acceleration and velocity with time t until 0.5 second. Initial values are r=100.0 v=5.0 m=2.0 t=0.0 dt=0.1 F=-m*9.8
The basic problem of
1. Start at the initial point with the initial velocity.
2. Choose a time step ∆t.
3. Calculate the force F and from it the acceleration a.
4. Calculate the change in velocity ∆v = a∆t and the change in position ∆r = v∆t.
5. The new velocity and position are then v + ∆v and r + ∆r, at the new time t+ ∆t.
6. Since you are now at the next point on the particle trajectory, return to step 3 and repeat 3, 4, and 5 (as often as you wish).
Acording to above lines calculate acceleration and velocity with time t until 0.5 second. Initial values are
r=100.0
v=5.0
m=2.0
t=0.0
dt=0.1
F=-m*9.8
Step by step
Solved in 2 steps