As written much on phys-l, the symplectic integrators assume no dissipation. I’ve found this quite true for a SHO w/ linear dissipation (the term 0.01*thetadot). However, I’ve discovered an article that describes a modified V-V resulting is orders of magnitude better fit with the analytic solution. It’s, as bc translated from JD’s original, here:
=====================
// acceleration at beginning of interval:
double A = - ((4*pi*pi)/(period*period))*(1+deltag_now) * theta - r*thetadot +da;
// note the absence of the dissipation term for the n-1 force
The majority of my pendulum simulations use < r*thetadot*abs(thetadot) > as the dissipation term. So when I rewrote with the Sandvik solution I forgot to change it. Curiously, the result using 1e6 steps for a one second period is very little different from the linear version. (WRT difference between numerical resut and linear analytic)
bc several times visited a Sandvik engineer in Sandviken. (Sweden not Finland)