Trying to run a LAMMPS simulation with two deepmd potentials #4371
Replies: 1 comment 10 replies
-
Assigning the type map via pair_coeff (#2267) was added in v2.2.0. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I'm on deepmd v2.1.5. I encountered a problem, while trying to simulate black phosphorene sheets on top of quartz in LAMMPS using deepmd potentials.
There are two potentials I want to use. The first one was trained to predict interactions between all three atom types (Si, O, P). The second one predicts only the behavior of phosphorene.
An important note here: the datasets with which the models are trained are not the same, they are collected from different ab initio MD simulations.
The models' type maps are as follows:
Si 0
O 1
P 2
and
P 0
For LAMMPS simulation, I set types to be
Si 1
O 2
P 3
So what I want is to use the SiOP potential for interaction between types 1*2 and 1*2*3 (Si-Si, Si-O, Si-P, O-O, O-P), and P potential for 3 3 (P-P) interaction.
The first question: is it even possible? If not, the further message is meaningless.
Although I managed to launch a simulation, I don't know if it is correct. What worked for me now is this
pair_style hybrid/overlay deepmd sio2p.pb deepmd phosp.pb
pair_coeff * * deepmd 1
pair_coeff * * deepmd 2 NULL NULL P
The log file shows this
pair_coeff * * deepmd 2 NULL NULL P
WARNING: Interaction between types 0 and 2 is set with deepmd, but will be ignored.
Deepmd model has only 1 types, it only computes the mulitbody interaction of types: 1-1. (/home/conda/feedstock_root/build_artifacts/libdeepmd_1663923207577/work/source/lmp/pair_deepmd.cpp:1042)
WARNING: Interaction between types 0 and 3 is set with deepmd, but will be ignored.
Deepmd model has only 1 types, it only computes the mulitbody interaction of types: 1-1. (/home/conda/feedstock_root/build_artifacts/libdeepmd_1663923207577/work/source/lmp/pair_deepmd.cpp:1042)
WARNING: Interaction between types 1 and 2 is set with deepmd, but will be ignored.
Deepmd model has only 1 types, it only computes the mulitbody interaction of types: 1-1. (/home/conda/feedstock_root/build_artifacts/libdeepmd_1663923207577/work/source/lmp/pair_deepmd.cpp:1042)
WARNING: Interaction between types 1 and 3 is set with deepmd, but will be ignored.
Deepmd model has only 1 types, it only computes the mulitbody interaction of types: 1-1. (/home/conda/feedstock_root/build_artifacts/libdeepmd_1663923207577/work/source/lmp/pair_deepmd.cpp:1042)
WARNING: Interaction between types 2 and 2 is set with deepmd, but will be ignored.
Deepmd model has only 1 types, it only computes the mulitbody interaction of types: 1-1. (/home/conda/feedstock_root/build_artifacts/libdeepmd_1663923207577/work/source/lmp/pair_deepmd.cpp:1042)
WARNING: Interaction between types 2 and 3 is set with deepmd, but will be ignored.
Deepmd model has only 1 types, it only computes the mulitbody interaction of types: 1-1. (/home/conda/feedstock_root/build_artifacts/libdeepmd_1663923207577/work/source/lmp/pair_deepmd.cpp:1042)
WARNING: Interaction between types 3 and 3 is set with deepmd, but will be ignored.
Deepmd model has only 1 types, it only computes the mulitbody interaction of types: 1-1. (/home/conda/feedstock_root/build_artifacts/libdeepmd_1663923207577/work/source/lmp/pair_deepmd.cpp:1042)
The second question: does the above mean, that the P potential is actually computes forces for Si-Si (type 1) interaction?
In this case, I should somehow remap the types in the SiOP model, shouldn't I?
The third question: if it works properly (the P potential computes P-P interaction), how do I remove the SiOP potential's contribution in P-P interaction?
Ideally, I would use
pair_style hybrid
instead ofpair_style hybrid/overlay
, but when I sethybrid
, I get an error:ERROR: Pair hybrid sub-style is not used (src/pair_hybrid.cpp:572)
Which is just weird. As if the P potential never computes anything in the first place.
Beta Was this translation helpful? Give feedback.
All reactions