The moments keyword gives the dipole moment of the whole system (which you seem to ask for). If your system if periodic you need to allow for that with the periodic keyword - dipole moments in a periodic system are only defined up to a point - consider drawing a box with two charges in it then shifting the box boundaries. There are many papers on this in the literature.<div><br /></div><div>The localise keyword converts the density into a Wannier representation centred on atoms from the original distributed density. These wannier centres can then be used to recalculate the dipole of the whole system or by grouping the wannier centres that correspond to molecules (as defined in a similar way to a forcefield calculation) molecular dipoles can be calculated. See PL Silvestrelli, M Parrinello - Physical Review Letters, 1999 - APS for instance.</div><div><br /></div><div>Matt</div><div> <br /><br /></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Wednesday, 27 September 2023 at 14:29:41 UTC+1 liu dongfei wrote:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Recently, I have been trying to find commands in the reference manual and cp2k group for calculating dipole of the simulation system.<div>I find one previous related message posted two years ago.</div><div><a href="https://groups.google.com/g/cp2k/c/KPmGDOqhwMM/m/QdTYMNZhAgAJ" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en-GB&q=https://groups.google.com/g/cp2k/c/KPmGDOqhwMM/m/QdTYMNZhAgAJ&source=gmail&ust=1696484437899000&usg=AOvVaw1fcV4eCcvU5AsMpBpf2dXo">https://groups.google.com/g/cp2k/c/KPmGDOqhwMM/m/QdTYMNZhAgAJ</a><br></div><div>In that post, Mr. Chen mentioned three commands for calculating dipole in cp2k reference manual. They are as follows:</div><div><ol><li>Total dipole: <a href="https://manual.cp2k.org/cp2k-8_1-branch/CP2K_INPUT/FORCE_EVAL/DFT/LOCALIZE/PRINT/TOTAL_DIPOLE.html" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en-GB&q=https://manual.cp2k.org/cp2k-8_1-branch/CP2K_INPUT/FORCE_EVAL/DFT/LOCALIZE/PRINT/TOTAL_DIPOLE.html&source=gmail&ust=1696484437899000&usg=AOvVaw29l3BBJbHvcyhGgTjbOFrV">https://manual.cp2k.org/cp2k-8_1-branch/CP2K_INPUT/FORCE_EVAL/DFT/LOCALIZE/PRINT/TOTAL_DIPOLE.html</a></li><li>Molecular dipole: <a href="https://manual.cp2k.org/cp2k-8_1-branch/CP2K_INPUT/FORCE_EVAL/DFT/LOCALIZE/PRINT/MOLECULAR_DIPOLES.html" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en-GB&q=https://manual.cp2k.org/cp2k-8_1-branch/CP2K_INPUT/FORCE_EVAL/DFT/LOCALIZE/PRINT/MOLECULAR_DIPOLES.html&source=gmail&ust=1696484437899000&usg=AOvVaw0Cr19mHEHr6Gs1_9cdvF4M">https://manual.cp2k.org/cp2k-8_1-branch/CP2K_INPUT/FORCE_EVAL/DFT/LOCALIZE/PRINT/MOLECULAR_DIPOLES.html</a></li><li>moments: <a href="https://manual.cp2k.org/cp2k-8_1-branch/CP2K_INPUT/FORCE_EVAL/DFT/PRINT/MOMENTS.html" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en-GB&q=https://manual.cp2k.org/cp2k-8_1-branch/CP2K_INPUT/FORCE_EVAL/DFT/PRINT/MOMENTS.html&source=gmail&ust=1696484437899000&usg=AOvVaw1SfQy8EEMN0Ky27lnBGsDW">https://manual.cp2k.org/cp2k-8_1-branch/CP2K_INPUT/FORCE_EVAL/DFT/PRINT/MOMENTS.html</a><br></li></ol><div>Mr. Chen said there exist differences between the results of Total dipole and Molecular dipole. And the way of calculating Molecular dipole is also unknown. </div></div><div><br></div><div>Mr. Chen's questions are also something that I want to know very much. Looking forward to any guidance and help! </div><div><br></div><div>Regards,</div><div>Dongfei</div></blockquote></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "cp2k" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:cp2k+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/3ca840bb-7b20-48c9-b053-5be66134c441n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/3ca840bb-7b20-48c9-b053-5be66134c441n%40googlegroups.com</a>.<br />