Jump to content

Third year simulation experiment/Calculating heat capacities using statistical physics

From ChemWiki

This is the fifth section of the third year simulation experiment. You can return to the previous page, Running simulations under specific conditions, or jump ahead to the next section, Structural properties and the radial distribution function.

Heat Capacity Calculation

Many quantities in statistical thermodynamics can be calculated by considering how far the system is able to fluctuate from its average equilibrium state. For example, if the temperature is held "constant", then we know that the total energy must be fluctuating. The magnitude of these fluctuations actually tell us about the heat capacity of the system, according to the equation

CV=ET=Var[E]kBT2=N2E2E2kBT2

Var[E] is the variance in E, N is the number of atoms, and it is a standard result from statistics that Var[X]=X2X2. The N2 is required because LAMMPS divides all energy output by the number of particles (so when you measure E, you are actually measuring E/N).

There are no files provided for this section — you must write your own! You can use the file npt.in from the previous section as a starting point, and remember that you can ask the demonstrator for help at any time. You will need to:

  1. Prepare a system at equilibrium by melting a crystal (the same procedure used in npt.in will suffice)
    • You will need to be able to vary the density of the system — define a density variable, and use this in the lattice command.
  2. Bring the system to the desired state in the NVT ensemble
    • The syntax is similar to the fix used to enforce the NpT ensemble. Any reference to npt should be replace by nvt, and there should be no "iso" keyword!
  3. Once your system is in the correct thermodynamic state, you must switch off the thermostat with the commands
    unfix nvt
    fix nve all nve
  4. Perform a production run of 100000 steps, gathering statistics to calculate the average temperature, and heat capacity. Do not worry about calculating the errors in these quantities.
  5. At the end of the run, print the average temperature and heat capacity to the log file.

TASK: As in the last section, you need to run simulations at ten phase points. In this section, we will be in density-temperature (ρ*,T*) phase space, rather than pressure-temperature phase space. The two densities required at 0.2 and 0.8, and the temperature range is 2.0,2.2,2.4,2.6,2.8. Plot CV/V as a function of temperature, where V is the volume of the simulation cell, for both of your densities (on the same graph). Is the trend the one you would expect? Attach an example of one of your input scripts to your report.

This is the fifth section of the third year simulation experiment. You can return to the previous page, Running simulations under specific conditions, or jump ahead to the next section, Structural properties and the radial distribution function.