you can specify the reference point for the calculation of the
electrical dipole moments.
Have a look at :
http://cp2k.berlios.de/manual/CP2K_INPUT/FORCE_EVAL/DFT/PRINT/
MOMENTS.html#list_REFERENCE
or do you refer to this keywords?
http://cp2k.berlios.de/manual/CP2K_INPUT/FORCE_EVAL/DFT/PRINT/
LOCALIZATION.html#list_TOTAL_DIPOLE
http://cp2k.berlios.de/manual/CP2K_INPUT/FORCE_EVAL/DFT/PRINT/
LOCALIZATION.html#desc_MOLECULAR_DIPOLES
in which case I do agree.. they were never properly updated..
Don't forget always to specify the keywords in your messages..
thanks,
Teo
I checked carefully the part of the code connected with the
calculation of the dipoles (both total and for each molecule)
when using the wannier centers, i.e.:
DFT%PRINT%LOCALIZATION%MOLECULAR_DIPOLES
DFT%PRINT%LOCALIZATION%TOTAL_DIPOLE
While for MOLECULAR_DIPOLES they are always computed w.r.t the
position of the first atom in the molecule,
the TOTAL_DIPOLE was (as you said) totally position dependent.
Moreover, as I mentioned, it was absolutely not
related to the other possible way of computing dipoles: DFT%PRINT%
MOMENTS
Therefore:
-) MOLECULAR_DIPOLES and TOTAL_DIPOLE are now print_key sections
inside localization.
-) both sections have the same possible parameters as MOMENTS, i.e.:
PERIODIC (if the dipole should be
computed with the berry phase or not), REFERENCE and
REFERENCE_POINT.
-) While these keywords are fully implemented for the TOTAL_DIPOLE
section, they are not for MOLECULAR_DIPOLES
since I think the convention used (i.e. to compute the dipole
w.r.t. the first atom in the molecule) is already quite good.
In case somebody will really need it, the implementation is quite
straightforward..
Hope this solves your issue.
Teo
On 19 Oct 2008, at 03:32, Axel wrote:
Well.. it has a sense how it is organized at the moment.
In fact, wannier centers (which are controlled by the LOCALIZE
section and the printing of the WANNIER* is controlled by that section)
are used in the LOCALIZATION section to compute/print properties
(MOLECULAR_DIPOLES, TOTAL_DIPOLE and MOLECULAR STATES) that depend
on the WANNIER centers..
With the today re-organization, the real print keys are
MOLECULAR_DIPOLES, TOTALE_DIPOLE, MOLECULAR_STATES,
(hopefully the manual online should be soon updated).
LOCALIZATION is therefore just a container for properties computed
using wannier centers (controlled by LOCALIZE).
WANNIER centers are also used in other sections, like LINRES:
http://cp2k.berlios.de/manual/CP2K_INPUT/FORCE_EVAL/PROPERTIES/
LINRES.html
that's why everything connected with the printing of wannier
functions (centers, spread, cubes) must
be in the LOCALIZE%PRINT section, and there you don't want to put for
example dipoles or molecular_states.
to me, it makes sense how it is organized..
> the documentation there is very terse. i understand this section
> as computing properties of the "total" system, right?
Absolutely right.. MOMENTS is always referred to the total system..
> well, that makes the resulting dipole depend on the shape of the
> molecule.
> it is not a big deal for most molecules, but it is for the kind of
> molecule
> that i am currently looking into, which is a small organic cation
> that is
> mostly flat and picks up a dipole moment from bending and being
> polarized
> from solvate molecules.
well.. even with the center of charge or center of mass the dipole
will always depend
on the shape of the molecule.. it's unavoidable..
maybe the center of charge or of mass behaves better.. but anyway..
as you said in the
first message the problem is ill-defined..
> i'll look into it. i don't really need that kind of output, since i
> have
> an equivalent implementation with sufficient flexibility already
> integrated
> into VMD (Extensions->Visualization->Dipole Moment Watcher), but i was
> a bit surprised by the discrepancies and wanted to check with the
> folks
> here whether this was intentional or accidental.
I would say more laziness... ;-)
Teo
I'm sorry this does not make any sense to me.. if I'm computing the
wannier centers I'm
expecting to find a print section in the wannier section (LOCALIZE).
> then _all_ print keys would be located directly in the DFT%PRINT
> section and the wannier cubes output would be alongside the density
> cubes, the wannier centers alongside the dipole moments, molecular
> states etc. etc.
Maybe.. this does not make too much sense if you think that you may
want to
use a certain settings for LOCALIZE for the TOTAL_DIPOLE.. etc.. and
another
set for LINEAR RESPONSE.. so the LOCALIZE section MUST be inside the
respective
sections.
So.. I still like it is now.. maybe the name of the sections do not
make too much sense..
but I'm opened in having more meaningful names..
> that would be ok to me, so if nobody objects i'll try to modify
> the calculation of the molecular dipoles accordingly.
of course you can.. it's everything setup now (in the sense that one
can use the keywords
already introduced but not implemented..) and we should make the
input fully working..
this would be ideal..
cheers
teo
Having said that.. I'm not defending the structure how it is now. If
I should follow
my personal taste I would totally change it in a way more like you
said:
each properties based on localization should have its wannier section
for localization..
That would be the way I like it. Maybe when I will really use
localization I will do
that.. at the moment it would require 2/3 days, which I don't have..
volunteers?
>
> anyways, i think we should move this to a private discussion (skype?)
> in the hope to converge to a result that satisfies both of us faster.
sure.. as long as it is a fast (quick/dirty) solution.. ;-)
cheers,
teo