-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LAMMPS interface for CHGNet #57
Comments
Thanks a lot! |
@advancesoftcorp Thank you very much! I assume you've tested the CHGNet interface on an example system? Are you able the share the code for that? We'd be happy to add that to our example notebooks as a starting guide for LAMMPS users. |
We have tested the CHGNet interface for ZrO2, which input file is here: https://github.com/advancesoftcorp/lammps/tree/based-on-lammps_2Jun2022/examples/CHGNET |
@advancesoftcorp Say, now we have another CHGNet that can be loaded like |
You can set the model_name at the line of pair_coeff as https://github.com/advancesoftcorp/lammps/blob/22fc3bec34a10c095222b281714af27bedd1677d/examples/CHGNET/inp.lammps#L24C1-L24C36 |
Now, we have already developed the GUI of LAMMPS/CHGNet as the following figure. |
@advancesoftcorp |
This looks great, thanks! |
@advancesoftcorp Thank you very much for developing this interface! When I installed the 2JUN2022 version of LAMMPS, some problems occurred. I can run the program using other pair style, but CHGNet fails. I was wondering if the installation of this version is different from the installation of other versions of LAMMPS? |
Did you make yes-ML-CHGNET, before compile LAMMPS ? |
@advancesoftcorp |
It seems you did not set LD_LIBRARY_PATH for python or compilation was not correct. |
@advancesoftcorp LAMMPS (2 Jun 2022)
using 1 OpenMP thread(s) per MPI task
Reading data file ...
triclinic box = (0 0 0) to (25.256318 25.844557 25.363354) with tilt (0.997650 81 -1.0715861 1.0101746)
1 by 1 by 1 MPI processor grid
reading atoms ...
1280 atoms
read_data CPU = 0.036 seconds
Segmentation fault Could you please help us check the cause of the error? Thank you very much |
You have to resolve the problem by yourself, because I cannot see what you see. |
Hello @advancesoftcorp I am using CHGnet plug-in that you have built in LAMMPS mostly successfully. However when the amount of atoms changes such as with a fix dep command (like so): I run into the following error due to the number of atoms changing:
I was able to get the code to still work by changing line 92 in chgnet_driver.py from: I'm wondering if there is any downstream effect you suspect from this and why myAtoms was made a global variable? |
@mhsiron myAtoms is still a global variable, to avoid multiply creating instances of ase.Atoms for speed-up. |
@advancesoftcorp Hi, When I use your software named Nanalabo pro, which I got licence from your guys days before, to run my own cif structrue, it reminds me |
@heroiciota |
@advancesoftcorp Thx!Actually,I have had chgnet installed. But somehow my system can't point to the right environment. I am struggling with it, hopefully I would fix it today. |
@FuXiao-153 @advancesoftcorp I met the same problem :unrecognized pair style 'chgnet/d3' is part of the ML-CHGNET package which is not enabled in this LAMMPS binary. (../force.cpp:271)Last command: pair_style chgnet/d3 ../../potentials/CHGNET |
I have an error here: This is what I wrote in my input file which is the same as the tutorial |
@heroiciota |
@Mofahdi |
@advancesoftcorp Thank you!If installed in HPC, how can I run parallel calculations (at least is there any way to speed it up!) . |
@naji-usr you cannot use MPI parallel. but OpenMP is available. |
Thank you @advancesoftcorp it works. |
@bowen-bd @advancesoftcorp Hello, I ran CHGNet on LiAlO2. It ran successfully. My goal is to generate a LAMMPS usable potential file. Are you able to help me with that? I see that this link has code that uses a file |
The file of the pretrained model is here: |
Dear developers of CHGNet,
We have developed the interface of LAMMPS for CHGNet: https://github.com/advancesoftcorp/lammps/tree/based-on-lammps_2Jun2022/src/ML-CHGNET
It would be great that it will interest you.
Best Regards,
Satomichi Nishihara
AdvanceSoft Corp.
The text was updated successfully, but these errors were encountered: