ReMoDy Source Code Documentation
This is the documentation of the ReMoDy (Reactive Molecular Dynamics) program, which implements the model of reactive molecular dynamics based on the Collision Theory.
If you have the archive file, like remody.tbz (tar-bzipped) or remody.tgz (tar-gzipped) then files can be retrieved into a current directory as:
tar cvjf remody.tbz
tar cvzf remody.tgz
To compile the executable on Linux run make from the remody root directory, where the makefile was saved. Note that the subdirectories src/, run/, and obj/ should be also present.
The executables are saved in the run/ directory. It should also contain the example remody.xml and demo.xml files, as well as an initial empty input file empty.dat.gz. To run the program with an OpenGL window active (slow, good for debugging), one can use the command:
./view -f demo.xml empty.dat.gz
This will start the program with the initial parameters read from the demo.xml file and the initial data read from empty.dat.gz file. On startup the program will open the window. One can point at the window with the mouse and press 'f' key to show the frame and 'r' key to run the simulation. Alternatively, one can use 's' key to run iterations step-by-step. Other key functions are described by pressing the '?' key.
To run the program in a batch mode without OpenGL output, one can use this command:
./job -f demo.xml empty.dat.gz &
This will start the run. To change the parameters of the job, one should modify the input xml file accordingly (demo.xml, remody.xml, etc.).
Both view (OpenGL based) and job (batch mode) executables read the configuration xml file. By default the file will have the same name as the executable, for example: job.xml or view.xml. This can be overwritten with the '-f' option. Two example files remody.xml and demo.xml are provided with the distribution.
The format of the xml file is in most cases self-explanatory with explanations provided in the "title" fields and comments. The main sections include: RUN, CHEMISTRY, DOMAIN, and GUI.
The RUN section specifies the number of iterations, time steps, output intervals, and the maximum number of molecules to be used.
The CHEMISTRY section provides the list of species, and reactions between them.
The DOMAIN section provides the specifications of the boundary conditions and the surface reactions and species.
The GUI section specifies the parameters used in the OpenGL output window, such as colors, line width, etc.
The rest of this documentation provides the descriptioin of the structure and functionality of the classes, namespaces, and files of the code.
The code is provided under the GPL licence. Any suggestions/requests can be directed to the developers team at NIFT.
Generated on Mon May 5 10:02:10 2008 for ReMoDy by