Perl scripts for determining optimal lattice size on LAMMPS