This project implements Monte Carlo simulations of the 2D Ising Model on a 40×40 lattice, exploring phase transitions and equilibrium properties using two different Monte Carlo dynamics: Metropolis and Glauber algorithms. The simulation investigates the temperature-dependent behavior of magnetization, energy, and magnetic susceptibility.
This section performs Monte Carlo simulations for a non-interacting Ising system under an external magnetic field.
- Lattice size: 40 × 40 spins
- External field: h = 1
- Coupling constant: J = 0 (no spin-spin interactions)
- Temperatures: T = {0.1, 1.0, 2.0, 2.27, 3.0, 4.0}
- Monte Carlo steps: 1000
- Measurement interval: Every 50 steps
The simulation runs both Metropolis and Glauber dynamics independently for each temperature.
- Initialize a random spin configuration
- Apply Monte Carlo algorithm for 1000 steps
- Record energy (u), magnetization (m), and susceptibility (χ) every 50 steps
- Average observables over the measurement period
- Magnetization m(T): Average magnetic moment per spin
- Energy u(T): Average energy per spin
- Susceptibility χ(T): Magnetic response to field changes
This section studies how the system relaxes from a fully ordered state to thermal equilibrium.
- Initial state: all spins +1
- Temperatures: T = {0.1, 2.27, 4.0}
- Monte Carlo steps: 100
- Realizations: 100
- Initialize all spins up
- Apply Monte Carlo dynamics
- Record magnetization per step
- Repeat 100 times
- Average results
ΔE = 2 s_i (J Σ_nn s_j + h)
- Lattice size: 40 × 40
- J = 1
- h = 0
- Temperatures: same as above
- Steps: 1000
- Clear phase transition around T ≈ 2.27
- Magnetization drops to zero above Tc
- Susceptibility peaks at Tc
main.py
parte1.py
parte2.py
model.py
dinamicas.py
observables.py
The project demonstrates: - Agreement between simulation and theory - Same equilibrium from different dynamics - Phase transition in ferromagnetic system