next up previous
Next: About this document Up: No Title Previous: Boundaries

Graphics

Mr. Horan has written a java application to visualize the results of your code. You can download it from the webpage. Note, however, that the application requires a certain output file format in order to work correctly. The format is given below as an example output file. It is important to note that any text in the output file that is not part of the data must be on a separate line and that line must start with // in order to signify that it is a "comment" line.

//begin file

//# particles
3
//length of box
1.0
//particle radius
0.002

//time 1
0.00000
//ident Pos     Vel
1       0.3     0.02
2       0.4     0.00
3       0.95    -0.34

//time 2
0.15000
//ident Pos     Vel
1       0.3     0.02
2       0.4     0.00
3       0.95    -0.34

//end of file
A file can specify the positions and velocities of the particles for any number of times. The program assumes that the velocities are constant between time frames and will interpolate the positions between the given times.

To use the application, you need to enter

java MDWindow < outfile



E. Bruce Pitman
Tue Jun 29 18:25:12 EDT 1999