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 条
  • [21] 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
  • [22] QUANTUM MONTE-CARLO SIMULATION OF THE SPIN 1/2 XXZ MODEL ON THE SQUARE LATTICE
    OKABE, Y
    KIKUCHI, M
    JOURNAL OF THE PHYSICAL SOCIETY OF JAPAN, 1988, 57 (12) : 4351 - 4358
  • [23] DIFFUSION IN A 2D BOND PERCOLATION MODEL - A MONTE-CARLO SIMULATION
    BREY, JJ
    ORDONEZ, JG
    SANTOS, A
    PHYSICS LETTERS A, 1988, 127 (01) : 5 - 8
  • [24] Monte Carlo studies of critical phenomena in mixed spin-3/2 and spin-5/2 Ising model on square lattice
    De La Espriella Velez, N.
    Madera Yancez, J.
    Paez Mesa, M. S.
    REVISTA MEXICANA DE FISICA, 2014, 60 (06) : 419 - 424
  • [25] 2D Monte Carlo Simulation of Cocrystal Formation Using Patchy Particles
    Ranguelov, Bogdan
    Nanev, Christo
    CRYSTALS, 2022, 12 (10)
  • [26] A MONTE-CARLO STUDY ON THE SPIN DYNAMICS OF THE 2D+/-J ISING SPIN-GLASS MODEL
    HUKUSHIMA, K
    NEMOTO, K
    JOURNAL OF PHYSICS-CONDENSED MATTER, 1993, 5 (09) : 1389 - 1398
  • [27] MONTE-CARLO ESTIMATE OF THE DYNAMICAL CRITICAL EXPONENT OF THE 2D KINETIC ISING-MODEL
    WILLIAMS, JK
    JOURNAL OF PHYSICS A-MATHEMATICAL AND GENERAL, 1985, 18 (01): : 49 - 60
  • [28] Monte Carlo entropic sampling applied to Ising-like model for 2D and 3D systems
    Jureschi, C. M.
    Linares, J.
    Dahoo, P. R.
    Alayli, Y.
    5TH INTERNATIONAL CONFERENCE ON MATHEMATICAL MODELING IN PHYSICAL SCIENCES (IC-MSQUARE 2016), 2016, 738
  • [29] 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)
  • [30] Fricke and polymer gel 2D dosimetry validation using Monte Carlo simulation
    Vedelago, J.
    Chacon Obando, D.
    Malano, F.
    Conejeros, R.
    Figueroa, R.
    Garcia, D.
    Gonzalez, G.
    Romero, M.
    Santibanez, M.
    Strumia, M. C.
    Velasquez, J.
    Mattea, F.
    Valente, M.
    RADIATION MEASUREMENTS, 2016, 91 : 54 - 64