CRYSTAL_COORDINATES is a FORTRAN90 program which generates the coordinates of a set of 4 * NX * NY * NZ points in a rectangular block of NX * NY * NZ cells, with face-centered cubic symmetry.
The user is allowed to specify the width of a cell, and the maximum magnitude of a random displacement of each point.
The coordinate data is written to a file that can be used for visualization, or more likely as the initial condition for the coordinates of molecules in a molecular dynamics simulation.
If the initial line of the output file is removed, the remainder becomes an "XYZ" file which can be plotted by several programs.
Inputs:
The output file has a single initial line of the form
% F n x-width y-width z-widthwhere
CRYSTAL_COORDINATES is available in a FORTRAN90 version.
MD1, a FORTRAN90 program which is a molecular dynamics simulation program.
MD2, a FORTRAN90 program which is a molecular dynamics simulation program.
MD3, a FORTRAN90 program which is a molecular dynamics simulation program.
MD3GLUE, a FORTRAN90 program which is a molecular dynamics simulation program.
MDBNCH, a FORTRAN77 program which carries out a molecular dynamics benchmark.
XYZ_DISPLAY, a MATLAB program which reads XYZ information defining points in 3D, and displays an image in the MATLAB graphics window.
XYZ_DISPLAY_OPENGL, a C++ program which reads XYZ information defining points in 3D, and displays an image using OpenGL.
You can go up one level to the FORTRAN90 source codes.