Explanations and examples related to the two integration methods below, as well as many other methods for numerically solving PDEs can be found in the excellent and practical book Applied Numerical Modelling for Engineers .
The first method I used is an adaptation of the Euler-Cuachy method for first-order initial value problems. The method is iterative and is derived from the second-order Taylor approximation. I have included a short outline of the adapted Euler-Cauchy prodecure.
Given a second order equation of form y'' = f(t,y,y') and initial values y(0) and y'(0), iterate the following procedure for t = n*h [0 < n < n_max] where Fs = 1/h is the simulation sampling rate:After implementing this scheme, I quickly discovered that the convergence of this routine was much too poor to generate realistic convergent solutions. Luckily there is a much better way of doing this available...
Because RKN is derived from the fourth-order Taylor approximation, it has much better convergence properties than Euler-Cauchy. For the purposes of modeling synthesis this means that higher eigenmodes of the system will stably converge. RKN requires the computation of several 'auxiliary' quantities, used to estimate higher-order terms of the series expansion.
Given a second-order problem of form y'' = f(t,y,y'') with initial values y(0) and y'(0), iterate the following procedure for t = n*h [0 < n < n_max] where Fs = 1/h is the simulation sampling rate: