B1151 of 55
0 XP
  1. Hook
  2. Predict
  3. Name it
  4. Check
  5. Explain

B11 · Lesson 51 · Thermal lab

The Debye function, carrier freeze-out, and an Ising magnet at its Curie point

Most of this course's results came from formulas with a limit taken: low temperature, high temperature, nondegenerate, mean field. A computer removes the limits. In this lab you'll integrate the Debye heat capacity at every temperature, solve silicon's charge-neutrality equation exactly, freeze-out included, by bisection on the Fermi level, and simulate a ferromagnet spin by spin with the Metropolis algorithm, which samples microstates with Boltzmann probabilities. The simulation gets what the mean-field model of lesson 33 couldn't: the right Curie temperature for a two-dimensional magnet, checked against Onsager's exact solution.

Predict

A Metropolis simulation flips a spin if that lowers the energy, and otherwise flips it with probability e−ΔE/kT. Why does that produce the Boltzmann distribution?

Name it

What you'll write

  1. debye_C(T, theta, n=2001): the Debye molar heat capacity 9R(TΘ)3∫0Θ/Tx4ex(ex−1)2dx by Simpson's rule on n points (start just above 0 to avoid 0/0).
  2. carriers(T, ND, Ed=0.045, Eg=1.12, Nc300=3.2e19, Nv300=1.8e19): return (n, EF) for silicon with donors ND at binding energy Ed, solving neutrality ND++p=n exactly by bisecting on EF (measured from Ec, so negative in the gap). Use n=NceEF/kT, p=Nve(−Eg−EF)/kT, ND+=ND1+2e(EF+Ed)/kT, with Nc,Nv∝T3/2.
  3. ising(L, T, sweeps, seed=1): a 2D Ising model on an L × L periodic lattice (J = k = 1), starting all up, updated by Metropolis; return the array of |magnetization per spin| after each sweep. Updating the two checkerboard sublattices alternately, with NumPy, keeps it fast.

What to expect

  • Debye: C/3R = 0.9517 at T = Θ, approaching 1 above and the T3 law below.
  • Silicon, ND=1016: n = 0.996 × 10¹⁶ at 300 K, 5.5 × 10¹⁴ at 50 K (freeze-out), above 1016 by 700 K (intrinsic).
  • Ising: Onsager's exact result Tc=2ln⁡(1+2) = 2.269, and below it m=[1−sinh−4⁡(2/T)]1/8. Mean field (lesson 33) would put Tc at 4.

Worked example

How many terms does Simpson's rule need for the Debye integral to be good to 10⁻⁶?

Show the solution
  1. How the error scales. The integrand is smooth, so Simpson's error falls as h4.
  2. A fine grid. Across [0, 50] (T = Θ/50) with 2001 points, h = 0.025 and the error is far below 10⁻⁶ of the result.
  3. A coarse grid. Even 201 points give about five digits.
  4. The point at zero. The only care needed is at x = 0, where the integrand is 0/0 but tends smoothly to 0; starting at 10⁻⁹ avoids it.

Answer 2001 points (h = 0.025) are far more than enough for 10⁻⁶, and even 201 give about five digits.

Worked example

Why does the Ising simulation start with all spins up?

Show the solution
  1. Below Tc. The two magnetized states, all up and all down, are separated by a free-energy barrier, and a small lattice started at random can get stuck in long-lived domains.
  2. Start ordered. Starting ordered and discarding the first couple of hundred sweeps as equilibration gives a clean estimate.
  3. Above Tc. The start doesn't matter: the order melts within a few sweeps.

Answer an ordered start avoids long-lived domains below Tc, so after a couple of hundred equilibration sweeps the estimate is clean; above Tc the start doesn't matter.

Check

Step 1. Write debye_C(T, theta, n=2001).

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Step 2. Write carriers(T, ND, ...) returning (n, EF).

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Step 3. Write ising(L, T, sweeps, seed=1) returning |m| after each sweep.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

What's Onsager's exact magnetization of the 2D Ising model at T = 1.5 (in units of J/k)?

Check

In a Metropolis step, flipping a spin would raise the energy by 4 × 1 J. At T = 1 J/k, with what probability is it accepted?

Check

How many single-spin updates does a 500-sweep Metropolis run on a 16 × 16 lattice perform?

Explain why

Why does the mean-field model predict a Curie temperature of 4 for the 2D Ising model when the true value is 2.27?

Practice

Keep practicing

6 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.