Dear all,
This is not clear to me still: Can we use previous AIMD runs (OUTCAR's from MD without ML) to then convert the data into ML_AB or 'rerun' vasp over this OUTCAR to create a ML_AB or even ML_FF?
From what I have read I don't think VASP can do this, but perhaps there is a script that mines data to create a ML_AB?
Thanks and regards, Victor
Mining an old OUTCAR for ML_AB data?
Moderators: Global Moderator, Moderator
-
- Newbie
- Posts: 10
- Joined: Mon Sep 26, 2022 11:44 pm
-
- Global Moderator
- Posts: 235
- Joined: Mon Apr 26, 2021 7:40 am
Re: Mining an old OUTCAR for ML_AB data?
Dear Victor,
unfortunately we do not yet provide a tool to convert a single or series of OUTCAR files to an ML_AB training structure database. This is on our agenda but I cannot give you a time horizon for delivery. However, it should be possible to write such a converter yourself without much effort. Take an existing ML_AB file as reference, e.g., from the VASP testsuite you could have a look at testsuite/tests/ML_LiF_CaO_ISTART1/ML_ABN.ref which contains mixed-type structures with up to four elements. Here are a few important steps to consider in order to create a valid ML_AB file:
Hope this helps you if you attempt to write a script yourself.
All the best,
Andreas Singraber
unfortunately we do not yet provide a tool to convert a single or series of OUTCAR files to an ML_AB training structure database. This is on our agenda but I cannot give you a time horizon for delivery. However, it should be possible to write such a converter yourself without much effort. Take an existing ML_AB file as reference, e.g., from the VASP testsuite you could have a look at testsuite/tests/ML_LiF_CaO_ISTART1/ML_ABN.ref which contains mixed-type structures with up to four elements. Here are a few important steps to consider in order to create a valid ML_AB file:
- The ML_AB file starts with a header providing general information, e.g. about the types and maximum number of atoms,... Either extract this information from the OUTCAR file (search for VRHFIN, ions per type, etc.) or set up this part manually.
- Afterwards the section starting with usually contains the local reference configurations for each type which were selected during on-the-fly training. Because we cannot know from the data in the OUTCAR file which atoms should go there, you need to add a dummy section only listing a single atom, e.g. like this:
Code: Select all
The numbers of basis sets per atom type
Code: Select all
... ************************************************** The numbers of basis sets per atom type -------------------------------------------------- 1 1 1 1 ************************************************** Basis set for Li -------------------------------------------------- 1 1 ************************************************** Basis set for F -------------------------------------------------- 1 1 ************************************************** Basis set for Ca -------------------------------------------------- 1 1 ************************************************** Basis set for O -------------------------------------------------- 1 1 ....
- Then follows the list of all configurations, always starting with
You can get the lattice, position, energy, force and stress data from the OUTCAR file if you look for these lines:
Code: Select all
************************************************** Configuration num. ??? ==================================================
Code: Select all
direct lattice vectors ---> lattice POSITION TOTAL-FORCE (eV/Angst) ---> positions and forces free energy TOTEN = ---> energy in kB ---> stress
- In some ML_AB files each configuration contains a section like this:
You can safely omit this section, it is not required for this purpose.
Code: Select all
================================================== CTIFOR -------------------------------------------------- 1.0000000000000001E-016 ==================================================
Hope this helps you if you attempt to write a script yourself.
All the best,
Andreas Singraber
-
- Newbie
- Posts: 10
- Joined: Mon Sep 26, 2022 11:44 pm
Re: Mining an old OUTCAR for ML_AB data?
Thanks for the informative response. I agree, it would be good to be able to loop over old OUTCAR data once that is available. I may give this a go until then.
Victor
Victor