<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi,<br><br>I changed that part as well and also updated it for the fact that grompp<br>in 4.0 never generates zero parameters, but always generates a fatal error<br>when parameters are missing.<br><br>Berk<br><br>&gt; Date: Tue, 14 Jul 2009 14:21:49 +0200<br>&gt; Subject: Re: [gmx-users] Re: Problems with non-bonded interactions using         OPLSAA<br>&gt; From: mikewykes@gmail.com<br>&gt; To: gmx-users@gromacs.org<br>&gt; <br>&gt; Thanks for the clarification, that explains everything.<br>&gt; <br>&gt; Perhaps page 112 of the v4 manual could be updated too :<br>&gt; <br>&gt; "generate pairs = no (the default, get 1-4 interactions from the pair<br>&gt; list, when parameters are<br>&gt; not present in the list give a warning and use zeros) or yes (generate<br>&gt; 1-4 interactions which<br>&gt; are not present in the pair list from normal Lennard-Jones parameters<br>&gt; using FudgeLJ)"<br>&gt; <br>&gt; Replacing 'interactions' with 'parameters' would make things clearer here too..<br>&gt; <br>&gt; Regards<br>&gt; <br>&gt; Mike<br>&gt; <br>&gt; On Tue, Jul 14, 2009 at 12:55 PM, Berk Hess&lt;gmx3@hotmail.com&gt; wrote:<br>&gt; &gt; Hi,<br>&gt; &gt;<br>&gt; &gt; Again, to avoid confusion:<br>&gt; &gt; there are two (or three) completely separate parts to this issue in Gromacs.<br>&gt; &gt;<br>&gt; &gt; 1) The generation of the actual pair interactions in the [ pairs ] section<br>&gt; &gt; in the topology (.top) file. pdb2gmx does this for you.<br>&gt; &gt; If you write a topology by hand, you also have to add the 1-4 interactions<br>&gt; &gt; in the [ pairs ] section by hand.<br>&gt; &gt;<br>&gt; &gt; 2) The generation of the interaction parameters for the interactions<br>&gt; &gt; in the [ pairs ] section. This is what gen-pairs switches and this is what<br>&gt; &gt; the comment in the manual is about. Pair parameters are taken from<br>&gt; &gt; the [ pairtypes ] section in the force field file or topology file.<br>&gt; &gt; If parameters are not found for a certain pair of atom types in [ pairtypes<br>&gt; &gt; ],<br>&gt; &gt; they will be generated when gen-pairs is true, a fatal error will be<br>&gt; &gt; generated when gen-pairs is false.<br>&gt; &gt; (I will change "interactions" to "interaction parameters" in the quoted<br>&gt; &gt; line of the manual.)<br>&gt; &gt;<br>&gt; &gt; 3) pairs are bonded interactions and bonded interactions in no way affect<br>&gt; &gt; the calculation of non-bonded interactions in Gromacs. Thus to not calculate<br>&gt; &gt; interactions twice, you need to use nrexcl=3 when you put 1-4 interactions<br>&gt; &gt; in the [ pairs ] section.<br>&gt; &gt;<br>&gt; &gt; Berk<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; Date: Tue, 14 Jul 2009 13:43:19 +0300<br>&gt; &gt; From: ntelll@gmail.com<br>&gt; &gt; To: gmx-users@gromacs.org<br>&gt; &gt; Subject: Re: [gmx-users] Re: Problems with non-bonded interactions using<br>&gt; &gt; OPLSAA<br>&gt; &gt;<br>&gt; &gt; Hi.<br>&gt; &gt; I found the same behavior with both 3 (3.3.3) and 4 (4.0.5) versions on<br>&gt; &gt; x86_64.<br>&gt; &gt; What I found is :<br>&gt; &gt; 1. gen-pair correctly generates the 1-4 parameters (verified with gmxdump -s<br>&gt; &gt; topol.tpr)<br>&gt; &gt; &nbsp; &nbsp; But with no [pairs] defined, 1-4 interactions<br>&gt; &gt; &nbsp; &nbsp; are not calculated no matter what the scale factor is.<br>&gt; &gt; &nbsp;&nbsp; One has to define the [pairs] to calculate scaled 1-4.<br>&gt; &gt; 2. It seems that in the case of nrexcl 2 and pairs defined, the 1-4<br>&gt; &gt; interactions are calculated twice<br>&gt; &gt; &nbsp; &nbsp; (once with scaling 1 in LJ(SR)&nbsp; and once scaled by whatever the scaling<br>&gt; &gt; factor is in LJ-14)<br>&gt; &gt; &nbsp; &nbsp; With nrexcl 3 and pairs defined only the scaled 1-4 are calculated.<br>&gt; &gt;<br>&gt; &gt; Probably the manual is not clear at this point (p.99 of v4 manual), where it<br>&gt; &gt; states :<br>&gt; &gt; The GROMOS force fields list all these interactions explicitly, but this<br>&gt; &gt; section might be<br>&gt; &gt; empty for force fields like OPLS that calculate the 1-4 interactions by<br>&gt; &gt; scaling.<br>&gt; &gt;<br>&gt; &gt; To verify this I did :<br>&gt; &gt; zero steps with a single molecule in a large box, varying nrexcl and scaling<br>&gt; &gt; factors with pairs defined.<br>&gt; &gt; What I found is :<br>&gt; &gt; NREXCL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SCALE FACTOR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LJ(SR)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LJ-14<br>&gt; &gt; 2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 3.22186<br>&gt; &gt; 0<br>&gt; &gt; 2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3.22186<br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bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -1.93987<br>&gt; &gt; 5.16172<br>&gt; &gt;<br>&gt; &gt; Scaling in 1-4 works as it is expected.<br>&gt; &gt; The total LJ (LJ(SR) + LJ-14) in the case of nrexcl 3 and scale factor 1.0<br>&gt; &gt; is 3.22185 that is equal to<br>&gt; &gt; the LJ(SR) in the case of nrexcl 2 and scale factor 0. This means that with<br>&gt; &gt; nrexcl 2,<br>&gt; &gt; the 1-4 are calculated unscaled no matter the value of&nbsp; scaling factor AND<br>&gt; &gt; scaled by scaling factors,<br>&gt; &gt; i.e. scaling 1.5 instead of 0.5 as Mike notes,<br>&gt; &gt; Similar for Coulombic interactions.<br>&gt; &gt; What I use is nrexcl 3 and pairs defined.<br>&gt; &gt;<br>&gt; &gt; DD<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Berk Hess wrote:<br>&gt; &gt;<br>&gt; &gt; Hi,<br>&gt; &gt;<br>&gt; &gt; There is surely no problem with the gen-pairs option, as that would cause<br>&gt; &gt; serious trouble with nearly all simulations performed with Gromacs.<br>&gt; &gt;<br>&gt; &gt; gen-pairs only sets the generation of pair parameters, not of the actual<br>&gt; &gt; pair interactions in the topology.<br>&gt; &gt;<br>&gt; &gt; I have no clue to what it going wrong in your system.<br>&gt; &gt; You can file a bugzilla at bugzilla.gromacs.org.<br>&gt; &gt;<br>&gt; &gt; Berk<br>&gt; &gt;<br>&gt; &gt;&gt; Date: Mon, 13 Jul 2009 21:09:37 +0200<br>&gt; &gt;&gt; From: mikewykes@gmail.com<br>&gt; &gt;&gt; To: gmx-users@gromacs.org<br>&gt; &gt;&gt; Subject: [gmx-users] Re: Problems with non-bonded interactions using<br>&gt; &gt;&gt; OPLSAA<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Dear all<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; I have since found the problem. For some reason gen-pairs = yes option<br>&gt; &gt;&gt; is not working, so my 1-4 interactions were being completely excluded<br>&gt; &gt;&gt; and not scaled by 0.5 as they should have been. Defining all 1-4 pairs<br>&gt; &gt;&gt; in a [ pairs ] section in conjunction with nexcl =3 in the topology<br>&gt; &gt;&gt; solved the problem.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; I was not sure whether to use nexcl =2 or nexcl =3 in the case of<br>&gt; &gt;&gt; scaled 1-4 interactions, but by trial and error I found that one<br>&gt; &gt;&gt; should use nexcl =3, otherwise you have the full 1-4 interaction + the<br>&gt; &gt;&gt; scaled one, so in total a scaling of 1.5 instead of 0.5.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Any ideas why gen-pairs = yes option is not working would be much<br>&gt; &gt;&gt; appreciated.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Thanks to those who responded to my first email,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Mike<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; On Thu, Jul 2, 2009 at 6:54 PM, Mike Wykes&lt;mikewykes@gmail.com&gt; wrote:<br>&gt; &gt;&gt; &gt; Dear all<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; &nbsp;I would like to simulate beta cyclodextrin in various organic<br>&gt; &gt;&gt; &gt; solvents with the OPLSAA FF for Carbohydrates (J Comput Chem 18:<br>&gt; &gt;&gt; &gt; 1955-1970, 1997) but am having problems with the short range Coulomb<br>&gt; &gt;&gt; &gt; and LJ interactions.<br>&gt; &gt;&gt; &gt; This FF (and OPLS in general) does not assign LJ parameters to<br>&gt; &gt;&gt; &gt; hydrogen atoms in OH groups, relying on the repulsion between oxygens<br>&gt; &gt;&gt; &gt; to keep the hydrogen (charge +0.435 ) of one OH group getting too<br>&gt; &gt;&gt; &gt; close to the O (charge -0.7 ) of another.<br>&gt; &gt;&gt; &gt; However in MD simulations, the hydrogen of one OH group collides with<br>&gt; &gt;&gt; &gt; the O of another, and shortly after the system explodes.<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; Obviously, this could be a mistake of how I converted the parameters<br>&gt; &gt;&gt; &gt; in the paper into gromacs parameters, so I have checked this and found<br>&gt; &gt;&gt; &gt; no mistakes. Some of the parameters are taken from regular OPLS,<br>&gt; &gt;&gt; &gt; allowing me to check my conversion by comparing to the parameters in<br>&gt; &gt;&gt; &gt; gromacs/share/top/ffoplsaa*.itp files.<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; Out of curiosity I implemented the same forcefield in the tinker md<br>&gt; &gt;&gt; &gt; package and the O...H system was stable during MD, with no O..H<br>&gt; &gt;&gt; &gt; collisions. Comparing the energies of exactly the same geometry of<br>&gt; &gt;&gt; &gt; beta cyclodextrin with the same OPLS parameters shows identical bonded<br>&gt; &gt;&gt; &gt; interactions, but differences in the non-bonded interactions:<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tinker(kcal/mol) &nbsp; gmx (kj/mol) &nbsp; gmx(kcal/mol)<br>&gt; &gt;&gt; &gt; &nbsp;difference<br>&gt; &gt;&gt; &gt; Total &nbsp; Potential energy 312 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -1416.98 -338.67 650.67<br>&gt; &gt;&gt; &gt; &nbsp;Bond Stretching &nbsp; &nbsp; &nbsp; &nbsp;23.32 &nbsp; 97.58 &nbsp; 23.32 &nbsp; 0<br>&gt; &gt;&gt; &gt; Angle Bending &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 30.38 &nbsp; 127.11 &nbsp;30.38 &nbsp; 0<br>&gt; &gt;&gt; &gt; &nbsp;Torsional Angle &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;312.06 &nbsp;1305.64 312.06 &nbsp;0<br>&gt; &gt;&gt; &gt; Van der Waals &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 13.69 &nbsp; -119.03 -28.45 &nbsp;42.14<br>&gt; &gt;&gt; &gt; Charge-Charge &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -67.45 &nbsp;-2828.29 &nbsp; &nbsp; &nbsp; &nbsp;-675.98 608.52<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; In both cases the molecule was in the gas phase, all non-bonded<br>&gt; &gt;&gt; &gt; interactions being treated with a cutoff of 1.5 nm.<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; Any suggestions as to what could be going wrong in my gromacs<br>&gt; &gt;&gt; &gt; calculations would be much appreciated.<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; Please find my mdp, top and itp files below. I am using version 4.0.5.<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; Many thanks,<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; Mike<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; _______________________________________________<br>&gt; &gt;&gt; gmx-users mailing list gmx-users@gromacs.org<br>&gt; &gt;&gt; http://lists.gromacs.org/mailman/listinfo/gmx-users<br>&gt; &gt;&gt; Please search the archive at http://www.gromacs.org/search before posting!<br>&gt; &gt;&gt; Please don't post (un)subscribe requests to the list. Use the<br>&gt; &gt;&gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; &gt;&gt; Can't post? Read http://www.gromacs.org/mailing_lists/users.php<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; Express yourself instantly with MSN Messenger! MSN Messenger<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; _______________________________________________<br>&gt; &gt; gmx-users mailing list    gmx-users@gromacs.org<br>&gt; &gt; http://lists.gromacs.org/mailman/listinfo/gmx-users<br>&gt; &gt; Please search the archive at http://www.gromacs.org/search before posting!<br>&gt; &gt; Please don't post (un)subscribe requests to the list. Use the<br>&gt; &gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; &gt; Can't post? Read http://www.gromacs.org/mailing_lists/users.php<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; Express yourself instantly with MSN Messenger! MSN Messenger<br>&gt; &gt; _______________________________________________<br>&gt; &gt; gmx-users mailing list &nbsp; &nbsp;gmx-users@gromacs.org<br>&gt; &gt; http://lists.gromacs.org/mailman/listinfo/gmx-users<br>&gt; &gt; Please search the archive at http://www.gromacs.org/search before posting!<br>&gt; &gt; Please don't post (un)subscribe requests to the list. Use the<br>&gt; &gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; &gt; Can't post? Read http://www.gromacs.org/mailing_lists/users.php<br>&gt; &gt;<br>&gt; _______________________________________________<br>&gt; gmx-users mailing list    gmx-users@gromacs.org<br>&gt; http://lists.gromacs.org/mailman/listinfo/gmx-users<br>&gt; Please search the archive at http://www.gromacs.org/search before posting!<br>&gt; Please don't post (un)subscribe requests to the list. Use the <br>&gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; Can't post? Read http://www.gromacs.org/mailing_lists/users.php<br><br /><hr />Express yourself instantly with MSN Messenger! <a href='http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/' target='_new'>MSN Messenger</a></body>
</html>