Code for Dr. Scott's research involving Smoluchowski dynamics