As the radial clearance between disks and the casing of rotating machines is usually very narrow, excessive lateral vibration of accelerating rotors passing critical speeds can produce impacts between the disks and the housing. The computer modeling method is an important tool for investigating such events. In the developed procedure, the shaft is flexible and the disks are absolutely rigid. The hydrodynamic bearings and the impacts are implemented in the mathematical model by means of nonlinear force couplings. Most of the publications and computer codes from the field of rotor dynamics are referred only in the case when the rotor turns at a constant angular speed and in simple cases of disk-housing impacts. Moreover, if the disks turning at variable speed are investigated, the resulting form of the equations of motion derived by different authors slightly differs and the differences depend on the method used for their derivation. Therefore, particular emphasis in this article is given to the derivation of the motion equations of a continuous rotor turning with variable revolutions to explain the mentioned differences, to develop a computer algorithm enabling the investigation of cases when impacts between an arbitrary number of disks and the stationary part take place, and to analyze the mutual interaction between the impacts and the fluid film bearings. The Hertz theory is applied to determine the contact forces. Calculation of the hydrodynamic forces acting on the bearings is based on solving the Reynolds equation and taking cavitation into account. Lagrange equations of the second kind and the principle of virtual work are used to derive equations of motion. The Runge–Kutta method with an adaptive time step is applied for their solution. The applicability of the developed procedure was tested by computer simulations. The results show that it can be used for the modeling of complex rotor systems and that the short computational time enables carrying out calculations for a number of design and operation parameters.