chap_1: add varying acceleration for an array of particles