Error in MD annealing simulation with ML potential

Queries about input and output files, running specific calculations, etc.


Moderators: Global Moderator, Moderator

Locked
Message
Author
renjie_chen1
Newbie
Newbie
Posts: 6
Joined: Fri Jul 29, 2022 2:40 am

Error in MD annealing simulation with ML potential

#1 Post by renjie_chen1 » Mon Sep 09, 2024 7:45 am

Hi, I have got a learned potential of amorphous Pr-Fe. I then tried to do a prediction run with a large box (>17000 atoms). I first anealed the amorphous structure at 2000 K and then quenched it to 1200 K (I just copied CONTCAR to POSCAR and delete the velocity part before quenching). It runs well. But when I further annealed it at 1200 K there is a numerical error in the energy calculation:

POSCAR, INCAR and KPOINTS ok, starting setup
entering main loop
1 T= NaN E= NaN F= -.95135652E+05 E0= -.95135652E+05 EK= NaN SP= 0.00E+00 SK= 0.00E+00

Seems somewhere division by zero happens. I am not sure if it is a bug. Since it occurs at the first step, it is probably a problem of initialization. Could you give me some advise? I am not confident with the manual switch between annealing and quenching. btw, is there anyway to adapt the potential in other MD codes such as Lammps?

Thank you very much.


marie-therese.huebsch
Full Member
Full Member
Posts: 212
Joined: Tue Jan 19, 2021 12:01 am

Re: Error in MD annealing simulation with ML potential

#2 Post by marie-therese.huebsch » Mon Sep 09, 2024 7:50 am

Hi, the NaN looks strange. Could you share a minimal reproducible please?

Ad Lammps interface) Not yet but we are working on it.

Cheers,
Marie-Therese


renjie_chen1
Newbie
Newbie
Posts: 6
Joined: Fri Jul 29, 2022 2:40 am

Re: Error in MD annealing simulation with ML potential

#3 Post by renjie_chen1 » Mon Sep 09, 2024 8:36 am

marie-therese.huebsch wrote: Mon Sep 09, 2024 7:50 am

Hi, the NaN looks strange. Could you share a minimal reproducible please?

Ad Lammps interface) Not yet but we are working on it.

Cheers,
Marie-Therese

Hi, Marie-Therese,

Thank you for your reply. I just tried to skip the anealing and quenching from 2000K, but directly annealed the initial structure at 1200 K. I got the same error. The only difference between this run with the previous successful annealing run at 2000 K is that I set a very large NSW (see the attachment).

You do not have the required permissions to view the files attached to this post.

marie-therese.huebsch
Full Member
Full Member
Posts: 212
Joined: Tue Jan 19, 2021 12:01 am

Re: Error in MD annealing simulation with ML potential

#4 Post by marie-therese.huebsch » Mon Sep 09, 2024 8:51 am

Puh, yes NSW = 4000000 is very large! I'd recommend splitting the calculation into multiple MD runs, like in example 6 in part 2 of the MD tutorial. Does this solve the issue?


renjie_chen1
Newbie
Newbie
Posts: 6
Joined: Fri Jul 29, 2022 2:40 am

Re: Error in MD annealing simulation with ML potential

#5 Post by renjie_chen1 » Mon Sep 09, 2024 8:55 am

So, this is strange. I just set a smaller NSW and NBLOCK as well (one zero less in the numbers). It goes well.


marie-therese.huebsch
Full Member
Full Member
Posts: 212
Joined: Tue Jan 19, 2021 12:01 am

Re: Error in MD annealing simulation with ML potential

#6 Post by marie-therese.huebsch » Mon Sep 09, 2024 9:08 am

Ps: Please check out ML_OUTBLOCK instead of NBLOCK.


marie-therese.huebsch
Full Member
Full Member
Posts: 212
Joined: Tue Jan 19, 2021 12:01 am

Re: Error in MD annealing simulation with ML potential

#7 Post by marie-therese.huebsch » Mon Sep 09, 2024 10:19 am

Could you try again if the combination of ML_OUTBLOCK = 20000, NSW=4000000 and ML_MODE = run works? And could you share an ML_FF file to reproduce the issue? (Doesn't have to be your best MLFF)


renjie_chen1
Newbie
Newbie
Posts: 6
Joined: Fri Jul 29, 2022 2:40 am

Re: Error in MD annealing simulation with ML potential

#8 Post by renjie_chen1 » Mon Sep 09, 2024 12:27 pm

marie-therese.huebsch wrote: Mon Sep 09, 2024 10:19 am

Could you try again if the combination of ML_OUTBLOCK = 20000, NSW=4000000 and ML_MODE = run works? And could you share an ML_FF file to reproduce the issue? (Doesn't have to be your best MLFF)

I just tried to set ML_OUTBLOCK = 20000, NSW=4000000. The std stops at "entering main loop" and the task is terminated then, don't know why (no error information in OUTCAR as well). My smallest ML_FF is 80MB which severely exceeds the size limit of attachments here.


marie-therese.huebsch
Full Member
Full Member
Posts: 212
Joined: Tue Jan 19, 2021 12:01 am

Re: Error in MD annealing simulation with ML potential

#9 Post by marie-therese.huebsch » Mon Sep 09, 2024 12:53 pm

Thanks for trying! Could you please share the ML_AB file? We can refit the ML_FF. The ML_FF are indeed quite large.


renjie_chen1
Newbie
Newbie
Posts: 6
Joined: Fri Jul 29, 2022 2:40 am

Re: Error in MD annealing simulation with ML potential

#10 Post by renjie_chen1 » Mon Sep 09, 2024 1:02 pm

marie-therese.huebsch wrote: Mon Sep 09, 2024 12:53 pm

Thanks for trying! Could you please share the ML_AB file? We can refit the ML_FF. The ML_FF are indeed quite large.

Thanks. I have attached the ML_AB. Please do a try.

You do not have the required permissions to view the files attached to this post.

marie-therese.huebsch
Full Member
Full Member
Posts: 212
Joined: Tue Jan 19, 2021 12:01 am

Re: Error in MD annealing simulation with ML potential

#11 Post by marie-therese.huebsch » Tue Sep 10, 2024 12:00 pm

Thank you! We could reproduce the problem.

Basically, the following must be ensured: ML_OUTBLOCK * NSW < 231-1.
So for now the only solution is to set a smaller NSW and split the MD runs. We will address this issue in a future release and add it to the known issues.

Does this clarify things for you?


marie-therese.huebsch
Full Member
Full Member
Posts: 212
Joined: Tue Jan 19, 2021 12:01 am

Re: Error in MD annealing simulation with ML potential

#12 Post by marie-therese.huebsch » Tue Sep 10, 2024 12:16 pm

PS: Don't forget to set ISYM=0 for MD in general.


renjie_chen1
Newbie
Newbie
Posts: 6
Joined: Fri Jul 29, 2022 2:40 am

Re: Error in MD annealing simulation with ML potential

#13 Post by renjie_chen1 » Tue Sep 10, 2024 1:59 pm

marie-therese.huebsch wrote: Tue Sep 10, 2024 12:00 pm

Thank you! We could reproduce the problem.

Basically, the following must be ensured: ML_OUTBLOCK * NSW < 2^31-1.
So for now the only solution is to set a smaller NSW and split the MD runs. We will address this issue in a future release and add it to the known issues.

Does this clarify things for you?

Thank you and yes it is clear for me.


Locked