Skip to main content
CenXiv.org
This website is in trial operation, support us!
We gratefully acknowledge support from all contributors.
Contribute
Donate
cenxiv logo > physics > arXiv:1811.04384

Help | Advanced Search

Physics > Computational Physics

arXiv:1811.04384 (physics)
[Submitted on 11 Nov 2018 ]

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

Title: 多自旋二维正方形伊辛模型蒙特卡罗模拟的并行化与实现,使用MPI和C++

Authors:Dariush Hassani, Shahnoosh Rafibakhsh
Abstract: 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 interprocess communications. This algorithm has been designed in a way that an appropriate load-balancing exists and it benefits a good scalability. 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.
Abstract: 在本文中,我们提出了一种用于蒙特卡洛模拟二维伊辛模型的并行算法,该算法能够在使用MPI的集群计算机上高效运行。我们使用C++编程语言来实现该算法。在我们的算法中,每个进程创建一个子晶格,并在每次蒙特卡洛迭代后计算能量。每个进程在工作期间与其两个相邻进程进行通信,并交换边界自旋变量。最后,通过映射-归约方法计算晶格的总能量与温度的关系。我们使用多自旋编码技术来减少进程间的通信。该算法的设计方式确保了适当的负载平衡,并具有良好的可扩展性。它已在等离子体物理研究中心的集群计算机上执行,该计算机包括9个节点,每个节点包含两个四核CPU。我们的结果表明,该算法对于大晶格和更多迭代更有效。
Subjects: Computational Physics (physics.comp-ph)
Cite as: arXiv:1811.04384 [physics.comp-ph]
  (or arXiv:1811.04384v1 [physics.comp-ph] for this version)
  https://doi.org/10.48550/arXiv.1811.04384
arXiv-issued DOI via DataCite
Journal reference: J Theor Appl Phys (2018) 12: 199
Related DOI: https://doi.org/10.1007/s40094-018-0301-4
DOI(s) linking to related resources

Submission history

From: Shahnoosh Rafibakhsh [view email]
[v1] Sun, 11 Nov 2018 10:16:15 UTC (551 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled
  • View Chinese PDF
  • View PDF
  • TeX Source
  • Other Formats
view license
Current browse context:
physics.comp-ph
< prev   |   next >
new | recent | 2018-11
Change to browse by:
physics

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar
a export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
IArxiv Recommender (What is IArxiv?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack

京ICP备2025123034号