VASP cannot calculate forces on atoms in the presence of electric field.

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


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
hszhao.cn@gmail.com
Full Member
Full Member
Posts: 214
Joined: Tue Oct 13, 2020 11:32 pm

VASP cannot calculate forces on atoms in the presence of electric field.

#1 Post by hszhao.cn@gmail.com » Sat Apr 12, 2025 6:36 am

Hi there,

Recently, I learned that VASP cannot calculate forces on atoms in the presence of electric field. However, I do not have experience in this area, so I would like to obtain confirmation from the developers. Is that really the case?

Regards,
Zhao


michael_wolloch
Global Moderator
Global Moderator
Posts: 164
Joined: Tue Oct 17, 2023 10:17 am

Re: VASP cannot calculate forces on atoms in the presence of electric field.

#2 Post by michael_wolloch » Mon Apr 14, 2025 10:27 am

Dear Zhao,

No, VASP can calculate forces in the presence of an electric field.

The procedure is a bit different depending on the system symmetry:

  • For a slab (or nanowire or molecule) you should set EFIELD, IDIPOL and LDIPOL.

  • For a bulk system, EFIELD_PEAD and PEAD_RELAX = .TRUE. need to be set.

Please search the Forum for similar posts before creating a new topic according to our posting guidelines. Similar issues have been discussed quite recently e.g.:
Running AIMD with electric field
and especially:
Electric field contribution to forces with EFIELD_PEAD

If you are specifically interested in phonons, please provide a minimal reproducible example of your calculation so that I can assist with that problem.

Cheers, Michael


hszhao.cn@gmail.com
Full Member
Full Member
Posts: 214
Joined: Tue Oct 13, 2020 11:32 pm

Re: VASP cannot calculate forces on atoms in the presence of electric field.

#3 Post by hszhao.cn@gmail.com » Mon Apr 14, 2025 1:45 pm

michael_wolloch wrote: Mon Apr 14, 2025 10:27 am

Dear Zhao,

No, VASP can calculate forces in the presence of an electric field.

The procedure is a bit different depending on the system symmetry:

  • For a slab (or nanowire or molecule) you should set EFIELD, IDIPOL and LDIPOL.

  • For a bulk system, EFIELD_PEAD and PEAD_RELAX = .TRUE. need to be set.

Please search the Forum for similar posts before creating a new topic according to our posting guidelines. Similar issues have been discussed quite recently e.g.:
Running AIMD with electric field
and especially:
Electric field contribution to forces with EFIELD_PEAD

Thank you very much for your suggestions and links to the discussions that have been conducted.

michael_wolloch wrote: Mon Apr 14, 2025 10:27 am

If you are specifically interested in phonons, please provide a minimal reproducible example of your calculation so that I can assist with that problem.

Cheers, Michael

In fact, I'm running the example here with the help of phonopy, and still haven't tried the pure VASP's way with the presence of an electric field. I don't know if there are similar examples of existing calculations based on VASP only.

Regards,
Zhao

Last edited by hszhao.cn@gmail.com on Mon Apr 14, 2025 1:46 pm, edited 1 time in total.

michael_wolloch
Global Moderator
Global Moderator
Posts: 164
Joined: Tue Oct 17, 2023 10:17 am

Re: VASP cannot calculate forces on atoms in the presence of electric field.

#4 Post by michael_wolloch » Mon Apr 14, 2025 2:01 pm

Dear Zhao,

I am glad to be of help. Please update the topic if you run into any issues with the example you are trying.

Cheers, Michael


Post Reply