Make save function for ParticleModel