<br>Hi,<br><br>I know the box correction in ns.c (which is done in a fairly neat way, but can still fail for obscure reasons, which shouldn't happen ever), but I meant also during the setup, if Gromacs is fed a really skewed box. In that case a lattice reduction could be performed to get the optimal box representation for further processing. This will usually involve both shifting lattice vectors as well as performing a rotation. Now that's not yet available in Gromacs :) In this way you can always obtain a unit cell definition for which the projection of one vector on another does not exceed +/- half the size of that vector. According to the gromacs rules for triclinic boxes, this is still allowed.
<br><br>I agree that this will still not make PME perfect, since in any case there are still deviations from a radially uniform spreading of charge.<br><br>Tsjerk<br><br><div><span class="gmail_quote">On 3/30/06, <b class="gmail_sendername">
Erik Lindahl</b> &lt;<a href="mailto:lindahl@sbc.su.se">lindahl@sbc.su.se</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="direction: ltr;">Hi,<div><br></div><div><div><div>Box correction is already done automatically in Gromacs (ns.c) - what I meant here was &quot;fairly skewed compared to a rectangular box&quot;, e.g. 30 degrees. Since the charge spreading has to be done on a triclinic grid in that case it is no longer radially uniform, which _could_ affect accuracy a bit (
i.e., you might need to user higher interpolation order).</div><div><br></div><div>Cheers,</div></div><div style="direction: ltr;"><span class="sg"><div><br></div><div>Erik</div></span></div><div style="direction: ltr;"><span class="e" id="q_10a4b38eaaf5f77a_2">
<div><br></div><div><br></div><div><br></div><div>On Mar 30, 2006, at 2:05 PM, Tsjerk Wassenaar wrote:</div><br></span></div><div style="direction: ltr;"><blockquote type="cite"></blockquote></div><div style="direction: ltr;">
<span class="e" id="q_10a4b38eaaf5f77a_4"><br>Hi Erik,<br><br>Actually a severely skewed box is basically an imaginary concept. For normal MD dimensions it is always possible to perform a simple transformation to transform a box into one which complies to the Gromacs rules in an optimal way. That is, if the box vector lengths are around the same order of magnitude. Maybe a routine for this could be added to gromacs (editconf/genbox/grompp) to fix skewed boxes, and to optimize the use of PME. I added a routine to my version of 
pbc.c which could provide a basis. This does not change the system, but only uses other, equally valid, lattice vectors. Let me know if you're interested.<br><br>Tsjerk<br><br><div><span class="gmail_quote">On 3/30/06, <b class="gmail_sendername">
 Erik Lindahl</b> &lt;<a href="mailto:lindahl@sbc.su.se" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">lindahl@sbc.su.se</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 <div style="direction: ltr;">Hi,<div><br></div><div>As Tsjerk wrote we always work with the triclinic representation in the code, which fills up space nicely. Due to rounding it might not be a _perfect_ representation of 
e.g. a hexagonal box, truncated octahedron, rhombic dodecahedron, etc., but that shouldn't affect the physics of the triclinic box.</div><div><br></div><div>The reason I first asked about boxes is that the PME grid too has to be triclinic for such boxes, and I don't think anybody has done any detail PME accuracy analysis in the case of severely skewed boxes. 
</div><div><br></div><div>Cheers,</div></div><div style="direction: ltr;"><span><div><br></div><div>Erik</div><div><br></div></span></div><div style="direction: ltr;"><div><div></div><div style="direction: ltr;"> <span><div>
On Mar 30, 2006, at 9:43 AM, Tsjerk Wassenaar wrote:</div><br></span></div><div style="direction: ltr;"><blockquote type="cite"></blockquote></div><div style="direction: ltr;"> <span>Hi Michael,<br><br>It will in any case still fill up space in a periodic way. That can be done with an infinite number of triclinic boxes, of which the formal (perfectly regular) truncated octahedron is only one. Besides, the shift vectors are used to calculate the distances between particles, determine the neighbour lists, etc. If the coordinates are only stored with a certain precision, there is no point in having lattice vectors (box vectors) available with higher precision. You may want to read a bit on periodic boundary conditions from Henk Bekker (notably his 1996 JCC paper). 
<br><br>By the way.., don't use the truncated octahedron (unless it's for comparison), try a rhombic dodecahedron instead. It's smaller and most likely better in terms of the simulation results.<br><br>Cheers,<br><br>Tsjerk 
<br><br><div><span class="gmail_quote">On 3/30/06, <b class="gmail_sendername">Michael Shirts</b> &lt;<a href="mailto:mrshirts@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mrshirts@gmail.com 
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> That would be pbc (periodic boundary conditions), not pdc (who knows<br>
 what that is), of course . . .<br><br>On 3/30/06, Michael Shirts &lt;<a href="mailto:mrshirts@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mrshirts@gmail.com</a>&gt; wrote:<br>&gt; So, to get a truncated octahedron, or some other shape, you use 
<br>&gt; certain ratios for the box vectors as detailed in the manual.&nbsp;&nbsp;But the<br>&gt; box vectors in the .gro file are truncated to a certain precision, so<br>&gt; don't exactly meet these ratios.&nbsp;&nbsp;What is the consequence of not 
<br>&gt; exactly meeting these ratios?&nbsp;&nbsp;It won't precisely fill space in a<br>&gt; periodic way -- so does it mess up the pbc in some way?&nbsp;&nbsp;Anyone know?<br>&gt;&nbsp;&nbsp;Any experiences?&nbsp;&nbsp;Should I make sure the ratios are correct up to 
<br>&gt; machine precision?&nbsp;&nbsp;Is there a way to handle this more robustly?<br>&gt;<br>&gt; Thanks,<br>&gt; Michael Shirts<br>&gt; Research Fellow<br>&gt; Columbia University<br>&gt;<br>_______________________________________________ 
<br>gmx-users mailing list&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:gmx-users@gromacs.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gmx-users@gromacs.org</a><br><a href="http://www.gromacs.org/mailman/listinfo/gmx-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
 http://www.gromacs.org/mailman/listinfo/gmx-users</a><br>Please don't post (un)subscribe requests to the list. Use the <br>www interface or send it to <a href="mailto:gmx-users-request@gromacs.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
 gmx-users-request@gromacs.org</a>.<br>Can't post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.gromacs.org/mailing_lists/users.php 
</a><br></blockquote></div><br><br clear="all"><br>-- <br><br>Tsjerk A. Wassenaar, M.Sc.<br>Groningen Biomolecular Sciences and Biotechnology Institute (GBB)<br>Dept. of Biophysical Chemistry<br>University of Groningen<br>
 Nijenborgh 4<br>9747AG Groningen, The Netherlands<br>+31 50 363 4336<br></span></div><div style="direction: ltr;"><div style="margin: 0px;">_______________________________________________</div></div><div style="direction: ltr;">
 <span><div style="margin: 0px;">gmx-users mailing list<span>&nbsp; &nbsp; </span><a href="mailto:gmx-users@gromacs.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gmx-users@gromacs.org</a></div> <div style="margin: 0px;">
<a href="http://www.gromacs.org/mailman/listinfo/gmx-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.gromacs.org/mailman/listinfo/gmx-users</a></div><div style="margin: 0px;"> Please don't post (un)subscribe requests to the list. Use the
<span>&nbsp;</span></div><div style="margin: 0px;">www interface or send it to <a href="mailto:gmx-users-request@gromacs.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> gmx-users-request@gromacs.org
</a>.</div><div style="margin: 0px;">Can't post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.gromacs.org/mailing_lists/users.php 
</a></div> </span></div><div style="direction: ltr;"></div><br></div> </div><br>_______________________________________________<br>gmx-users mailing list &nbsp; &nbsp;<a href="mailto:gmx-users@gromacs.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
gmx-users@gromacs.org</a><br><a href="http://www.gromacs.org/mailman/listinfo/gmx-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.gromacs.org/mailman/listinfo/gmx-users</a><br>Please don't post (un)subscribe requests to the list. Use the
<br>www interface or send it to <a href="mailto:gmx-users-request@gromacs.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> gmx-users-request@gromacs.org</a>.<br>Can't post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.gromacs.org/mailing_lists/users.php </a><br><br></blockquote></div><br><br clear="all"><br>-- <br><br>Tsjerk A. Wassenaar, M.Sc.<br>Groningen Biomolecular Sciences and Biotechnology Institute (GBB)<br>Dept. of Biophysical Chemistry
<br>University of Groningen <br>Nijenborgh 4<br>9747AG Groningen, The Netherlands<br>+31 50 363 4336<br></span></div><div style="direction: ltr;"><div style="margin: 0px;">_______________________________________________</div>
</div><div style="direction: ltr;"><span class="q"><div style="margin: 0px;">gmx-users mailing list<span>&nbsp; &nbsp; </span><a href="mailto:gmx-users@gromacs.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
gmx-users@gromacs.org</a></div><div style="margin: 0px;"><a href="http://www.gromacs.org/mailman/listinfo/gmx-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.gromacs.org/mailman/listinfo/gmx-users
</a></div><div style="margin: 0px;">Please don't post (un)subscribe requests to the list. Use the<span>&nbsp;</span></div><div style="margin: 0px;">www interface or send it to <a href="mailto:gmx-users-request@gromacs.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
gmx-users-request@gromacs.org</a>.</div><div style="margin: 0px;">Can't post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.gromacs.org/mailing_lists/users.php
</a></div> </span></div><div style="direction: ltr;"></div><br></div>
</div><br>_______________________________________________<br>gmx-users mailing list &nbsp; &nbsp;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.gromacs.org/mailman/listinfo/gmx-users" target="_blank">
http://www.gromacs.org/mailman/listinfo/gmx-users</a><br>Please don't post (un)subscribe requests to the list. Use the<br>www interface or send it to <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:gmx-users-request@gromacs.org">
gmx-users-request@gromacs.org</a>.<br>Can't post? Read <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.gromacs.org/mailing_lists/users.php" target="_blank">http://www.gromacs.org/mailing_lists/users.php
</a><br><br></blockquote></div><br><br clear="all"><br>-- <br><br>Tsjerk A. Wassenaar, M.Sc.<br>Groningen Biomolecular Sciences and Biotechnology Institute (GBB)<br>Dept. of Biophysical Chemistry<br>University of Groningen
<br>Nijenborgh 4<br>9747AG Groningen, The Netherlands<br>+31 50 363 4336<br>