The equations of example_pkg.schemes, declared on the code that implements them and checked by the tests.
Move the position at the current velocity.
- update
- xn+1=xn+vnΔt
- Assumes
- velocity constant over the step
Change the velocity by the acceleration at the current position.
- update
- vn+1=vn+a(xn)Δt
Half a kick, a drift and half a kick: the velocity Verlet scheme.
- half kick
- vn+1/2=vn+21a(xn)Δt
- drift
- xn+1=xn+vn+1/2Δt
- kick
- vn+1=vn+1/2+21a(xn+1)Δt
- energy
- H(xn,vn)−H(x0,v0)=O(Δt2)for all n
- Order
- x: 2, v: 2
- Assumes
- the acceleration depends on the position only
- References
- Hairer, Lubich and Wanner, Geometric Numerical Integration (2006), section I.1.4
- Built from