Liquid Si - MLFF: Difference between revisions
No edit summary |
|||
Line 134: | Line 134: | ||
For that the following steps have to be done: | For that the following steps have to be done: | ||
*Create a new directory ''Si_ATOM'' by typing ''mkdir Si_ATOM'' and go to that directory ''cd Si_ATOM''. | *Create a new directory ''Si_ATOM'' by typing ''mkdir Si_ATOM'' and go to that directory ''cd Si_ATOM''. | ||
* | *Create an {{TAG|INCAR}} file with the following parameters: | ||
#Basic parameters | |||
{{TAG|ISMEAR}} = 0 | |||
{{TAG|SIGMA}} = 0.1 | |||
{{TAG|LREAL}} = Auto | |||
{{TAG|PREC}} = FAST | |||
{{TAG|ALGO}} = FAST | |||
{{TAG|ISYM}} = 0 | |||
{{TAG|NELM}} = 100 | |||
{{TAG|EDIFF}} = 1E-4 | |||
{{TAG|LWAVE}} = .FALSE. | |||
{{TAG|LCHARG}} = .FALSE. | |||
{{TAG|ISPIN}} = 2 | |||
*Create a {{TAG|POSCAR}} file with a single atom in a large enough box (the box should be orthorombic to have enough degrees of freedom for electronic relaxation): | |||
Si atom | |||
1.00090000000000 | |||
12.00000000 0.00000000 0.00000000 | |||
0.00000000 12.01000000 0.00000000 | |||
0.00000000 0.00000000 12.02000000 | |||
Si | |||
1 | |||
Direct | |||
0.00000000 0.00000000 0.00000000 | |||
*Create a {{TAG|KPOINTS}} file with a single k point (or copy the one delivered with this example): | |||
test | |||
0 0 0 | |||
Gamma | |||
1 1 1 | |||
0 0 0 | |||
*Copy the {{TAG|POTCAR}} from the previous directory to this directory (''cp ../POTCAR''). | |||
*Run the calculation and look at the total energy in the {{TAG|OUTCAR}} file (or {{TAG|OSZICAR}}). That energy will be used for the | |||
== Download == | == Download == |
Revision as of 17:41, 23 July 2019
Task
Generating a machine learning force field for liquid Si.
Input
POSCAR
- In this example we start from a 64 atom super cell of diamond-fcc Si (the same as in this example: Liquid Si - Standard MD:
Si cubic diamond 2x2x2 super cell of conventional cell 5.43090000000000 2.00000000 0.00000000 0.00000000 0.00000000 2.00000000 0.00000000 0.00000000 0.00000000 2.00000000 Si 64 Direct 0.00000000 0.00000000 0.00000000 0.50000000 0.00000000 0.00000000 0.00000000 0.50000000 0.00000000 0.50000000 0.50000000 0.00000000 0.00000000 0.00000000 0.50000000 0.50000000 0.00000000 0.50000000 0.00000000 0.50000000 0.50000000 0.50000000 0.50000000 0.50000000 0.37500000 0.12500000 0.37500000 0.87500000 0.12500000 0.37500000 0.37500000 0.62500000 0.37500000 0.87500000 0.62500000 0.37500000 0.37500000 0.12500000 0.87500000 0.87500000 0.12500000 0.87500000 0.37500000 0.62500000 0.87500000 0.87500000 0.62500000 0.87500000 0.00000000 0.25000000 0.25000000 0.50000000 0.25000000 0.25000000 0.00000000 0.75000000 0.25000000 0.50000000 0.75000000 0.25000000 0.00000000 0.25000000 0.75000000 0.50000000 0.25000000 0.75000000 0.00000000 0.75000000 0.75000000 0.50000000 0.75000000 0.75000000 0.37500000 0.37500000 0.12500000 0.87500000 0.37500000 0.12500000 0.37500000 0.87500000 0.12500000 0.87500000 0.87500000 0.12500000 0.37500000 0.37500000 0.62500000 0.87500000 0.37500000 0.62500000 0.37500000 0.87500000 0.62500000 0.87500000 0.87500000 0.62500000 0.25000000 0.00000000 0.25000000 0.75000000 0.00000000 0.25000000 0.25000000 0.50000000 0.25000000 0.75000000 0.50000000 0.25000000 0.25000000 0.00000000 0.75000000 0.75000000 0.00000000 0.75000000 0.25000000 0.50000000 0.75000000 0.75000000 0.50000000 0.75000000 0.12500000 0.12500000 0.12500000 0.62500000 0.12500000 0.12500000 0.12500000 0.62500000 0.12500000 0.62500000 0.62500000 0.12500000 0.12500000 0.12500000 0.62500000 0.62500000 0.12500000 0.62500000 0.12500000 0.62500000 0.62500000 0.62500000 0.62500000 0.62500000 0.25000000 0.25000000 0.00000000 0.75000000 0.25000000 0.00000000 0.25000000 0.75000000 0.00000000 0.75000000 0.75000000 0.00000000 0.25000000 0.25000000 0.50000000 0.75000000 0.25000000 0.50000000 0.25000000 0.75000000 0.50000000 0.75000000 0.75000000 0.50000000 0.12500000 0.37500000 0.37500000 0.62500000 0.37500000 0.37500000 0.12500000 0.87500000 0.37500000 0.62500000 0.87500000 0.37500000 0.12500000 0.37500000 0.87500000 0.62500000 0.37500000 0.87500000 0.12500000 0.87500000 0.87500000 0.62500000 0.87500000 0.87500000
KPOINTS
- We will start with a single k point in this example:
K-Points 0 Gamma 1 1 1 0 0 0
INCAR
#Basic parameters ISMEAR = 0 SIGMA = 0.1 LREAL = Auto PREC = FAST ALGO = FAST ISYM = -1 NELM = 100 EDIFF = 1E-4 LWAVE = .FALSE. LCHARG = .FALSE. #Parallelization of ab initio calculations NCORE = 2 #MD IBRION = 0 MDALGO = 2 ISIF = 2 SMASS = 1.0 TEBEG = 2000 NSW = 10000 POTIM = 3.0 #Machine learning paramters ML_FF_LMLFF = .TRUE. ML_FF_ISTART = 0 ML_FF_NWRITE = 2 ML_FF_EATOM = -.70128086E+00
- The user should be familiar at this step how to run a basic molecular dynamics calculations. If not please go through the example here: Liquid Si - Standard MD.
- Machine learning is switched on by setting the following tag: ML_FF_LMLFF=.TRUE..
- By setting the tag ML_FF_ISTART to zero learning from scratch is selected.
- The flag ML_FF_NWRITE=2 selects a more verbose output where the error on energies, forces and stress are output to the ML_LOGFILE file. This setting is very handy to check the accuracy of the force field.
- The tag ML_FF_EATOM=-.70128086E+00 sets the atomic reference energy for each species. How to obtain that energy is explained below.
Calculation
Reference energy
Before the force field for liquid Si can be calculated, the atomic energy of a single Si atom in a large enough box has to be calculated. For that the following steps have to be done:
- Create a new directory Si_ATOM by typing mkdir Si_ATOM and go to that directory cd Si_ATOM.
- Create an INCAR file with the following parameters:
#Basic parameters ISMEAR = 0 SIGMA = 0.1 LREAL = Auto PREC = FAST ALGO = FAST ISYM = 0 NELM = 100 EDIFF = 1E-4 LWAVE = .FALSE. LCHARG = .FALSE. ISPIN = 2
- Create a POSCAR file with a single atom in a large enough box (the box should be orthorombic to have enough degrees of freedom for electronic relaxation):
Si atom 1.00090000000000 12.00000000 0.00000000 0.00000000 0.00000000 12.01000000 0.00000000 0.00000000 0.00000000 12.02000000 Si 1 Direct 0.00000000 0.00000000 0.00000000
- Create a KPOINTS file with a single k point (or copy the one delivered with this example):
test 0 0 0 Gamma 1 1 1 0 0 0
- Copy the POTCAR from the previous directory to this directory (cp ../POTCAR).
- Run the calculation and look at the total energy in the OUTCAR file (or OSZICAR). That energy will be used for the