Next: Parameter Choices
Up: Details
Previous: Linear Problem
The nonlinear system with a quadratic force term satisfies
![\begin{displaymath}
\frac{d^2x_i(t)}{dt^2} = x_{i+1}(t) + x_{i-1}(t) - 2x_i(t) +
\alpha\{[x_{i+1}(t) - x_i(t)]^2 - [x_i(t) - x_{i-1}(t)]^2\}
\end{displaymath}](img44.gif) |
(16) |
for
and at the ends we have
This problem can't be solved using normal modes. Instead we do a
direct numerical integration. To simplify notation and prepare for
numerical integration, we rewrite the system of equations in two
steps:
where
is the acceleration of the
th mass point and
is its velocity. Initial conditions must specify
and
.
Here we discuss the leapfrog method, but you may use any method of
numerical integration you like. With the leapfrog method we advance
the time by small steps
. The leapfrog idea works with estimated
velocities at the odd multiples of
:
,
,
,
etc and with estimated positions at the even multiples
,
,
etc. We leap the velocity over the position, using the acceleration
evaluated at that position. Then we leap the position over the
velocity. To get the process started we need the velocity estimate at
the first odd time
, so we do a half-step:
![\begin{displaymath}
v_i(0.5dt) = v_i(0) + 0.5 a_i[0,{\bf x}(0)] dt
\end{displaymath}](img61.gif) |
(21) |
Then we are ready to roll:
This process is repeated for many steps. At the end of the
integration process, we should bring the velocity up to the final
even time by taking a final half-step.
At regular intervals we want to measure the energy in the first few
normal modes. This is done using Eqs (15) and
(17), which require knowledge of the eigenvalues
and eigenenergies. To be precise, before measuring the energies one
should bring the velocity up to the even time by taking a half-step.
Then another half-step to resume integration.
Next: Parameter Choices
Up: Details
Previous: Linear Problem
Carleton DeTar
2005-11-07