- #1
mielgosez
- 2
- 0
I'm building a code for Molecular dynamics (in C).
I'm employing Lennard Jones Potential, periodic border conditions and I integrate Newton's equations by making use of Verlet Integration.
When I plot Time vs Energy graph, what I get isn't a constant! but when border condition are remove, then energy is conserved! What is happening?
I'm employing Lennard Jones Potential, periodic border conditions and I integrate Newton's equations by making use of Verlet Integration.
When I plot Time vs Energy graph, what I get isn't a constant! but when border condition are remove, then energy is conserved! What is happening?
I appreciate any suggestion, thanks
The code is in the following link (border condition are in red):http://es.scribd.com/doc/62027867/Molecular-Dynamics