Dear all,
Currently, I am doing simulation of carbon-nickel interaction. Where the potential I used is shibuta potential. Here the link http://people.ds.cam.ac.uk/jae1001/CUS/research/nano/Shibuta_Elliott_ChemPhysLett_2012.pdf. For that, to meet my condition. I should to create a pair style cpp class. One is pair_shibuta.cpp and pair_shibuta.h.
Then I put all files inside src directory of lammps-9Dec14 (version). After that, I was do the following steps:
- Open cygwin terminal (I use windows 8). Then go to src of lammps.
- Go to lib/meam then typing
$ make -f Makefile.gfortran - Go to lib/poems then typing
$ make -f Makefile.g++ - Go to src/STUBS then typing
$ make - Typing:
make makelib // to create Makelib file, where now pair_shibuta is listed make makeshlib // to create Makeshlib file, where now pair_shibuta is listed
make makelist make serial
Everyting is going fine. I have folder Obj_serial inside src directory and got lmp_serial.exe. Inside Obj_serial I found pair_shibuta.d and pair_shibuta.o mean shibuta potential is listed inside lmp_serial.exe. After that, I create an input file which describe interaction of carbon and nickel surface. But, I met error “invalid pair style (…force.cpp)”. When I open force.cpp file, I knew that pair_shibuta is not listed inside lmp_serial.exe at all. Based on the shibuta potential, this potential need 9 or 8 parameters.
To solve this problem, I was try to modify Morse potential. Then did the same steps like before. But, I got error “incorrect arg …” . In input file, I wrote the code (snippet)
pair_style hybrid morse 3.0 eam/fs/omp airebo/omp 9.5409 1 1
.
.
.
pair_coeff 1 2 morse 2.4673 1.3 1.8706 1.7628 0.0628 -0.5351 1 2.7 3.0
I knew this error tell to me that pair coefficient is not correct. But, when I change the code above like below
pair_style hybrid morse 3.0 eam/fs/omp airebo/omp 9.5409 1 1
.
.
.
pair_coeff 1 2 morse 2.4673 1.8706 3.0
lammps can execute. This is very strenght. How come, lmp_serial know the original code of pair_morse.cpp meanwhile I was edit it before rebuild? So, please tell me how to solve this problem. I also did the same step like above on window7 in cygwin environment. But, I met the same result as well.
Sincerely,
Ibnu Syuhada
Doctor Student of Bandung Institute of Technology, Indonesia