The system proposed consists of a flagellum relaxing around a static carbon nanowire to mimics behavior of a natural flagellum moving with damped harmonic motion along a wire under van der Waals and electrostatic forces. This flagellum is composed of a C20 nanosphere with different sizes of his tail formed by hydrocarbons. The thermodynamic properties such as molar entropy variation, as well as molar heat dissipation, efficiency and speed were obtained to evaluate which system is most stable by using the variable temperature. This system has a number of carbon atoms ranging from 103-110, with a maximum of 300 ps for each simulation. We had simulated molar entropy variation, energies and efficiency changing with time and initial temperature. The results indicate that among the systems studied, the flagellum with five carbon atoms achieved greater stability and better results in this search.