This section assumes that RMG is already installed according to the directions in Section Linux Installation. Additionally, it is assumed that you have created a directory (either in your home directory or elsewhere) in which the initialization file condition.txt has been placed. In the example, we assume that we have created a directory /hexane_pyro, which contains the condition file hexane_pyro.txt.
Change the current working directory to the directory with the condition file:
$ cd /hexane_pyro/
Run the following Java command to launch the program (all one line):
$ java -Xmx500m -classpath $RMG/bin/RMG.jar RMG hexane_pyro.txt > output.log &
When RMG is started, it creates ten subdirectories in the directory containing the condition file: therfit, chemkin, fame, chemdis, fit3p, frankie, GATPFit, ODESolver, InChI and Restart.
In this example, all of the output from RMG is piped to a file output.log. The > output part of the command is optional but recommended. The Java option -Xmx500m is hardware specific. In this example, we assume that we can allot five hundred megabytes of memory for Java Virtual Machine running RMG; please consult a guide to Java for more information. On unix systems we recommend allocating less than half of your available virtual memory, because of the way the Java Virtual Machine forks processes.
To see the content of the output file as it is being generated, use the command: $ tail -f output.log.
To run RMG in Windows: Open a DOS-prompt, change the current working directory to the directory with the condition file, and run the following Java command to launch the program. In this example, the condition file is located in a (new) folder named conditionFiles:
cd "%rmg%"\conditionFiles
java -Xmx500m -jar "%rmg%"\bin\RMG.jar condition.txt
Note
The name of the input file does not have to be condition.txt
As of version 3.2, several batch scripts have been provided to make running RMG on Windows more straightforward. These can be found along with the example condition files in the examples directory. There are currently three such scripts:
The easiest way to use them is: