<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR></HEAD>
<BODY>
<P>David:</P>
<P><I>&nbsp; <BR></I>&gt;<I>&nbsp; &gt;/ Dear Gmx'ers:<BR></I>&gt;<I> /&gt;/ 
<BR></I>&gt;<I> /&gt;/ As mentioned in the publication about shell water model, 
a shell<BR></I>&gt;<I> /&gt;/ particle is connected to a dummy atom by a 
spring-like connection with<BR></I>&gt;<I> /&gt;/ the following 
relationship:<BR></I>&gt;<I> /&gt;/ <BR></I>&gt;<I> /&gt;/ 1. 
K=sqr(qS)/(4*PHI*Epsilon*alpha),<BR></I>&gt;<I> /&gt;/ 2. 
rsd=(4*PHI*Epsilon*alpha)*E / qS;&nbsp; (rsd is the distance between 
<BR></I>&gt;<I> shell<BR></I>&gt;<I> /&gt;/ and dummy particles at any moment, 
and E is refered to electrical field</P>
<P></I>&gt;<I> /&gt;/ strength).<BR></I>&gt;<I> /&gt;/ <BR></I>&gt;<I> /&gt;/ 
Anyone can tell me where is the definition of two equations 
above,<BR></I>&gt;<I> /&gt;/ especially in the case of* "isotropic 
polarization",* in GMX source <BR></I>&gt;<I> code.<BR></I>&gt;<I> /&gt;/ 
Because in my simulation, what I want to polarized is not a water<BR></I>&gt;<I> 
/&gt;/ molecule. So I need a definite instruction, any 
suggestion?<BR></I>&gt;<I> /<BR></I>&gt;<I>&nbsp; 
&gt;gmx/src/gmxlib/bondfree.c<BR></I>&gt;<I>&nbsp; <BR></I>&gt;<I> In this file, 
I can only locate the definition of K, and where is <BR></I>&gt;<I> the formula 
for calculating rsd? Pls see the following code, it is <BR></I>&gt;<I> refered 
to the case of isotropic polarization, ok?<BR></I>rsd is the input for the 
equation, as it is just the instantaneous <BR>distance between shell and 
particle.<BR>&gt;<I>&nbsp; <BR></I>&gt;<I>&nbsp; <BR></I>&gt;<I> 
############################################################<BR></I>&gt;<I> real 
polarize(int nbonds,<BR></I>&gt;<I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
t_iatom forceatoms[],t_iparams 
forceparams[],<BR></I>&gt;<I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rvec 
x[],rvec f[],t_forcerec *fr,t_graph 
*g,<BR></I>&gt;<I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; matrix box,real 
lambda,real *dvdlambda,<BR></I>&gt;<I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
t_mdatoms *md,int ngrp,real egnb[],real 
egcoul[],<BR></I>&gt;<I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_fcdata 
*fcd)<BR></I>&gt;<I> {<BR></I>&gt;<I>&nbsp;&nbsp; int&nbsp; 
i,m,ki,ai,aj,type;<BR></I>&gt;<I>&nbsp;&nbsp; real 
dr,dr2,fbond,vbond,fij,vtot,ksh;<BR></I>&gt;<I>&nbsp;&nbsp; rvec 
dx;<BR></I>&gt;<I>&nbsp;&nbsp; ivec dt;<BR></I>&gt;<I>&nbsp; 
<BR></I>&gt;<I>&nbsp;&nbsp; vtot = 0.0;<BR></I>&gt;<I>&nbsp;&nbsp; for(i=0; 
(i&lt;nbonds); ) {<BR></I>&gt;<I>&nbsp;&nbsp;&nbsp;&nbsp; type = 
forceatoms[i++];<BR></I>&gt;<I>&nbsp;&nbsp;&nbsp;&nbsp; ai&nbsp;&nbsp; = 
forceatoms[i++];<BR></I>&gt;<I>&nbsp;&nbsp;&nbsp;&nbsp; aj&nbsp;&nbsp; = 
forceatoms[i++];<BR></I>&gt;<I>&nbsp;&nbsp;&nbsp;&nbsp; ksh&nbsp; = 
<BR></I>&gt;<I> 
sqr(md-&gt;chargeT[aj])*ONE_4PI_EPS0/forceparams[type].polarize.alpha;<BR></I>&gt;<I> 
###############################################################<BR></I>&gt;<I>&nbsp; 
<BR></I>&gt;<I>&nbsp; <BR></I>&gt;<I> <BR></I>&gt;<I>&nbsp; 
<BR></I>&gt;<I>&nbsp; <BR></I>&gt;<I> <BR></I>&gt;<I>&nbsp; &gt;/ 
<BR></I>&gt;<I> /&gt;/ Secondly, how can I read the calculated value of spring 
constant K by<BR></I>&gt;<I> /&gt;/ GMX after I defined "alpha" and "qS"? Can 
"debug" realize it? If yes,<BR></I>&gt;<I> /&gt;/ how? Although I have used GMX 
for a long time, but that is the first<BR></I>&gt;<I> /&gt;/ time for me to 
encounter such a problem.<BR></I>&gt;<I> /<BR></I>&gt;<I>&nbsp; &gt;gmxdump -s 
topol.tpr | less<BR></I>&gt;<I>&nbsp; &gt;search for POL<BR></I>&gt;<I> Yes, I 
can find the defined value for "polarization: alpha", is it <BR></I>&gt;<I> 
possible for me to know the calculated value of spring constant K? If 
<BR></I>&gt;<I> yes, how?<BR></I></P>
<P>&gt; It is not printed anywhere. If you want to see it you have to turn on 
<BR>&gt; the debug flag for mdrun.<BR></P>
<P>Very sorry to bother you again, could you point it out much more detailed? I 
have never used the "-debug" flag.</P>
<P>For example, in original, I used "mdrun -v -s full -e full -o full -c 
after_full -g full" to run my simulation. </P>
<P>Where should "-debug" flag put in? And, where or which file can I find the 
calculated value of spring constant K? </P>
<P>Thanks, but I am actually lost to this point.</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>Xie Yinghong</P>
<P>Hong Kong Univ.</P>
<P>&nbsp;</P></BODY></HTML>