Creating oxygenated amorphous carbon

From TurboGAP
Revision as of 22:59, 1 November 2023 by Tigany Zarrouk (talk | contribs)
Jump to navigation Jump to search

This tutorial will focus on using Grand-Canonical Monte-Carlo (GCMC) to determine equilibrium structures and properties of oxygenated amorphous carbon using TurboGAP.

The structure of this tutorial as as follows:

  1. Create an amorphous carbon structure using molecular dynamics, via a melt-quench procedure.
  2. Perform a standard GCMC calculation to populate the structure with oxygen.
  3. Perform a hybrid Monte-Carlo/MD simulation, using the Hamiltonian MD approach, for an increased acceptance rate.

Introduction

What is TurboGAP?

TurboGAP is a code used to simulate Machine-Learned Potentials, specifically, Gaussian Approximation Potentials.

It has numerous selling points:

  1. It is fast.
  2. It can perform not just molecular statics (with/without box relaxation) and dynamics (NVT/NPT), it can perform Monte-Carlo simulations.
    • Full Grand-Canonical Monte Carlo (NVT) / (NPT) with multiple move types available:
    • Insertion / removal / displacement / swap / volume / hybrid MD / Hamiltonian.
  3. Prediction of an arbitrary number of local properties.
  4. ML Van der Waals (by prediction of local hirshfeld volumes) using Tkachenko-Scheffler
    • Heikki Muhli has developed full Many-Body Polarizability capability.
  5. (Sneak Peek!): we have added the capability to simulate numerous types of experimental data (ML XPS/XRD) and can allow them to influence simulation! (Talk to Tigany Zarrouk/look out for the papers when they come out on arXiv)!

Installing TurboGAP

Note: This step is not necessary if you are at the MLIP workshop. TurboGAP is installed in the path (on Mahti)

/projappl/project_2008666/turbogap

To install TurboGAP please run

git clone --recursive http://github.com/mcaroba/turbogap.git /your/turbogap/source/directory

Where /your/turbogap/source/directory is the directory where you're putting the TurboGAP source code. To build the TurboGAP binary and library, you need to select the options that best match your architecture, by editing this line in the Makefile with one of the names of the corresponding makefiles in turbogap/makefiles:

include makefiles/Makefile.Ubuntu_gfortran_mpi

Then just run make

make

Make the potential work in TurboGAP

You must convert potentials which are trained from libAtoms (the xml files) to *.gap files. It can be run by

python3 /path/turbogap/tools/quip_to_xml/make_gap_fit.py  your_potential.xml your_potential.gap {your_hirshfeld.xml}

Tutorial

Create Amorphous Carbon

Here, we perform molecular dynamics simulations to form amorphous carbon from graphite. To do this, we use a simple melt-quench procedure.

  1. We heat up the graphite to 9000K, thereby randomizing the structure.
  2. We quench to 1000K.
  3. We anneal the structure at 1000K, to allow the carbon bonds a chance to reform.
  4. Cool to 300K, which is the temperature we want to do our GCMC simulations.

1. Randomise

2. Quench

3. Anneal

4. Cool

Perform Standard GCMC

There are many options for GCMC steps which one can perform.

  1. Move: move any particle randomly, up to some maximum amount.

Using Hamiltonian MD, for hybrid type moves

NPT Monte-Carlo