Verlet integration - first iteration

  • Thread starter Thread starter CactusPie
  • Start date Start date
  • Tags Tags
    Integration
Click For Summary
A user is developing a simulation of projectile motion with air drag and has implemented Euler and fourth-order Runge Kutta methods but is uncertain about using Verlet integration. The main challenge is determining the initial value for r(t-Δt) during the first iteration. It is suggested to use a quadratic estimation for the first step, which maintains a global error of order 2, similar to Verlet integration. After this initial step, the user can proceed with Verlet integration for subsequent calculations. This approach effectively bridges the gap for multistep integration techniques.
CactusPie
Messages
2
Reaction score
0
I'm trying to make a simple simulation of a projectile motion with air drag. I have already implemented it using Euler and fourth order Runge Kutta methods. I am however unsure about Verlet integration. The equation goes as follows:

r(t + Δt) = 2r(t) - r(t-Δt) + a(t)Δt^2

I don't really know what value should I use during first iteration for

r(t-Δt)

Could someone please help me?
 
Physics news on Phys.org
Verlet is one of many "multistep" integration techniques that need past data. As you noted, that past data doesn't exist on the first step. Some other technique, ideally one with comparable error characteristics, needs to be used to bootstrap a multistep integrator. For verlet integration, just use a quadratic estimation for that very first step,
r(t+\Delta t) = r(t) + v(t)\Delta t + \frac 1 2 a(t)\Delta t^2
This has a global error of order 2, which is the same as verlet.

From the second step onward you can use verlet integration.
 
Thank you very much, that really helped!
 
Topic about reference frames, center of rotation, postion of origin etc Comoving ref. frame is frame that is attached to moving object, does that mean, in that frame translation and rotation of object is zero, because origin and axes(x,y,z) are fixed to object? Is it same if you place origin of frame at object center of mass or at object tail? What type of comoving frame exist? What is lab frame? If we talk about center of rotation do we always need to specified from what frame we observe?

Similar threads

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