Question
n the Molecular Dynamics program as the below code, replace the velocity Verlet algorithm by the so-called Euler algorithm in which the positions and velocities
n the Molecular Dynamics program as the below code, replace the velocity Verlet algorithm by the so-called Euler algorithm in which the positions and velocities are updated according to the following rule:
Note that the difference between these algorithms seems quite small. Then, run two simulations, one using the original program and the other using the Euler algorithm program. Compare the dependence of the systemss total energy on time, as calculated by these two programs. Which algorithm would you rather use in your reserach?
For each simulation you should plot the dependence of the kinetic, potential and total energy (all per particle) on time. You should also turn in the relevant portion of the code, i.e. the main loop that updates the positions, velocities and forces.
(6t)2 (6t)2Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started