KERNEL TRUNCATION

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


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
reza_namakian1
Newbie
Newbie
Posts: 17
Joined: Wed Jun 26, 2024 3:39 pm

KERNEL TRUNCATION

#1 Post by reza_namakian1 » Tue Jan 07, 2025 6:45 pm

Dear VASP Team,

I have a quick question regarding the new KERNEL_TRUNCATION tag in VASP 6.5.0.

I am working with an inorganic 2D material that is extended in the XY plane, with vacuum along the Z direction, and uniformly padded with charged organic molecules on its top and bottom surfaces.

Would it be possible to train an MLFF for this system using this tag by simply adding a vacuum along the Z direction, slightly larger than the MLFF cutoff radius—say, around 10 Å?

Thank you in advance for your time and suggestions on this!


reza_namakian1
Newbie
Newbie
Posts: 17
Joined: Wed Jun 26, 2024 3:39 pm

Re: KERNEL TRUNCATION

#2 Post by reza_namakian1 » Tue Jan 07, 2025 7:29 pm

I forgot to include these in my previous post:

I'm using DFT-D4 to account for van-der-Waals (vdW) interactions (wiki/index.php/DFT-D4), and I'm not using the stresses to train the MLFF for the slab configuration.

Do I still need to follow the electrostatic corrections mentioned here (wiki/index.php/Electrostatic_corrections) for the slab configuration?


christopher_sheldon1
Global Moderator
Global Moderator
Posts: 74
Joined: Mon Mar 25, 2024 1:36 pm

Re: KERNEL TRUNCATION

#3 Post by christopher_sheldon1 » Wed Jan 08, 2025 11:46 am

Hi Reza,

Thank you for your question. I can think of no reason why not. It is intended for this purpose, so applying it to MLFF shouldn't create any additional difficulties.

I don't expect there to be any specific issues with using D4. In terms of the electrostatic corrections, it is best to test for specific your system with a single point calculation first. If it changes things significantly, then it needs to be used or at least considered later on. It can significantly increase the cost of the calculation, so is likely not ideal for training an MLFF.

Best wishes,

Chris


reza_namakian1
Newbie
Newbie
Posts: 17
Joined: Wed Jun 26, 2024 3:39 pm

Re: KERNEL TRUNCATION

#4 Post by reza_namakian1 » Wed Jan 08, 2025 4:49 pm

Thank you so much, Chris!

I had the impression that by using the Coulomb truncation, I might not need to worry about those electrostatic corrections. In fact, in another post where Ferenc replied to me, he mentioned that for some materials like perovskites, it is almost impossible to get the system to converge using those electrostatic corrections. So, if I choose not to use those corrections, I assume I would still need a large vacuum, but hopefully, the Coulomb truncation will help reduce the computational cost in the vacuum direction. Perhaps not?

By the way, I came across this information on the Quantum ESPRESSO documentation page. I am not entirely sure if it is related to the Coulomb truncation in VASP, but I would appreciate your thoughts on this. If you think there is a connection, should I follow the precautions outlined here? (https://www.quantum-espresso.org/Doc/INPUT_PW.html)

"'2D' :
Truncation of the Coulomb interaction in the z direction
for structures periodic in the x-y plane. Total energy,
forces and stresses are computed in a two-dimensional framework.
Linear-response calculations () done on top of a self-consistent
calculation with this flag will automatically be performed in
the 2D framework as well. Please refer to:
Sohier, T., Calandra, M., & Mauri, F. (2017), "Density functional
perturbation theory for gated two-dimensional heterostructures:
Theoretical developments and application to flexural phonons in graphene",
PRB, 96, 075448 (2017).

NB:
- The length of the unit-cell along the z direction should
be larger than twice the thickness of the 2D material
(including electrons). A reasonable estimate for a
layer's thickness could be the interlayer distance in the
corresponding layered bulk material. Otherwise,
the atomic thickness + 10 bohr should be a safe estimate.
There is also a lower limit of 20 bohr imposed by the cutoff
radius used to read pseudopotentials (see read_pseudo.f90 in Modules).

- As for ESM above, only in-plane stresses make sense and one
should use cell_dofree= '2Dxy' in a vc-relax calculation."


christopher_sheldon1
Global Moderator
Global Moderator
Posts: 74
Joined: Mon Mar 25, 2024 1:36 pm

Re: KERNEL TRUNCATION

#5 Post by christopher_sheldon1 » Thu Jan 09, 2025 8:25 am

Hi Reza,

Yes, if the interaction between the slabs is strong, then you will need a large vacuum. If the Coulomb truncation is suitable for such a system, then the reduced vacuum will significantly reduce the computational cost. It depends a lot on your individual system what sort of Coulomb cutoff distance would be suitable. The method has not been widely used enough to be sure. The Quantum Espresso documentation looks reasonable. However, I would always do the tests on your specific system first, especially if you want to do an MD simulation. I'd calculate the strength of the interaction between the repeated images with increasing vacuum distance as single point calculations (perhaps relative to the largest vacuum that you use - energy differences are always more meaningful). This interaction strength vs vacuum distance plot, alongside possibly equivalent truncation distances, will give you the best assurance of what setting to use.

Does this help?

Best wishes,

Chris


reza_namakian1
Newbie
Newbie
Posts: 17
Joined: Wed Jun 26, 2024 3:39 pm

Re: KERNEL TRUNCATION

#6 Post by reza_namakian1 » Thu Jan 09, 2025 9:48 pm

Dear Chris,

Thank you so much for elaborating on these issues!

Following your suggestions, I tested a slab configuration with and without the Coulomb kernel truncation.

When I turned on the Coulomb kernel truncation tags, the electronic minimization became a mess during the second step of the structural relaxation, so I had to stop the process after trying it twice. But without using the Coulomb kernel truncation, the relaxation went well.

Could you please let me know if I might have made any mistakes in the input files during the Coulomb kernel truncation calculations?

Best,

Reza.

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

christopher_sheldon1
Global Moderator
Global Moderator
Posts: 74
Joined: Mon Mar 25, 2024 1:36 pm

Re: KERNEL TRUNCATION

#7 Post by christopher_sheldon1 » Fri Jan 10, 2025 2:23 pm

Dear Rexa,

Thank you for the attachment. It doesn't look like there is anything immediately wrong with the INCAR file but I'll try to repeat your calculations and get back to you.

Best wishes,

Chris


Post Reply