Chapter 16: Problem 22
In molecular dynamics simulations using classical mechanics modeling, one is often faced with a large nonlinear ODE system of the form $$ M \mathbf{q}^{\prime \prime}=\mathbf{f}(\mathbf{q}), \text { where } \mathbf{f}(\mathbf{q})=-\nabla U(\mathbf{q}) $$ Here \(\mathbf{q}\) are generalized positions of atoms, \(M\) is a constant, diagonal, positive mass matrix, and \(U(\mathbf{q})\) is a scalar potential function. Also, \(\nabla U(\mathbf{q})=\left(\frac{\partial U}{\partial q_{1}}, \ldots, \frac{\partial U}{\partial q_{m}}\right)^{T} .\) A small (and somewhat nasty) instance of this is given by the Morse potential where \(\mathbf{q}=q(t)\) is scalar, \(U(q)=D(1-\) \(\left.e^{-S\left(q-q_{0}\right)}\right)^{2}\), and we use the constants \(D=90.5 \cdot 0.4814 \mathrm{e}-3, S=1.814, q_{0}=1.41\), and \(M=\) \(0.9953 .\) (a) Defining the velocities \(\mathbf{v}=\mathbf{q}^{\prime}\) and momenta \(\mathbf{p}=M \mathbf{v}\), the corresponding first-order \(\mathrm{ODE}\) system for \(\mathbf{q}\) and \(\mathbf{v}\) is given by $$ \begin{aligned} \mathbf{q}^{\prime} &=\mathbf{v} \\ M \mathbf{v}^{\prime} &=\mathbf{f}(\mathbf{q}) \end{aligned} $$ Show that the Hamiltonian function $$ H(\mathbf{q}, \mathbf{p})=\mathbf{p}^{T} M^{-1} \mathbf{p} / 2+U(\mathbf{q}) $$ is constant for all \(t>0\). (b) Use a library nonstiff RK code based on a \(4(5)\) embedded pair such as MATLAB's ode 45 to integrate this problem for the Morse potential on the interval \(0 \leq t \leq 2000\), starting from \(q(0)=1.4155, p(0)=\frac{1.545}{48.888} M .\) Using a tolerance tol \(=1 . \mathrm{e}-4\), the code should require a little more than 1000 times steps. Plot the obtained values for \(H(q(t), p(t))-H(q(0), p(0))\). Describe your observations.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.