Physical modeling and deformation simulation of flexible cable under the plane constraint