Using MLFF from NPT in NVT ensemble

Question on input files/tags, interpreting output, etc.

Please check whether the answer to your question is given in the VASP online manual or has been discussed in this forum previously!

Moderators: Global Moderator, Moderator

Locked
Message
Author
xiliang_lian
Newbie
Newbie
Posts: 26
Joined: Thu May 19, 2022 8:44 am

Using MLFF from NPT in NVT ensemble

#1 Post by xiliang_lian » Thu Dec 01, 2022 12:56 pm

Hello,

I want to ask whether it is reasonable to use an MLFF trained with an NPT ensemble in an NVT simulation and whether the reverse is also possible. Do you have an idea of whether it works well? In some cases, we may only want to simulate with the NVT ensemble but we want to have better sampling with the NPT ensemble.

As far as I understand, if we train an MLFF with NPT, then the energy we get will consider the pressure contribution, which will make it inapplicable to NVT simulations and vice versa. But in an earlier publication by Georg Kresse(https://doi.org/10.1103/PhysRevLett.122.225701), for MAPbI3, it seems you only trained the model with NVT and apply it to NPT if I understand correctly.

Can you please comment on these questions? Thanks a lot in advance.

Best regards,
Xiliang

ferenc_karsai
Global Moderator
Global Moderator
Posts: 297
Joined: Mon Nov 04, 2019 12:44 pm

Re: Using MLFF from NPT in NVT ensemble

#2 Post by ferenc_karsai » Fri Dec 02, 2022 12:36 pm

I would recommend to always train in NpT with a temperature ramp. It should be perfectly usable for NVT and NVE calculations too.
Just don't forget to use higher ENCUTs in the learning. Please read the best practices site:
https://www.vasp.at/wiki/index.php/Best ... rce_fields

NVT can work for NpT, but I would test it always individually. If it won't work well, you will see it usually very fast in the stability of your results. You can also monitor your BEEF in the ML_LOGFILE and when the value goes up then you now the force field starts to extrapolate.

xiliang_lian
Newbie
Newbie
Posts: 26
Joined: Thu May 19, 2022 8:44 am

Re: Using MLFF from NPT in NVT ensemble

#3 Post by xiliang_lian » Fri Dec 02, 2022 1:05 pm

Thank you very much for the insightful comments. It is very helpful and clear to me.

Locked