Forces in BOMD calculations

84 views
Skip to first unread message

Dmitrii Nikolaev

unread,
Apr 8, 2020, 1:59:26 PM4/8/20
to cp2k
Dear collegues,

I am running the Born-Oppenheimer molecular dynamics, and I notice that the sum of the forces on all atoms of my molecule is non-zero. However, as I understand for the NVE ensemble the total force should be zero? What is the reason for this force? 

Thank you in advance,
Dmitrii

Thomas Kühne

unread,
Apr 8, 2020, 2:26:54 PM4/8/20
to 'Dorothea Golze' via cp2k
Dear Dmitrii, 

in principle you are obviously right. However, due to the fact that in a numerical calculation the 
number of particles is finite and typically small, the sum of all forces is fluctuating. If everything 
else is correct, the effect is expected to vanish with increasing system size. You can fix the center 
of mass by setting COMVEL_TOL to 0, but in general this is should not be necessary and if so 
likely points to a source of systematic bias in your calculations. 

Greetings, 
Thomas

--
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/63f2472a-20a7-4766-a3d3-2cfdacea0f10%40googlegroups.com.



==============================
Thomas D. Kühne
Dynamics of Condensed Matter
Chair of Theoretical Chemistry
University of Paderborn
Warburger Str. 100
D-33098 Paderborn
Germany

Lucas Lodeiro

unread,
Apr 8, 2020, 8:06:17 PM4/8/20
to cp...@googlegroups.com
Hi,
In the case of BO framework, the forces calculated with Hellmann-Feynman theorem have some instabilities, due to the theorem requires that <d\phi|\phi> = 0 = <\phi|d\phi>. In most cases this terms are very small, but requires a very accurate convergence of energy and the wfc to ensure a completely negligible value.
Then the real forces are equal <dH> + E<d\phi|\phi>.
if <d\phi|\phi> is not negligible, you are avoiding a part of the real forces and the summation  of them must not be 0.

This in the theory. The implementation of this, uses no infinite numbers and some noise are in the numerical evaluation, another thing to no cancel completely.

The important thing with this issue is if you are using and NVE system, the total energy (kinetic + potential) must be the conserved quantity, not in a perfect numeral way, but the oscillations must be small and without a biased direction, if the average (along the fluctuations) total energy is incrementing or decreasing you have problems in the forces application, either in the force calculation (more accurate scf cycles) or a too big time step integrator.

--

Dmitrii Nikolaev

unread,
Apr 9, 2020, 8:39:33 AM4/9/20
to cp2k
Thank you very much! 
My energy is not shifting, and the forces are fluctuating around 20 kcal/(mol*A) -- 0.016 Ht/Bohr. Is it ok? 


On Thursday, April 9, 2020 at 3:06:17 AM UTC+3, Lucas Lodeiro wrote:
Hi,
In the case of BO framework, the forces calculated with Hellmann-Feynman theorem have some instabilities, due to the theorem requires that <d\phi|\phi> = 0 = <\phi|d\phi>. In most cases this terms are very small, but requires a very accurate convergence of energy and the wfc to ensure a completely negligible value.
Then the real forces are equal <dH> + E<d\phi|\phi>.
if <d\phi|\phi> is not negligible, you are avoiding a part of the real forces and the summation  of them must not be 0.

This in the theory. The implementation of this, uses no infinite numbers and some noise are in the numerical evaluation, another thing to no cancel completely.

The important thing with this issue is if you are using and NVE system, the total energy (kinetic + potential) must be the conserved quantity, not in a perfect numeral way, but the oscillations must be small and without a biased direction, if the average (along the fluctuations) total energy is incrementing or decreasing you have problems in the forces application, either in the force calculation (more accurate scf cycles) or a too big time step integrator.

El mié., 8 abr. 2020 a las 13:59, Dmitrii Nikolaev (<dmitrii....@gmail.com>) escribió:
Dear collegues,

I am running the Born-Oppenheimer molecular dynamics, and I notice that the sum of the forces on all atoms of my molecule is non-zero. However, as I understand for the NVE ensemble the total force should be zero? What is the reason for this force? 

Thank you in advance,
Dmitrii

--
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp...@googlegroups.com.

Lucas Lodeiro

unread,
Apr 9, 2020, 1:35:06 PM4/9/20
to cp...@googlegroups.com
I do not know about the forces number. I general I see the total energy fluctuation per atom, and compare this quantity with the convergence criteria related with cutoff. They would be similar.
Also, the fluctuations are related with the number of atoms in your simulation. A fluctuation of 0.02 Ry in a H2 molecule is not negligible, but this fluctuation in a 2000 atoms cell is very small (per atom this will be: 0.01 Ry/atom and 0.00001Ry/atom).
About the non zero total forces, I check the quality of it seeing the center of mass (COM) coordinates and their movement, if the forces all 100% ok, the COM does not move, and little movement is due to non vanishing total forces.

To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/6fd3f3ad-e516-4cfb-bdf2-018bcc9df3a3%40googlegroups.com.

Vladimir Rybkin

unread,
Apr 10, 2020, 8:03:28 AM4/10/20
to cp...@googlegroups.com
Dear all!

I general remark: the forces in CP2K are NOT the Hellmann-Feynman ones. That stems from the fact that CP2K uses position-dependent basis functions (Gaussians). So, the Pulay force is never zero even in theory as soon is basis is incomplete (it is never complete in mathimatical sense with Guassians).

Yours,

Vladimir

четверг, 9 апреля 2020 г., 14:39:33 UTC+2 пользователь Dmitrii Nikolaev написал:
Reply all
Reply to author
Forward
0 new messages