Programming a 2D Ising Model/Determining the heat capacity
This is the seventh section of the Ising model experiment. You can return to the previous page, The effect of system size, or jump ahead to the next section, Locating the Curie temperature.
Calculating the heat capacity
As we have seen, increasing the temperature above induces a phase transition — the magnetisation of the system rapidly drops, but it can be hard to use this information to pinpoint the Curie temperature itself. As well as demonstrating the closed form solution to the partition function that we mentioned in the introduction, Lars Onsager also demonstrated that the heat capacity of the 2D Ising model should become very strongly peaked at the phase transition temperature (in fact, when exactly, diverges).
TASK 7a: By definition, . From this, show that , where is the variance in .
Using this relation, and the data that you generated in the previous sections, you can now determine the heat capacity of your lattice as a function of temperature and system size. in a similar way, we can also define another quantity called the magnetic susceptibility, , which depends on the average properties of the order parameter of the system:
which will behave in a similar way to the heat capacity. Here is the inverse of the thermodynamic temperature, often used in statistical thermodynamics.
TASK 7b: Write a Python script to make a plot showing the heat capacity and susceptibility versus temperature for each of your lattice sizes from the previous section. You may need to do some research to recall the connection between the variance of a variable, , the mean of its square , and its squared mean . You may find that the data around the peak is very noisy — this is normal, and is a result of being in the critical region. As before, use the plot controls to save a SVG or PNG image of your plot and attach this to the report.
This is the seventh section of the Ising model experiment. You can return to the previous page, The effect of system size, or jump ahead to the next section, Locating the Curie temperature.