A generalization of Cunningham's extension of Stoke's law for the force on a sphere