<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>This is quite wrong.<br><br>Your normal atoms are virtual sites defined from the two masses<br>(you did it the other way around).<br>If you put the masses at the oxygen postitions (which gives an incorrect<br>moment of intertia, so incorrect dynamics, but correct thermodynamics),<br>then your coefficients are 0.5 for C and 0 and 1 for the O's.<br><br>Berk<br><br>&gt; Date: Tue, 14 Jul 2009 14:39:10 +0100<br>&gt; From: Jennifer.Williams@ed.ac.uk<br>&gt; To: gmx-users@gromacs.org<br>&gt; Subject: [gmx-users] Re: Best way to handle linear rigid molecules.<br>&gt; <br>&gt; Hi gmx users<br>&gt; <br>&gt; I am still having problems modelling small linear molecules. Following  <br>&gt; advice from the forum (see below), I tried to define CO2 using 2 dummy  <br>&gt; atoms (with averaged masses) which I placed in the same positions as  <br>&gt; my oxygen atoms. (This involves having to replicate coordinates for O  <br>&gt; in my pdb file which will be fiddly when I have hundreds of CO2  <br>&gt; molecules).<br>&gt; <br>&gt; Here is my .itp file for CO2;<br>&gt; <br>&gt; <br>&gt; [ atomtypes ]<br>&gt; ;   type      mass    charge    ptype       c6            c12<br>&gt;     C_CO    0.0000000     0.5406       A         0.0000      0.00000000<br>&gt;     O_CO    0.0000000    -0.2703       A         0.29847     1.10765301<br>&gt;     DUM    22.004975      0.0000       V         0.0000      0.00000000<br>&gt; <br>&gt; <br>&gt; [ moleculetype ]<br>&gt; ; name  nrexcl<br>&gt; CO2         2<br>&gt; <br>&gt; [ atoms ]<br>&gt; ;   nr  type    resnr   residu  atom    cgnr    charge        mass<br>&gt; 1       C_CO     1       CO2    C_CO      1        0.5406  0.0000000<br>&gt; 2       O_CO     1       CO2    O_CO      1       -0.2703  0.0000000<br>&gt; 3       O_CO     1       CO2    O_CO      1       -0.2703  0.0000000<br>&gt; 4       DUM      1       CO2    DUM       1        0.0000  22.004975<br>&gt; 5       DUM      1       CO2    DUM       1        0.0000  22.004975<br>&gt; <br>&gt; <br>&gt; [ constraints ]<br>&gt; ;  ai  aj funct           c0           c1<br>&gt; 2       3        1           0.24176<br>&gt; <br>&gt; [ virtualsites2]<br>&gt; ;  ai    aj    ak       funct   c0      c1<br>&gt;      4     2     3       1       0.0000<br>&gt;      5     2     3       1       0.24176<br>&gt; <br>&gt; I am not sure what the final terms in the virtual sites section stand  <br>&gt; for and I have not found a lot of detail in the manual (section 4.7  <br>&gt; and 5.5.2). I assumed that the first term defines the virtual atom  <br>&gt; site, the second and third are the positions of the real atoms which  <br>&gt; the virtual atom is placed in relation to. What does the function ?1?  <br>&gt; stand for?  Here I tried to place the virtual atoms in the same  <br>&gt; positions as my ?real? oxygens- I am not sure if this will be allowed?<br>&gt; <br>&gt; However, when I run this I get:<br>&gt; <br>&gt; <br>&gt; ERROR 1 [file MCM_CO2.top, line 8230]:<br>&gt;    atom C_CO (Res CO2-1) has mass 0<br>&gt; <br>&gt; <br>&gt; ERROR 2 [file MCM_CO2.top, line 8230]:<br>&gt;    atom O_CO (Res CO2-1) has mass 0<br>&gt; <br>&gt; <br>&gt; <br>&gt; ERROR 3 [file MCM_CO2.top, line 8230]:<br>&gt;    atom O_CO (Res CO2-1) has mass 0<br>&gt; <br>&gt; <br>&gt; <br>&gt; ERROR 4 [file MCM_CO2.top, line 8230]:<br>&gt;    virtual site DUM (Res CO2-1) has non-zero mass 22.005<br>&gt;         Check your topology.<br>&gt; <br>&gt; <br>&gt; <br>&gt; ERROR 5 [file MCM_CO2.top, line 8230]:<br>&gt;    virtual site DUM (Res CO2-1) has non-zero mass 22.005<br>&gt;         Check your topology.<br>&gt; <br>&gt; So the approach of modelling dummy atoms with a mass and the real  <br>&gt; atoms as mass-less generates errors. How do I solve this? Importantly  <br>&gt; I need to get the MSD of the CO2 molecules so I am a bit confused with  <br>&gt; the approach of using virtual atom sites to model CO2. Which groups  <br>&gt; would I then select for the MSD? The virtual site with the mass or the  <br>&gt; real atoms site which is mass-less?  Is this approach realistic?<br>&gt; <br>&gt; I have also tried to model CO2 2 different approaches<br>&gt; <br>&gt; 1.        Using bond constraints and setting the bond angle to 180 and using  <br>&gt; a large bending constant to keep the molecule effectively rigid.<br>&gt; <br>&gt; Here I got the following error message and the run stopped after 2 timesteps;<br>&gt; <br>&gt; Step 1, time 0.001 (ps)  LINCS WARNING<br>&gt; relative constraint deviation after LINCS:<br>&gt; rms 0.969889, max 10.563440 (between atoms 1072 and 1074)<br>&gt; bonds that rotated more than 30 degrees:<br>&gt;   atom 1 atom 2  angle  previous, current, constraint length<br>&gt;     1072   1073   89.9    0.1210   0.6876      0.1209<br>&gt;     1072   1074   92.4    0.1210   1.3978      0.1209<br>&gt;     1075   1076   86.8    0.1209   0.1303      0.1209<br>&gt;     1075   1077   86.8    0.1209   0.1307      0.1209<br>&gt; Wrote pdb files with previous and current coordinates<br>&gt; <br>&gt; <br>&gt; 2.        Using constraints to keep the C-O bond fixed to 0.12 and another  <br>&gt; constraint between O and O of 0.24. I hoped this would keep the O-C-O  <br>&gt; linear.<br>&gt; <br>&gt; Here, the md.log file contained the following;<br>&gt; <br>&gt; <br>&gt; 6 constraints are involved in constraint triangles,<br>&gt; will apply an additional matrix expansion of order 4 for couplings<br>&gt; between constraints inside triangles<br>&gt; <br>&gt; The job ran to completion but on viewing the trajectory, the CO2  <br>&gt; molecules are only approximately linear.<br>&gt; <br>&gt; If anyone has an example file for a triatomic linear molecule like  <br>&gt; CO2, I?d be very grateful if you could post it so I could use it as a  <br>&gt; template,<br>&gt; <br>&gt; I am using gromacs version 4.0.5<br>&gt; <br>&gt; Thanks<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; Hi,<br>&gt; <br>&gt; This question has been asked several times before on this list.<br>&gt; The proper way to handle this in Gromacs is to introduce two dummy  <br>&gt; mass particles<br>&gt; in such a way the total mass and the moment of inertia is identical to CO2.<br>&gt; Then you can construct the positions of the three mass-less C and O atoms from<br>&gt; the positions of the masses using virtual sites (see the manual).<br>&gt; <br>&gt; Berk<br>&gt; <br>&gt; <br>&gt; <br>&gt; Quoting Jennifer Williams &lt;Jennifer.Williams@ed.ac.uk&gt;:<br>&gt; <br>&gt; &gt; Hello users,<br>&gt; &gt;<br>&gt; &gt; I am using gromacs v 4.0.5<br>&gt; &gt;<br>&gt; &gt; What is the best way to treat linear triatomic molecules such as CO2.<br>&gt; &gt; Is there some kind of rigid algorthym as in DL_POLY?<br>&gt; &gt;<br>&gt; &gt; In the asbsence of a ?rigid? algorthym. I initially intended to ?fix?<br>&gt; &gt; the C=O bond length using constraints (as below) and somehow ?fix? the<br>&gt; &gt; O=C=O bond angle to 180.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; [ atomtypes ]<br>&gt; &gt; ;   type      mass    charge    ptype       c6            c12<br>&gt; &gt;    C_CO2    12.01115    0.5406      A        0.0000      0.00000000<br>&gt; &gt;    O_CO2    15.9994    -0.2703      A        0.29847     1.10765301<br>&gt; &gt;<br>&gt; &gt; [ moleculetype ]<br>&gt; &gt; ; name  nrexcl<br>&gt; &gt; CO2         2<br>&gt; &gt;<br>&gt; &gt; [ atoms ]<br>&gt; &gt; ;   nr  type    resnr   residu  atom    cgnr    charge        mass<br>&gt; &gt; 1       C_CO2     1       CO2    C_CO2      1        0.5406  12.01115<br>&gt; &gt; 2       O_CO2     1       CO2    O_CO2      1       -0.2703  15.9994<br>&gt; &gt; 3       O_CO2     1       CO2    O_CO2      1       -0.2703  15.9994<br>&gt; &gt;<br>&gt; &gt; [ constraints ]<br>&gt; &gt; ;  ai  aj funct           c0           c1<br>&gt; &gt; 1       2        1           0.12088<br>&gt; &gt; 1       3        1           0.12088<br>&gt; &gt;<br>&gt; &gt; [ angles ]<br>&gt; &gt; ;  ai    aj    ak       funct   c0      c1<br>&gt; &gt;     2     1     3       1       180.00<br>&gt; &gt;<br>&gt; &gt; First question... How do I go about fixing this angle to 180degrees?<br>&gt; &gt; Should I just make c1 extremely large? Is there a more elegant way of<br>&gt; &gt; going about this? Someone also mentioned using a virtual site<br>&gt; &gt; representation for the C. Any comments on this welcome.<br>&gt; &gt;<br>&gt; &gt; I read some posts which imply that the angle bending code apparently can't<br>&gt; &gt; handle angles of exactly 180 degrees.<br>&gt; &gt;<br>&gt; &gt; http://www.mail-archive.com/gmx-users@gromacs.org/msg09979.html<br>&gt; &gt;<br>&gt; &gt; This was a while ago so perhaps this has been dealt with in the current<br>&gt; &gt; version of gromacs?<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Thanks<br>&gt; <br>&gt; <br>&gt; <br>&gt; -- <br>&gt; The University of Edinburgh is a charitable body, registered in<br>&gt; Scotland, with registration number SC005336.<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/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 />See all the ways you can stay connected <a href='http://www.microsoft.com/windows/windowslive/default.aspx' target='_new'>to friends and family</a></body>
</html>