The following files are files I created in preparation for the midterm for CS101 and also for practice in programming. I created a model of two Argon atoms interacting in three dimensions; the source files are listed below. Feel free to explore the rest of the directory; any of the source can be copied with suitable recognition of the work. Unfortunately, there is only a means of plotting the energies, force and radius presently. I'm working on a file formatter that would be compatable with Visual Molecular Dynamics.
Some preliminary plots of the revised model are shown below.
The above image is a plot with two y-axes that shows the magnitude of the force and radius between the two atoms, with the progression of the timesteps.
The above image is a plot of the energies, with an included legend, in 3 different colors. It shows that the energy in the model is close to conservation.
Back to the homepage.
The entire collection of my Matlab files