Greetings,
I have been running LAMMPS on Linux Virtual Machine integrated into Windows. I followed the installation procedure described here: 8.6.4. Using LAMMPS on Windows 10 with WSL — LAMMPS documentation
Now I need to use the Openkim potential. I have installed KIM API from source following the instructions given here: OpenKIM · Obtaining KIM Models · Interatomic Potentials and Force Fields. [I could not use the $ gpg commands]
I downloaded the archive file and pasted in my home directory after unpacking the home directory looks as follows:
koushik@DESKTOP-4LIPJ5O:~$ ls
kim-api-2.3.0 kim-api-2.3.0.txz kim-api-2.3.0.txz:Zone.Identifier lammps stable_3Mar2020.tar.gz
I followed all the steps mentioned in the previous link and downloaded two items with kim-api-collections-management. ‘kim-api-collections-management list’ command shows these two items under User collection
User Collection
Model Drivers: ‘/home/koushik/.kim-api/2.3.0+GNU.GNU.GNU.2022-12-28-09-30-14/model-drivers-dir’
EDIP_LAMMPS__MD_783584031339_000
SW__MD_335816936951_004
Portable Models: ‘/home/koushik/.kim-api/2.3.0+GNU.GNU.GNU.2022-12-28-09-30-14/portable-models-dir’
EDIP_LAMMPS_Marks_2000_C__MO_374144505645_000
SW_StillingerWeber_1985_Si__MO_405512056662_005
Simulator Models: ‘/home/koushik/.kim-api/2.3.0+GNU.GNU.GNU.2022-12-28-09-30-14/simulator-models-dir’
–empty–
Then I went to the lammps build directory and typed in the following commands
cmake …/cmake/presets/basic.cmake …/cmake
cmake -D PKG_KIM=yes …/cmake
cmake -D DOWNLOAD_KIM=yes …/cmake
cmake -D LMP_DEBUG_CURL=on …/cmake
cmake -D LMP_NO_SSL_CHECK=yes …/cmake
cmake -D KIM_EXTRA_UNITTESTS=yes …/cmake
make -j 4
Some of the above mentioned command are listed in this link: 3.7. Packages with extra build options — LAMMPS documentation
The installation was successful.
I have run an example from the examples directory of LAMMPS. The input script had the following command
‘kim_init LennardJones_Ar real’
I was able to run this script. But when I tried to run another script with ‘kim_init SW_StillingerWeber_1985_Si__MO_405512056662_005 real’, the following error was shown:
ERROR: KIM Model name not found. (src/KIM/kim_init.cpp:189)
Last command: kim_init SW_StillingerWeber_1985_Si__MO_405512056662_005 real
Even though I clearly downloaded necessary elements to run this potential.
I have little experience working with linux OS, so I tried to describe the installation procedure in detail in case I made a mistake in following the instructions. I would be grateful if someone can point out what I have done wrong and how can I fix it.
Regards
Koushik Sarkar