Third year simulation experiment/Calculating heat capacities using statistical physics
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
is the variance in , is the number of atoms, and it is a standard result from statistics that . The is required because LAMMPS divides all energy output by the number of particles (so when you measure , you are actually measuring ).
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:
- 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.
- 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!
- Once your system is in the correct thermodynamic state, you must switch off the thermostat with the commands
unfix nvt
fix nve all nve
- 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.
- 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 phase space, rather than pressure-temperature phase space. The two densities required at and , and the temperature range is . Plot as a function of temperature, where 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.