CompPhysVienna / n2p2

n2p2 - A Neural Network Potential Package
https://compphysvienna.github.io/n2p2/
GNU General Public License v3.0
214 stars 81 forks source link

n2p2, The nnp potential of three elements ( eg : Cu, S, C ), can be used in MD simulations of two elements ?(eg: Cu2S) #190

Open YK-KK opened 1 year ago

YK-KK commented 1 year ago

The nnp potential of three elements ( eg : H, O, C ), can be used in MD simulations of two elements ? ( eg : H2O ), If so, what should be noted. Thank you.

owen-rett commented 1 year ago

Yes, I've done so with a NNP trained on Zr, Ce, O and using it for pure Zr, O. The only thing you have to be wary of is setting the emap correctly. For example, this would be using a NNP trained on Zr, Ce, O in a simulation where the lammps atom types are 1 for Zr, and 2 for O.

pair_style nnp dir ${nnpDir} showew yes showewsum 100 resetew no maxew 100 cflength 1.0 cfenergy 1.0 emap "1:Zr, 2:O"

Edit: The one thing I will say is that you need to be sure that the training set has data that reflects the configurations that will be encountered in the H-O simulation. Aka make sure your training dataset contains data on H2O.