Will Fong's blog
MATLAB Implementation of AVI
Submitted by Will Fong on Fri, 2007-03-09 09:17.I work with AVI in my research so I have included a MATLAB implementation of AVI for the 1-D harmonic oscillator. The code will solve the equation a + gamma * v + (k1 + k2 + k3) x = 0 with any initial conditions x(0) and v(0). Here the spring constant has been artifically split into three spring constants to simulate multiple potentials. If there is only one potential AVI simplifies to the usual Velocity Verlet integrator. The friction term is absorbed into the k1 term in the implementation. The main idea in the implementation is to construct the propagation matrix for the system (x,v) for the different potentials.


Recent comments
26 min 3 sec ago
3 hours 15 min ago
4 hours 49 min ago
7 hours 15 min ago
9 hours 59 min ago
10 hours 35 min ago
11 hours 17 min ago
21 hours 57 min ago
23 hours 7 min ago
1 day 14 min ago