MaterSim / PyXtal_FF

Machine Learning Interatomic Potential Predictions
86 stars 23 forks source link

SNAP/LAMMPS interface (v0.1.5) #31

Closed qzhu2017 closed 3 years ago

qzhu2017 commented 4 years ago

@David-Zagaceta @yanxon We need to think about this after we get the current work done.

qzhu2017 commented 3 years ago

Let's do SNAP first, and then SO3

qzhu2017 commented 3 years ago

@yanxon We need to write some documentation when this function is ready. I am thinking about the following

qzhu2017 commented 3 years ago

@yanxon

I am trying to create an example as described above (see here). Can you help to complete it? I foresee several issues here.

yanxon commented 3 years ago

@qzhu2017

This works in my case. Did you update PyXtal_FF code? Perhaps, you need to delete the old versions in your python library. This occurred to me as well. It will use the last version instead of the newest one.

Btw, let me get the example script up and running. I will get this done today.

yanxon commented 3 years ago

@qzhu2017

Here is my Si-snap folder:

(base) yanxon@yanxon:~/Documents/pyxtalff_test$ ls Si-snap/
16-16-checkpoint.pth  drange.npy        Force_Test.png   Stress_Test.png   Test_db.dat       Test_db_norm.dat  TestForce.txt     Train_db.bak  Train_db_norm.bak  TrainEnergy.txt    TrainStress.txt
ase.db                Energy_Test.png   Force_Train.png  Stress_Train.png  Test_db.dir       Test_db_norm.dir  Testformulas.txt  Train_db.dat  Train_db_norm.dat  TrainForce.txt
DescriptorParams.txt  Energy_Train.png  NN_weights.txt   Test_db.bak       Test_db_norm.bak  TestEnergy.txt    TestStress.txt    Train_db.dir  Train_db_norm.dir  Trainformulas.txt

We need two files: DescriptorParams.txt and NN_weights.txt.

yanxon commented 3 years ago

@qzhu2017

I have fixed this in 3c394569f04bb6db07aa0254be1eb0bb92e75951. Here, I also have in.md file running NPT simulation.

Can you please run it if it works on your side?

Also, what do you mean by running LAMMPS with Python Wrapper? Is this similar to the FF_benchmark repo?

If it's the case, I can prepare some Jupyter notebooks for this.