Experimental investigation of the scalability of parallel implementations of the molecular dynamics algorithm with the short-range Lennard–Jones potential using Python/MPI, C++/MPI, and MATLAB/parfor
The paper presents a comparative study of parallel implementations of a molecular dynamics simulation using Python, C++, and MATLAB. A classical molecular dynamics problem describing the motion of interacting particles in a three-dimensional domain is considered. The particle interactions are modeled using the Lennard–Jones potential, while the equations of motion are integrated by the Verlet algorithm. Identical computational algorithms and initial conditions are employed for all software implementations. Parallel computations in MATLAB are performed using the parfor construct, whereas the Python and C++ implementations are based on the Message Passing Interface (MPI) standard. Computational experiments are carried out on both a personal computer and a multiprocessor server. The dependence of execution time on the number of computational processes is investigated. A comparative analysis of performance, scalability, and parallel efficiency is conducted. The results show that MATLAB provides the lowest absolute execution time, while the C++ implementation demonstrates the best scalability with increasing numbers of processes. The obtained results may be useful for selecting software tools for the development of molecular dynamics applications.
Authors
- P. S. Glazunov (ORCID: https://orcid.org/0000-0002-9503-1461)
- D. N. Zabegaev (ORCID: https://orcid.org/0000-0001-9900-8712)
- V.A. Vdovin (ORCID: https://orcid.org/0000-0002-2486-751X)
Institutions
- Kotelnikov Institute of Radioengineering and Electronics of the Russian Academy of Sciences (RU)
Publication Details
- Journal
- Journal of Radio Electronics
- Published
- 2026-11-25
- DOI
- https://doi.org/10.30898/1684-1719.2026.10.10
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00