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
6 hours 23 min ago
12 hours 50 min ago
13 hours 4 min ago
13 hours 7 min ago
15 hours 45 min ago
17 hours 7 min ago
17 hours 10 min ago
17 hours 26 min ago
17 hours 48 min ago
18 hours 4 min ago