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 条
  • [31] MONTE-CARLO STUDY ON THE 2D +/- J-ISING SPIN-GLASS - DYNAMICAL BEHAVIOR OF INDIVIDUAL SPINS AND SPIN CLUSTERS
    NEMOTO, K
    MATSUKAWA, H
    TAKAYAMA, H
    JOURNAL OF THE PHYSICAL SOCIETY OF JAPAN, 1982, 51 (10) : 3126 - 3135
  • [32] 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
  • [33] Magnetic and magnetocaloric properties of a 2D core-shell Ising system using Monte Carlo calculations
    El Ghazrani, A.
    Chakir, M.
    Harir, S.
    Drissi, L. B.
    SOLID STATE COMMUNICATIONS, 2024, 390
  • [34] Generating 2D Non-equiaxed Initial Microstructure for Monte Carlo Simulation Using Modified Voronoi Model
    Liu, Yunteng
    Zhou, Jixue
    Tian, Changwen
    Zhan, Chengwei
    Li, Weihong
    Guan, Xiaojun
    MATERIALS PERFORMANCE, MODELING AND SIMULATION, 2013, 749 : 540 - +
  • [35] 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
  • [36] Monte Carlo simulations for 1-and 2D spin crossover compounds using the atom-phonon coupling model
    Rotaru, Aurelian
    Carmona, Adrian
    Combaud, Flavien
    Linares, Jorge
    Stancu, Alexandru
    Nasser, Jamil
    POLYHEDRON, 2009, 28 (9-10) : 1684 - 1687
  • [37] MONTE-CARLO SIMULATION OF QUENCHED 2-DIMENSIONAL SINGLE SPIN-FLIP KINETIC ISING-MODEL
    KAWABATA, C
    KAWASAKI, K
    PHYSICS LETTERS A, 1978, 65 (02) : 137 - 139
  • [38] Magnetic properties and phase diagrams of mixed spin-1 and spin-1/2 Ising model on a checkerboard square structure: A Monte Carlo study
    Gharaibeh, Maen
    Badarneh, Mohammad H. A.
    Alqaiem, Samah
    Obeidat, Abdalla
    Qaseer, Mohammad-Khair
    JOURNAL OF MAGNETISM AND MAGNETIC MATERIALS, 2021, 540
  • [39] THE CRITICAL 2D ISING-MODEL IN A MAGNETIC-FIELD - A MONTE-CARLO STUDY USING A SWENDSEN-WANG ALGORITHM
    LAUWERS, PG
    RITTENBERG, V
    PHYSICS LETTERS B, 1989, 233 (1-2) : 197 - 200
  • [40] The simulation of 2D spin-1 Ising model with positive biquadratic interaction on a cellular automaton
    Kutlu, B
    INTERNATIONAL JOURNAL OF MODERN PHYSICS C, 2003, 14 (10): : 1305 - 1320