User Tools

Site Tools


exercises:2014_ethz_mmm:t_melting

Determination of the melting temperature of copper

In this exercise, we will use a slab geometry (without vacuum region, so without a surface) with full periodic boundary conditions to study the melting behavior of copper. As usual, connect to brutus and enter the following commands:

module load cp2k/trunk.2.5.13191
module load open_mpi/1.6.5       ! THIS IS NEEDED IF YOU WANT TO RUN AN MPI PARALLEL RUN --- NOT CONVENIENT IN THIS CASE
module load vmd
mkdir EX_5.1
cd EX_5.1
Copy into that directory the COMMENTED files that can be downloaded from the wiki: exercise_5.1.tar.gz

Now, run the first simulation, that should melt your system.

bsub cp2k.popt -i half.inp > half.out

It is a 3000 step molecular dynamics. During this time (about 20 minutes) you can complete the first assignments.

  • A1) Take a look at the file 111.xyz with vmd. Visualize it on the screen, and try to reproduce the figure similar to the one on the last slide of the lectures of today. Include the pbc box, create a representation with vdw, periodic images, rotate the sample, etc. Produce a snapshot and include the file in your assignment.
  • A2) Take a look at the half.inp file. How is the temperature controlled? Are all particles moving? Why? Which are the relevant sections for MD? Which kind of MD is it?
  • A3) Plot the -growing- half*ener file with gnuplot. How is temperature changing? Is there a conserved quantity?

At the end of the first dynamics (hint: tail -f half*ener) , you can examine the half-pos-1.xyz file by performing z-profiles using the script doprof .

./doprof half-pos-1.xyz 

The script calls the histogram script of last time, with a modification: a running window of configurations is averaged to produce a single frame. First, step 1-10, then step 10-20, and so on. At the end, the file movie.half-pos-1.xyz.gif, an animated gif is produced. If it works, you can run the command:

animate -loop 0 -delay 100 movie.half-pos-1.xyz.gif 

or download the file to your local machine and open in your internet browser. It will run the animation.

A4) Describe the profile you have obtained. What do you see?

Now, starting from the restart of this simulation, we equilibrate the system in nve, and we move all particles:

bsub cp2k.popt -i 1400nve.inp > 1400nve.out

The resulting configuration (check) will be an equilibrated system (which profile?).

Now we have a file called 1400nve-1.restart

THIS WILL BE USED AS RESTART FILE FOR ALL SIMULATIONS! DO NOT DELETE IT!

SIMULATIONS AT DIFFERENT TOTAL ENERGIES FOR DETERMINING THE MELTING TEMPERATURE

As explained in the class, we will run NPE (that is, constant energies but variable cell) simulations at energies which are above and below the supposed “melting energy” (energy corresponding to melting temperature).

THE TEMPERATURE WILL NOT BE CONTROLLED DURING THE RUN

For EACH temperature you have to:

  • A5) Copy the files TEMPnpe.init.inp and TEMPnpe.inp into 1300npe.init.inp and 1300npe.inp (for T=1300) and then edit them in the appropriate points: PROJECT name, INITIAL temperature and RESTART filename.
  • A6) Run the first simulation: bsub cp2k.popt -i 1300npe.init.inp > 1300npe.init.out ; This is a very short simulation to set the temperature using the old velocities. Why do you need it?
  • A7) Run the second simulation: bsub cp2k.popt -i 1300npe.inp > 1300npe.out
  • Observe the temperature and the z profile. Can you find the melting temperature? How do you choose temperatures?
Note that you can run several A5-A7 steps at the same time and in the same directory.

And finally…

A8) WHAT IS THE MELTING TEMPERATURE OF THIS POTENTIAL (APPROXIMATELY)?
exercises/2014_ethz_mmm/t_melting.txt · Last modified: 2020/08/21 10:15 by 127.0.0.1