[PD] elasticity algorithm