Micro and Nano Mechanics Group
(Difference between revisions)

Revision as of 15:45, 1 August 2008

Making a simulation using MD++ scripts

To make a simulation movie, follow these three major steps:

Step 1

Make cfg files using the scipt file.  To do so,
add this command to your script file before your iterations.  This command will create the cfg files.
 savecfg = 1 savecfgfreq = 50 intercfgfile = inter.cfg 
Next, run the script file.
Example:  ...MD++$ bin/tersoff_gpp scripts/myscripts/buckyball.script
Example:  ...MD++$ls runs/buckyball/  (Check that the cfg files were created.)
Example:  ...MD++$ rm runs/buckyball/inter00* (to remove your cfg files type this command)

Step 2

Select make the necessary changes to your initial frame and they run the simulation.
Example:  ...MD++$ Tools/AtomEye/A.i686 runs/buckyball/inter0001.cfg &
Now, press the "y" key to start creating the jpg files.

Step 3

Get this compression file and place it in the MD++ directory: [vidcompress]
Example:  ...MD++$ chmod 755 vidcompress
Run the vidcompress execution file.
Example:  ...MD++$ ./vidcompress

Run Animation

Lastly, run the movie.
Example:  ...MD++$ mplayer Nameofanimation.mpg

References

1. MD++
2. Atom Eye