Two major mechanisms have been proposed to drive the solar eruptions: the ideal magnetohydrodynamic instability and the resistive magnetic reconnection. Due to the close coupling and synchronicity of the two mechanisms, it is difficult to identify their respective contribution to solar eruptions, especially to the critical rapid acceleration phase. Here, to shed light on this problem, we conduct a data-driven numerical simulation for the flux rope eruption on 2011 August 4, and quantify the contributions of the upward exhaust of the magnetic reconnection along the flaring current sheet and the work done by the large-scale Lorentz force acting on the flux rope. Major simulation results of the eruption, such as the macroscopic morphology, early kinematics of the flux rope and flare ribbons, match well with the observations. We estimate the energy converted from the magnetic slingshot above the current sheet and the large-scale Lorentz force exerting on the flux rope during the rapid acceleration phase, and find that (1) the work done by the large-scale Lorentz force is about 4.6 times higher than the former, and (2) decreased strapping force generated by the overlying field facilitates the eruption. These results indicate that the large-scale Lorentz force plays a dominant role in the rapid acceleration phase for this eruption.