Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Final Project: Simulating Ising Spin Relaxation with Glauber Dynamics

Background

In real magnetic systems, spins don’t instantly jump between configurations—they evolve in time, often driven by thermal fluctuations and local interactions. The Glauber dynamics provides a simple and physically motivated way to model how Ising spins flip over time.

This model introduces stochastic dynamics where spins flip with a temperature-dependent rate, allowing you to study:

  • Relaxation to equilibrium from non-equilibrium initial states,

  • Magnetization dynamics and response functions,

  • Time-dependent correlation functions.

Unlike Metropolis dynamics (which samples from the Boltzmann distribution), Glauber dynamics describes physical time evolution, making it perfect for exploring dynamical aspects of the Ising model.

Project Objective

Implement Glauber spin-flip dynamics for the 1D or 2D Ising model, and investigate:

  • Relaxation of magnetization from a non-equilibrium initial condition

  • Correlation functions and dynamical time scales

  • Temperature dependence of the relaxation time

Tasks

1. Glauber Spin-Flip Dynamics

For a spin si=±1 s_i = \pm 1 , the flip probability is given by:

w(sisi)=11+exp(βΔE)w(s_i \to -s_i) = \frac{1}{1 + \exp(\beta \Delta E)}

where ΔE \Delta E is the energy change if spin si s_i flips:

  • ΔE=2Jsii,jsj \Delta E = 2 J s_i \sum_{\langle i,j \rangle} s_j

Steps:

  1. Pick a random site i i

  2. Compute ΔE \Delta E

  3. Flip the spin with probability:

Pflip=11+eβΔEP_{\text{flip}} = \frac{1}{1 + e^{\beta \Delta E}}

Repeat this N N times per time unit (where N N = number of spins), to define one Monte Carlo sweep.

2. Set Up Simulations

  • Use a 1D or 2D lattice (start with 2D: L×L L \times L , e.g., L=32 L = 32 )

  • Start with fully magnetized state (e.g., all spins up)

  • Set parameters: J=1 J = 1 , various temperatures T=1.0 to 3.0 T = 1.0 \text{ to } 3.0

  • Simulate Glauber dynamics for many time steps (sweeps)

3. nalyze Relaxation

  • Track total magnetization M(t) M(t)

  • Observe how M(t) M(t) decays toward equilibrium

  • Fit M(t)et/τ M(t) \sim e^{-t/\tau} and extract relaxation time τ \tau

  • Plot τ \tau as a function of temperature

4. Compute Correlation Functions

Define the time autocorrelation function:

C(t)=si(0)si(t)C(t) = \langle s_i(0) s_i(t) \rangle
  • Choose a set of spins (or average over all)

  • Compute how quickly individual spins forget their initial state

Optional Challenges

  • Compare Glauber vs. Metropolis dynamics

  • Study critical slowing down near Tc T_c

  • Add a small magnetic field and study relaxation toward field-aligned equilibrium

  • Implement spatial correlation functions and structure factors

Learning Outcomes

  • Understand the physical meaning of spin dynamics and relaxation

  • Connect microscopic rules to macroscopic observables (e.g., magnetization decay)

  • Explore how temperature influences dynamics

  • Practice simulating stochastic processes with physically meaningful rates

Starter Parameters

ParameterValue
Lattice sizeL=32 L = 32
J J 1.0
T T 1.0 – 3.0
β \beta 1/T 1 / T
Time step1 sweep (N flips)