<span></span>
        
        

<p>
Dear Marcella,<br></p><p>Thanks
a lot for all your clarifications, it is really helpful! I am not
sure to see what is the practical use of the <span style="font-style: normal;">QMMM</span><i>/</i><span style="font-style: normal;">CELL/PERIODIC
</span><span style="font-style: normal;">command</span><span style="font-style: normal;">.
</span><span style="font-style: normal;">I</span><span style="font-style: normal;">f
the QM and MM boxes are equal, then this command is just the same as
the one in SUBSYS, </span><span style="font-style: normal;">right</span><span style="font-style: normal;">?
</span><span style="font-style: normal;">And i</span><span style="font-style: normal;">f
the QM </span><span style="font-style: normal;">cell</span><span style="font-style: normal;">
is small</span><span style="font-style: normal;">er than</span><span style="font-style: normal;">
the MM </span><span style="font-style: normal;">one</span><span style="font-style: normal;">,
</span><span style="font-style: normal;">activating this option </span><span style="font-style: normal;">would
n</span><span style="font-style: normal;">o</span><span style="font-style: normal;">t
include in the pair lists short-range interactions that </span><span style="font-style: normal;">in
reality are not within the cutoff</span><span style="font-style: normal;">?</span></p><p><span style="font-style: normal;">I
made a quick scheme of the different options, the question above
would be represented by setup 2 compared to 1. </span><span style="font-style: normal;">I
would not expect large differences between the two setups, but still
to me it makes more sense setup 1, which is the one by default if one
explicitly writes the POISSON section in &QMMM (I suppose that missing this
section without deactivating the one at &DFT would lead to
</span><span style="font-style: normal;">fictitious </span><span style="font-style: normal;">periodic
QM images within the MM cell).</span></p><p><span style="font-style: normal;">Thanks
</span><span style="font-style: normal;">again</span><span style="font-style: normal;">,</span></p><p><span style="font-style: normal;">Ludwig</span>

<br></p><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Monday, January 17, 2022 at 2:16:52 PM UTC+1 Marcella Iannuzzi 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;"><br>Dear Ludwig,<div><br></div><div>Yes you are right,  sorry for the confusion. The default for QMMM&CELL is periodic none, because the pair lists are constructed according to the periodicity of the MM cell. </div><div>The PERIODIC&POISSON sections control the electrostatics interactions (all of them). Hence, if you do not want them to be periodic, set them to NONE.</div><div><br></div><div>Regards</div><div>Marcella</div><div><br></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Monday, January 17, 2022 at 11:32:33 AM UTC+1 Ludwig 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">


        
        <span></span>
        
        

<p>
<font size="3">Dear Marcella,<br></font></p><p><font size="3">Thanks a lot for the
reply! What confuses me is the fact that <b>2. /QMMM/CELL/PERIODIC</b>
is None by default, is it not necessary to set it to XYZ for a fully
QM/MM periodic calculation? The CELL section is only updating pair
lists for the short-ranged real part of Ewald, and also updating
coordinates in case they get out of the primary cell? And to neglect all
QM interactions with the periodic images (as if the QM region were
“isolated”), is it enough to set <b>3. /DFT/POISSON/PERIODIC</b>
and <b>5. /QMMM/PERIODIC/POISSON/PERIODIC</b><span style="font-weight:normal">
</span><span style="font-weight:normal">equal to None?</span></font></p><p><font size="3"><span style="font-weight:normal">T</span><span style="font-weight:normal">hanks again for your help,</span></font></p><p><font size="3"><span style="font-weight:normal">Ludwig</span></font><br></p><br><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Friday, January 14, 2022 at 10:23:28 AM UTC+1 Marcella Iannuzzi 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"><br>Dear Ludwig, <div><br></div><div>Section 1 and 2 control only the periodicity of the coordinates, but not of the electrostatic interactions. </div><div>For a fully periodic QMMM calculation you need PERIODIC XYZ both in CELL as well as in POISSON, which by the way are the default. </div><div>In addition, you might want to specify the section PERIODIC in QMMM, </div><div><a href="https://manual.cp2k.org/trunk/CP2K_INPUT.html" rel="nofollow" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://manual.cp2k.org/trunk/CP2K_INPUT.html&source=gmail&ust=1643365496642000&usg=AFQjCNE9gCay2rdjlYHCWwQe2URLeqx-0A">CP2K_INPUT</a> / <a href="https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL.html" rel="nofollow" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL.html&source=gmail&ust=1643365496642000&usg=AFQjCNHlnssOlMRMdG0s5sdMKSVtioT8Pw">FORCE_EVAL</a> / <a href="https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/QMMM.html" rel="nofollow" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/QMMM.html&source=gmail&ust=1643365496642000&usg=AFQjCNFmE4btZThxpXb13cCWiduB_N_AxQ">QMMM</a> / <a href="https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/QMMM/PERIODIC.html" rel="nofollow" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/QMMM/PERIODIC.html&source=gmail&ust=1643365496642000&usg=AFQjCNG86dOtwImRYfZfETJwMwNFVEQg8Q">PERIODIC</a><br></div><div>something like (example taken from regtests)<br></div><div><p>    &PERIODIC</p><p>     GMAX 0.1</p>
<p>      &MULTIPOLE</p>
<p>       RCUT 30.0</p>
<p>       EWALD_PRECISION 0.000001</p>
<p>      &END</p>
<p>    &END</p><p><br></p><p>Regards</p><p>Marcella</p></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Thursday, January 13, 2022 at 11:00:12 AM UTC+1 Ludwig 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">


        
        <span></span>
        
        

<p>
Dear all,</p>

<p>I
have a doubt on how to define periodic boundary conditions
(PBC) for a QM/MM system (protein with a small QM region and a large
MM region that includes solvent). As far as I have seen, there are
several sections where one can define cell information (sections 1-2
beneath) and Poisson solver methods for electrostatic interactions
(sections 3-5):</p>

<p style="font-weight:normal">
<span><b>1. /SUBSYS/CELL/PERIODIC</b>
(default XYZ)</span><em><span style="font-weight:normal"><span>: Specify
the directions for which periodic boundary conditions (PBC) will be
applied. Important notice: This applies to the generation of the pair
lists as well as to the application of the PBCs to positions. See the
POISSON section to specify the periodicity used for the
electrostatics. </span></span></em>


</p><p>
<span><b>2. /QMMM/CELL/PERIODIC</b> (default
None):</span> <em><span style="font-weight:normal"><span>Specify
the directions for which periodic boundary conditions (PBC) will be
applied. Important notice: This applies to the generation of the pair
lists as well as to the application of the PBCs to positions.</span></span></em></p>

<p>
<span><b>3. /DFT/POISSON/PERIODIC</b>
(default XYZ):</span> <em><span style="font-weight:normal"><span>Specify
the directions in which PBC apply. Important notice, this only
applies to the electrostatics. See the CELL section to specify the
periodicity used for e.g. the pair lists.</span></span></em></p>

<p>
<span><b>4. /MM/POISSON/PERIODIC</b>
(default XYZ):</span> <em><span style="font-weight:normal"><span>Specify
the directions in which PBC apply. Important notice, this only
applies to the electrostatics. See the CELL section to specify the
periodicity used for e.g. the pair lists.</span></span></em></p>

<p><b>5.
/QMMM/PERIODIC/POISSON</b><span style="font-weight:normal"><b>/PERIODIC</b>
(default XYZ):</span> <em><span style="font-weight:normal">Specify
the directions in which PBC apply. Important notice, this only
applies to the electrostatics. See the CELL section to specify the
periodicity used for e.g. the pair lists.</span></em></p>

<p><em><span style="font-style:normal">If
I understand this correctly</span></em><em><span style="font-style:normal">,
in a QM/MM framework section </span></em><em><span style="font-style:normal">1</span></em><em><span style="font-style:normal">
can be used to </span></em><em><span style="font-style:normal">specify</span></em><em><span style="font-style:normal">
the periodicity of the large MM </span></em><em><span style="font-style:normal">cell</span></em><em><span style="font-style:normal">
that encloses the entire system, and section </span></em><em><span style="font-style:normal">2</span></em><em><span style="font-style:normal">
to define the periodicity of the small QM </span></em><em><span style="font-style:normal">cell</span></em><em><span style="font-style:normal">
</span></em><em><span style="font-style:normal">that encloses the
electron density </span></em><em><span style="font-style:normal">(using
the Blöchl </span></em><em><span style="font-style:normal">decoupling
scheme</span></em><em><span style="font-style:normal"> described in
Laino2006?).</span></em></p>

<p><em><span style="font-style:normal">What
is a bit confusing </span></em><em><span style="font-style:normal">to</span></em><em><span style="font-style:normal">
me are sections </span></em><em><span style="font-style:normal">3</span></em><em><span style="font-style:normal">,
</span></em><em><span style="font-style:normal">4</span></em><em><span style="font-style:normal">,
and </span></em><em><span style="font-style:normal">5, </span></em><em><span style="font-style:normal">when
section </span></em><em><span style="font-style:normal">2</span></em><em><span style="font-style:normal">
is either None or </span></em><em><span style="font-style:normal">Periodic</span></em><em><span style="font-style:normal">.
</span></em><em><span style="font-style:normal">What are these three
sections controlling exactly? The </span></em><em><span style="font-style:normal">electrostatic
interactions between (3) </span></em><em><span style="font-style:normal">QM-<b>QM’</b>,
</span></em><em><span style="font-style:normal">(4) </span></em><em><span style="font-style:normal">MM-<b>MM’</b>,</span></em><em><span style="font-style:normal">
</span></em><em><span style="font-style:normal">and (5) </span></em><em><span style="font-style:normal">QM-<b>MM’</b>
/ </span></em><em><span style="font-style:normal">MM-<b>QM’</b></span></em><em><span style="font-style:normal">
</span></em><em><span style="font-style:normal">atoms in the
</span></em><em><span style="font-style:normal">primary–<b>periodic’</b>
cells</span></em><em><span style="font-style:normal">? </span></em><em><span style="font-style:normal">What
happens with </span></em><em><span style="font-style:normal">3 and 5</span></em><em><span style="font-style:normal">
if section 2 is set to None (</span></em>i.e. <em><span style="font-style:normal">system without <b>QM'</b> images)?</span></em></p>

<p><em><span style="font-style:normal">Thanks in advance</span></em><em><span style="font-style:normal">,</span></em></p>

<p><em><span style="font-style:normal">Ludwig</span></em></p>

</blockquote></div></blockquote></div></blockquote></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/96de546a-c3fb-48e6-979c-f12f34add01an%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/96de546a-c3fb-48e6-979c-f12f34add01an%40googlegroups.com</a>.<br />