Energies of the atoms of my system

85 views
Skip to first unread message

Nathalie Smith

unread,
Feb 20, 2024, 8:26:59 AMFeb 20
to cp2k
Hello everyone,

I am trying to run a MD simulation and want to print the energies of each atom, similarly to the force output of MOTION/PRINT/FORCES. Could someone kindly tell me where to find such an option in CP2K? Thanks in advance!

Best wishes,
Nathalie Smith

Muhammad Saleh

unread,
Feb 21, 2024, 9:16:57 AMFeb 21
to cp2k
Hi..

You may have to check section CP2K_INPUT / MOTION / MD / PRINT / ENERGY,  on CP2K documentation, set FILENAME and EACH. Hope it will help 

Best
MuS

Nathalie Smith

unread,
Feb 21, 2024, 10:46:44 AMFeb 21
to cp2k
Hi, thank you so much for your reply!

I tested to set the input section like this:

&MOTION
  &MD
    &PRINT
      &ENERGY
        FILENAME energy.dat
        &EACH
          MD 1
        &END EACH
      &END ENERGY
    &END PRINT
    [...]
  &END MD
&END MOTION

The output I got was a regular .ener-file with the system energies, not the energies of each atom. If anyone has an idea how I can get the energies of each atom in my simulation - or if someone knows whether this option is simply not implemented in CP2K - I'd love you to let me know.

Best wishes
Nathalie Smith

Jürg Hutter

unread,
Feb 21, 2024, 11:17:01 AMFeb 21
to cp...@googlegroups.com
Hi

atomic energies are not uniquely defined in QM calculations. They are not
real observables and are usually not considered.
However, there is a simple atomic energy decomposition available in CP2K
that works for QM systems using Mulliken populations and some other
CP2K specific assumptions for the energy decomposition. You can
get it with

FORCE_EVAL / PROPERTIES / ATOMIC ENERGY .TRUE.

No warenty that the numbers are of any real use.

regards
JH

________________________________________
From: cp...@googlegroups.com <cp...@googlegroups.com> on behalf of Nathalie Smith <nathali...@gmail.com>
Sent: Wednesday, February 21, 2024 4:46 PM
To: cp2k
Subject: [CP2K:19943] Re: Energies of the atoms of my system
--
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<mailto:cp2k+uns...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/f0e4c7fe-db7d-493c-91e6-25012439177an%40googlegroups.com<https://groups.google.com/d/msgid/cp2k/f0e4c7fe-db7d-493c-91e6-25012439177an%40googlegroups.com?utm_medium=email&utm_source=footer>.

Nathalie Smith

unread,
Feb 27, 2024, 7:34:39 AMFeb 27
to cp2k
Hi,

Thank you so much for your answer and the explanation!

Best wishes
Nathalie Smith
Reply all
Reply to author
Forward
0 new messages