<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi,<br><br>Unfortunately constraints can not be applied to virtual sites and grompp apparently<br>does not not check for this. I will add a check.<br>Constraints between virtual sites can lead to very complex constraint equations<br>between the masses involved. Thus the general case if difficult to implement.<br>Your cases seems quite simple and could be done with the pull code,<br>if it would support more than one reference group, which I was thinking to implement.<br><br>How many molecules do you have?<br><br>Berk<br><br>&gt; Date: Mon, 6 Dec 2010 11:43:45 +0100<br>&gt; From: fritsch@mpip-mainz.mpg.de<br>&gt; To: gmx-users@gromacs.org<br>&gt; Subject: [gmx-users] Constraining two virtual sites<br>&gt; <br>&gt; Hi everybody,<br>&gt; <br>&gt; <br>&gt; I have some trouble setting up topology for my, I admit, quite unusual <br>&gt; system. I need to constrain the center of masses of two groups of atoms <br>&gt; to a fixed 'bond' length. Since I have to do this for every molecule I <br>&gt; cannot use the 'pull constraint' of the free energy code.<br>&gt; <br>&gt; Thus in my topology I defined a com vsite for each group and tried to <br>&gt; apply a constraint between them. The atoms within each group are <br>&gt; connected by harmonic springs forming a ring polymer (for those of you <br>&gt; who know it: this is supposed to become the path integral representation <br>&gt; in the end...)<br>&gt; The topol.top for a single molecule test system looks like this:<br>&gt; <br>&gt; [ defaults ]<br>&gt; ; nbfunc   comb-rule    gen-pairs    fudgeLJ    fudgeQQ<br>&gt;   1       1        no        1.0    1.0<br>&gt; [ atomtypes ]<br>&gt; ;name  mass        charge    ptype  C6             C12           ; <br>&gt; sigma     epsilon<br>&gt;  A      1.00800     0  A      0           0<br>&gt;  B      1.00800     0  A      0           0<br>&gt;  C      1.00800     0  A      0           0<br>&gt;  VS     0.000       0   V      0           0<br>&gt; [ moleculetype ]<br>&gt; ; molname      nrexcl<br>&gt; SOL        0<br>&gt; [ atoms ]<br>&gt; ; id at resnr resnm atnm       cgnr      charge<br>&gt; 1  VS    1  A         V1        1         0<br>&gt; 2  VS    1  B         V2        2         0<br>&gt; 3  A     1  A         A          3         0 <br>&gt; 4  B     1  A         B          4         0 <br>&gt; 5  C     1  A         C          5         0 <br>&gt; 6  A     1  B         A          6         0 <br>&gt; 7  B     1  B         B          7         0 <br>&gt; 8  C     1  B         C          8         0 <br>&gt; [ virtual_sitesN ]<br>&gt; ;<br>&gt; 1 2 3 4 5<br>&gt; 2 2 6 7 8<br>&gt; [ bonds ]<br>&gt; ; ai aj<br>&gt; 3 4 1 0 1687<br>&gt; 4 5 1 0 1687<br>&gt; 5 3 1 0 1687<br>&gt; 6 7 1 0 1687<br>&gt; 7 8 1 0 1687<br>&gt; 8 6 1 0 1687<br>&gt; [ constraints ]<br>&gt; ; ai   aj funct   length_A<br>&gt; 1 2 1  0.1633<br>&gt; [ system ]<br>&gt; TEST<br>&gt; [ molecules ]<br>&gt; SOL     1<br>&gt; <br>&gt; The conf.gro is setup such that the constraint is satisfied initially.<br>&gt; <br>&gt; When I run the simulation with LINCS the constraint seem to be not <br>&gt; applied at all, the distance beetween the two vsites increases just as <br>&gt; in free diffusion. With SHAKE the system explodes immediately (without <br>&gt; error message, but every value is inf or nan).<br>&gt; I am running the system with the sd integrator in (vers. 4.5.3) but also <br>&gt; tried md and no thermostat, with no change in results.<br>&gt; <br>&gt; I appreciate any advice on this!<br>&gt; <br>&gt; Thanks,<br>&gt; Sebastian<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&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/Support/Mailing_Lists/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/Support/Mailing_Lists<br>                                               </body>
</html>