This is a BASH script that uses the following variables: LMPSEXEC: Name of lammps executable N: Number of energy calculations to run LATLO: Initial lattice constant for simulation STRIDE: Increment to lattice constant for each iteration OUTFILE: Output file of lattice constant vs. total energy This script uses the above variables to iteratively run N lammps energy calculations from a lattice constant LATLO to LATLO + STRIDE*N as a maximum, while incrementing lattice constant by STRIDE for every calculation. The lattice constant and energy are saved to the file OUTFILE in an X-Y fashion for plotting to see the minimum energy lattice constant. run using the following: ./example_07_loop.bash or using: bash example_07_loop.bash