Parallelization and implementation of multi-spin Monte Carlo simulation of 2D square Ising model using MPI and C plus

被引:2
|
作者
Hassani, Dariush [1 ]
Rafibakhsh, Shahnoosh [1 ]
机构
[1] Islamic Azad Univ, Sci & Res Branch, Dept Phys, Tehran, Iran
关键词
Ising model; Monte Carlo method; Multi-spin coding; MPI;
D O I
10.1007/s40094-018-0301-4
中图分类号
O59 [应用物理学];
学科分类号
摘要
In this paper, we present a parallel algorithm for Monte Carlo simulation of the 2D Ising Model to perform efficiently on a cluster computer using MPI. We use C++ programming language to implement the algorithm. In our algorithm, every process creates a sub-lattice and the energy is calculated after each Monte Carlo iteration. Each process communicates with its two neighbor processes during the job, and they exchange the boundary spin variables. Finally, the total energy of lattice is calculated by map-reduce method versus the temperature. We use multi-spin coding technique to reduce the inter-process communications. This algorithm has been designed in a way that an appropriate load-balancing and good scalability exist. It has been executed on the cluster computer of Plasma Physics Research Center which includes 9 nodes and each node consists of two quad-core CPUs. Our results show that this algorithm is more efficient for large lattices and more iterations.
引用
收藏
页码:199 / 208
页数:10
相关论文
共 11 条
  • [1] Multi-GPU accelerated multi-spin Monte Carlo simulations of the 2D Ising model
    Block, Benjamin
    Virnau, Peter
    Preis, Tobias
    COMPUTER PHYSICS COMMUNICATIONS, 2010, 181 (09) : 1549 - 1556
  • [2] GPU accelerated Monte Carlo simulation of the 2D and 3D Ising model
    Preis, Tobias
    Virnau, Peter
    Paul, Wolfgang
    Schneider, Johannes J.
    JOURNAL OF COMPUTATIONAL PHYSICS, 2009, 228 (12) : 4468 - 4477
  • [3] Mixed spin-3/2 and spin-2 Ising model on diamond-like decorated square: A Monte Carlo simulation
    Masrour, R.
    Jabar, A.
    PHYSICA A-STATISTICAL MECHANICS AND ITS APPLICATIONS, 2020, 539
  • [4] Efficient algorithms for parallelizing Monte Carlo simulations for 2D Ising spin models
    Eunice E. Santos
    Jeffrey M. Rickman
    Gayathri Muthukrishnan
    Shuangtong Feng
    The Journal of Supercomputing, 2008, 44 : 274 - 290
  • [5] Efficient algorithms for parallelizing Monte Carlo simulations for 2D Ising spin models
    Santos, Eunice E.
    Rickman, Jeffrey M.
    Muthukrishnan, Gayathri
    Feng, Shuangtong
    JOURNAL OF SUPERCOMPUTING, 2008, 44 (03) : 274 - 290
  • [6] Monte Carlo methods in sequential and parallel computing of 2D and 3D Ising model
    Diaconu, M
    Puscasu, R
    Stancu, A
    JOURNAL OF OPTOELECTRONICS AND ADVANCED MATERIALS, 2003, 5 (04): : 971 - 976
  • [7] Multi-spin coding of the Monte Carlo simulation of the three-state random potts model and the block-spin transformation
    Kikuchi, M
    Okabe, Y
    INTERNATIONAL JOURNAL OF MODERN PHYSICS C-PHYSICS AND COMPUTERS, 1995, 6 (06): : 747 - 763
  • [8] Multi-Step in 3D Spin Crossover Nanoparticles Simulated by an Ising Model Using Entropic Sampling Monte Carlo Technique
    Jureschi, Catalin
    Linares, Jorge
    Rotaru, Aurelian
    Garcia, Yann
    MAGNETOCHEMISTRY, 2016, 2 (01)
  • [9] Influence of a new long-range interaction on the magnetic properties of a 2D Ising layered model by using Monte Carlo method
    Li, Bo-chen
    Wang, Wei
    CHINESE JOURNAL OF PHYSICS, 2024, 87 : 525 - 539
  • [10] Magnetic and thermodynamic properties of mixed spin-3/2 and spin-3 Ising ferrimagnets on a 2D triangular lattice: Monte Carlo study
    Fouejio, D.
    Noudem, P.
    Zekeng, S. S.
    CHINESE JOURNAL OF PHYSICS, 2024, 92 : 857 - 876