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
相关论文
共 50 条
  • [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] Unphysical frozen states in Monte Carlo simulation of 2D Ising model
    Papa, ARR
    INTERNATIONAL JOURNAL OF MODERN PHYSICS C, 1998, 9 (06): : 881 - 886
  • [3] Monte Carlo Simulation of 2D Ising Spin Glass with Power Law Decaying Interactions
    Berry, Habte Dulla
    Singh, Pooran
    JOURNAL OF SUPERCONDUCTIVITY AND NOVEL MAGNETISM, 2013, 26 (04) : 991 - 994
  • [4] Monte Carlo Simulation of 2D Ising Spin Glass with Power Law Decaying Interactions
    Habte Dulla Berry
    Pooran Singh
    Journal of Superconductivity and Novel Magnetism, 2013, 26 : 991 - 994
  • [5] 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
  • [6] A Monte Carlo simulation of steady state of 2D Ising model in temperature field
    Chen, Zeshun
    Xiao, Changming
    Yao, Zhen
    MODERN PHYSICS LETTERS B, 2016, 30 (04):
  • [7] MONTE-CARLO SIMULATION OF VERY LARGE DILUTE RANDOM-FIELD ISING-MODELS USING MULTI-SPIN CODING
    CHOWDHURY, D
    GAWLINSKI, ET
    GUNTON, JD
    COMPUTER PHYSICS COMMUNICATIONS, 1987, 43 (03) : 329 - 337
  • [8] Mixed spin-1/2 and 3/2 Ising model with multi-spin interactions on a decorated square lattice
    Stubna, V.
    Jascur, M.
    JOURNAL OF MAGNETISM AND MAGNETIC MATERIALS, 2017, 442 : 364 - 370
  • [9] Monte Carlo Simulation of an Antiferromagnetic Spin-1/2 Ising System on the Square Lattice
    Sudhagar, S.
    Baskaran, N.
    SOLID STATE PHYSICS, PTS 1 AND 2, 2012, 1447 : 121 - 122
  • [10] 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