Recently, numerical research methods, as a kind of alternative to expensive and time-consuming experimental methods, have gained great popularity. Modern computer systems allow performing the analysis of scientific and technical problems in various fields of practical activity. This paper presents the results of a numerical simulation of electromagnetic field generation due to the motion of a solid charged entity in the ANSYS.CFX computing environment. This entity is a ball oscillating in a fluid of variable density. The model statement of the problem makes it possible to better understand the mechanism of electromagnetic field generation, which accompanies the motion of a solid in a conducting medium. The considered solid is modeled by a set of 2D sections forming its surface, while the grid moves along the surface of the solid in accordance with the solution of the dynamics equations of the latter. The solution of the equations of rectilinear motion is performed by discretization according to the implicit N