How does CP2K define the cell around a molecule?

34 views
Skip to first unread message

rashe...@gmail.com

unread,
Jun 28, 2026, 1:53:16 AM (5 days ago) Jun 28
to cp2k
How does CP2K define the cell around a molecule?
Does it centre the cell about the axes' origin (0,0,0)? 
Or does it define point (0,0,0) as a corner of the cell?

Stein, Dr. Frederick

unread,
Jun 28, 2026, 1:56:22 PM (5 days ago) Jun 28
to cp...@googlegroups.com
Dear Rashed (?),
The coordinates are taken from the coordinates given by the respective
XYZ-file or the geometry defined in the &COORD-section. Coordinates are only
centred if the &CENTER_COORDINATES
(https://manual.cp2k.org/cp2k-2026_1-branch/CP2K_INPUT/FORCE_EVAL/SUBSYS/TOPOLOGY/CENTER_COORDINATES.html)
section is active).
HTH,
Frederick

Am Sat, 27 Jun 2026 22:53:15 -0700 (PDT) schrieb "rashe...@gmail.com"
<rashe...@gmail.com>:
> How does CP2K define the cell around a molecule?
> Does it centre the cell about the axes' origin (0,0,0)?
> Or does it define point (0,0,0) as a corner of the cell?
>
> --
> 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 visit
>https://groups.google.com/d/msgid/cp2k/c4414ed1-a5ca-4636-a3d1-9d931ec1fc63n%40googlegroups.com.

Dr. Frederick Stein
Scientific Computing Core
CASUS - Center for Advanced Systems Understanding, Görlitz
Helmholtz-Zentrum Dresden-Rossendorf e.V. (HZDR)

rashe...@gmail.com

unread,
Jun 29, 2026, 2:57:52 PM (4 days ago) Jun 29
to cp2k
Thanks Frederick,
So, just for absolute clarification: 
Say I defined a molecule about the origin, with coordinates having positive and negative signs, and then used, say,  10*10*10 cell without the  &CENTER_COORDINATES option, then part of the molecule will not be included within the cell? This means the molecule must be shifted to lie within the first octant of the xyz space (?)
eftrsd

Stein, Dr. Frederick

unread,
Jun 29, 2026, 3:41:05 PM (4 days ago) Jun 29
to cp...@googlegroups.com
Dear eftrsd,
For clarification: In the case of missing periodicity, all parts of
densities(!) outside of the box in the non-periodic directions, are not
considered. This leads to non-zero densities at the border of the cell and
potentially a source of error (depends on the magnitude). Some
Poisson-solvers will emit a warning in this case because they assume exactly
that. The &CENTER_COORDINATES section reduces the probability of it, i.e.
the cell must be large enough.
Best,
Frederick

Am Mon, 29 Jun 2026 11:57:52 -0700 (PDT) schrieb "rashe...@gmail.com"
<rashe...@gmail.com>:
>https://groups.google.com/d/msgid/cp2k/75569048-a0b8-4718-b14c-b9c562c9d4bfn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages