Next:
Introduction
Up:
Monte Carlo Simulation
Previous:
The Metropolis Monte Carlo
Case Study 1: The 2D Ising Magnet
Subsections
Introduction
A C Code for the 2D Ising Magnet
Headers
The Change in Energy upon a Proposed Spin Flip
Initialize all Spin Values
Main Program: Variable Declarations
Main Program: Argument Parsing
Main Program: Initial Outputs
Main Program: Initialization
Main Program: Monte Carlo Loop
Main Program: Final Outputs and Program Termination
Example: Average Energy and Magnetization vs. Temperature
Suggested Exercises
cfa22@drexel.edu