Modify the ising program to compute the average energy of the system over all iterations. To do this, first add code to the initialise subroutine compute the initial energy of the lattice; then, whenever a dipole is flipped, change the energy variable by the appropriate amount. When computing the average energy, be sure to average over all iterations, not just those iterations in which a dipole is actually flipped (why?). Run the program for a 5 x 5 lattice for T values from 4 down to l in reasonably small intervals, then plot the average energy as a function of T. Also plot the heat capacity. Use at least 1000 iterations per dipole for each run, preferably more. If your computer is fast enough, repeat for a 10x 10 lattice and for a 20 x 20 lattice. Discuss the results. (Hint: Rather than starting over at each temperature with a random initial state, you can save time by starting with the final state generated at the previous, nearby temperature. For the larger lattices you may wish to save time by considering only a smaller temperature interval, perhaps from 3 down to 1.5.)

Short Answer

Expert verified

Hence, heat capacity with respect to temperature is given in the picture.

Step by step solution

01

Given information

Modify the ising program to compute the average energy of the system over all iterations. To do this, first add code to the initialise subroutine compute the initial energy of the lattice; then, whenever a dipole is flipped, change the energy variable by the appropriate amount. When computing the average energy, be sure to average over all iterations, not just those iterations in which a dipole is actually flipped. Run the program for a 5 x 5 lattice for T values from 4 down to l in reasonably small intervals, then plot the average energy as a function of T.

02

Explanation

Below is the code for determining the average energy:

03

Explanation

This graph depicts average energy (y-axis) as a function of temperature (x-axis):

And the heat capacity is:

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

In Problem 8.15 you manually computed the energy of a particular state of a 4 x 4 square lattice. Repeat that computation, but this time apply periodic boundary conditions.

Starting from the partition function, calculate the average energy of the one-dimensional Ising model, to verify equation 8.44. Sketch the average energy as a function of temperature.

Consider a gas of "hard spheres," which do not interact at all unless their separation distance is less than r0, in which case their interaction energy is infinite. Sketch the Mayer f-function for this gas, and compute the second virial coefficient. Discuss the result briefly.

Use the cluster expansion to write the total energy of a monatomic nonideal gas in terms of a sum of diagrams. Keeping only the first diagram, show that the energy is approximatelyU32NkT+N2V·2π0r2u(r)e-βu(r)drUse a computer to evaluate this integral numerically, as a function of T, for the Lennard-Jones potential. Plot the temperature-dependent part of the correction term, and explain the shape of the graph physically. Discuss the correction to the heat capacity at constant volume, and compute this correction numerically for argon at room temperature and atmospheric pressure.

Problem 8.10. Use a computer to calculate and plot the second virial coefficient for a gas of molecules interacting via the Lennard-Jones potential, for values of kT/u0 ranging from 1to 7. On the same graph, plot the data for nitrogen given in Problem 1.17, choosing the parameters r0 and u0so as to obtain a good fit.

See all solutions

Recommended explanations on Physics Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free