<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Dear Richard,<BR>
&nbsp;<BR>
First of all i really appreciate the help. I&nbsp;'ve figured out&nbsp;the cross product part&nbsp;of the equations, but the |A+B| part i still have figured it out.<BR>
&nbsp;<BR>
I've been&nbsp;trying to crack this bit but&nbsp;I still can't do it.<BR>
&nbsp;<BR>
<STRONG>0.07 * cos (109.47/2) / | xOH1 + xOH2 | </STRONG>-&gt; this bit is what i dont get below is what i've done<BR>
&nbsp;<BR>
based on what you said xOH1 is the distance of O to H (bond lenght of OH being 0.09572, x-axis 0.07595, y-axis 0.058588) and the bond angel of HOH=104.52<BR>
&nbsp;<BR>
putiing it into the equation:<BR>
&nbsp;<BR>
0.07 * cos (109.47/2) / | xOH1 + xOH2 | ---(expansion)---&gt;&nbsp;&nbsp;&nbsp;&nbsp; 0.07*cos (109.47/2) /(2*|OH|*cos(HOH))<BR>
&nbsp;<BR>
plugging in the numbers:<BR>
&nbsp;<BR>
0.07*cos (109.47/2) /(2*0.09572*cos(104.52)) =&nbsp;&nbsp; 0.040440/0.0479974 = -0.842546 (the answer i get)<BR>
&nbsp;<BR>
-0.842546 is the answer i get how ever the answer i should be getting is -0.344908&nbsp;. I've tried to look for solutions to this but i still don't understand it.<BR>
It would be very helpful if you could show me where i have gone wrong.<BR>
&nbsp;<BR>
&nbsp;<BR>
Thanks,<BR>
Pratik Kaku<BR>
&nbsp;<BR>
<BR>&nbsp;<BR>
<DIV>
&gt; Subject: Re: [gmx-users] TIP5P calculating the dummy positions<BR>&gt; From: richard.broadbent09@imperial.ac.uk<BR>&gt; To: gmx-users@gromacs.org<BR>&gt; Date: Fri, 21 Oct 2011 11:40:04 +0100<BR>&gt; <BR>&gt; Dear Pratik,<BR>&gt; <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; I am trying to create the tip6p itp file. In order to do that, since<BR>&gt; &gt; it is an overlap of the tip4p and tip5p model (visually)<BR>&gt; &gt; I am trying to understand the a, b, and c values for the position of<BR>&gt; &gt; the dummy charge in the tip5p models.<BR>&gt; &gt; <BR>&gt; &gt; Below is the part of the script that is of my concern.<BR>&gt; &gt; _________________________________________________________<BR>&gt; &gt; [ dummies3 ]<BR>&gt; &gt; ; The position of the dummy is computed as follows:<BR>&gt; &gt; ;<BR>&gt; &gt; ; The distance from OW to L is 0.07 nm, the geometry is tetrahedral<BR>&gt; &gt; ; (109.47 deg)<BR>&gt; &gt; ; Therefore, a = b = 0.07 * cos (109.47/2) / | xOH1 + xOH2 |<BR>&gt; xOH1 is the vector from O to H1, (not just the x component)<BR>&gt; | xOH1 + xOH2 | is normalisation factor as these vectors are not of unit<BR>&gt; length<BR>&gt; &gt; ; c = 0.07 * sin (109.47/2) / | xOH1 X xOH2 |<BR>&gt; again | xOH1 X xOH2 | is a normalisation factor as the cross product of<BR>&gt; the vector from O to H1 with the vector from O to H2 will not be a unit<BR>&gt; vector.<BR>&gt; &gt; ; =20<BR>&gt; &gt; ;<BR>&gt; &gt; ; Using | xOH1 X xOH2 | = | xOH1 | | xOH2 | sin (H1-O-H2)<BR>&gt; <BR>&gt; This is a standard vector identity the modulus of the cross product of<BR>&gt; two vectors is the product of the moduli times the sine of the angle<BR>&gt; between them:<BR>&gt; <BR>&gt; |V X U| = |V||U|sin(theta)<BR>&gt; <BR>&gt; Hope that's helpful<BR>&gt; <BR>&gt; Richard<BR>&gt; <BR>&gt; &gt; ; | xOH1 + xOH2 | = 2 | xOH1 | cos (H1-O-H2)<BR>&gt; &gt; ; Dummy pos x4 = x1 + a*x21 + b*x31 + c*(x21 X x31)<BR>&gt; &gt; ; Dummy from funct a b c<BR>&gt; &gt; 4 1 2 3 4 -0.344908 -0.344908 -6.4437903493<BR>&gt; &gt; 5 1 2 3 4 -0.344908 -0.344908 6.4437903493<BR>&gt; &gt; _______________________________________________________<BR>&gt; &gt; <BR>&gt; &gt; I do understand everything except the bolded bit.<BR>&gt; &gt; <BR>&gt; &gt; so far i have understood that |xOH1| is the magnitude of OH on the<BR>&gt; &gt; x-axis, but putting those values in i don't the the correct a, b, c.<BR>&gt; &gt; I'm not good in vectors and i have had a look at the gromacs manual<BR>&gt; &gt; (the 3out model ni figure 4.16).<BR>&gt; &gt; <BR>&gt; &gt; I don't know where i am going wrong. <BR>&gt; &gt; <BR>&gt; &gt; I would appreciate the help thanks.<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; Thanks,<BR>&gt; &gt; <BR>&gt; &gt; Pratik Kaku<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/Support/Mailing_Lists/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/Support/Mailing_Lists<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></DIV>                                               </div></body>
</html>