<!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>
<DIV>David:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt;<I> Dear Gmx'ers:<BR></I>&gt;<I>&nbsp; <BR></I>&gt;<I> As mentioned in 
the publication about shell water model, a shell <BR></I>&gt;<I> particle is 
connected to a dummy atom by a spring-like connection with <BR></I>&gt;<I> the 
following relationship:<BR></I>&gt;<I>&nbsp; <BR></I>&gt;<I> 1. 
K=sqr(qS)/(4*PHI*Epsilon*alpha), <BR></I>&gt;<I> 2. rsd=(4*PHI*Epsilon*alpha)*E 
/ qS;&nbsp; (rsd is the distance between shell <BR></I>&gt;<I> and dummy 
particles at any moment, and E is refered to electrical field <BR></I>&gt;<I> 
strength).<BR></I>&gt;<I>&nbsp; <BR></I>&gt;<I> Anyone can tell me where is the 
definition of two equations above, <BR></I>&gt;<I> especially in the case of* 
"isotropic polarization",* in GMX source code.<BR></I>&gt;<I> Because in my 
simulation, what I want to polarized is not a water <BR></I>&gt;<I> molecule. So 
I need a definite instruction, any suggestion?<BR></I></DIV>
<DIV>&gt;gmx/src/gmxlib/bondfree.c</DIV>
<DIV>&nbsp;</DIV>
<DIV>In this file, I can only locate the definition of K, and where is 
the&nbsp;formula for calculating&nbsp;rsd? Pls see the following code, it is 
refered to the case of isotropic polarization, ok?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>############################################################</DIV>
<DIV>real polarize(int nbonds,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_iatom 
forceatoms[],t_iparams forceparams[],<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
rvec x[],rvec f[],t_forcerec *fr,t_graph 
*g,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; matrix box,real lambda,real 
*dvdlambda,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_mdatoms *md,int ngrp,real 
egnb[],real egcoul[],<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_fcdata 
*fcd)<BR>{<BR>&nbsp; int&nbsp; i,m,ki,ai,aj,type;<BR>&nbsp; real 
dr,dr2,fbond,vbond,fij,vtot,ksh;<BR>&nbsp; rvec dx;<BR>&nbsp; ivec dt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; vtot = 0.0;<BR>&nbsp; for(i=0; (i&lt;nbonds); ) 
{<BR>&nbsp;&nbsp;&nbsp; type = forceatoms[i++];<BR>&nbsp;&nbsp;&nbsp; 
ai&nbsp;&nbsp; = forceatoms[i++];<BR>&nbsp;&nbsp;&nbsp; aj&nbsp;&nbsp; = 
forceatoms[i++];<BR>&nbsp;&nbsp;&nbsp; ksh&nbsp; = 
sqr(md-&gt;chargeT[aj])*ONE_4PI_EPS0/forceparams[type].polarize.alpha;</DIV>
<DIV>###############################################################</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>&gt;<I>&nbsp; <BR></I>&gt;<I> Secondly, how can I read the calculated 
value of spring constant K by <BR></I>&gt;<I> GMX after I defined "alpha" and 
"qS"? Can "debug" realize it? If yes, <BR></I>&gt;<I> how? Although I have used 
GMX for a long time, but that is the first <BR></I>&gt;<I> time for me to 
encounter such a problem.<BR></I></DIV>
<DIV>&gt;gmxdump -s topol.tpr | less<BR>&gt;search for POL<BR></DIV>
<DIV>Yes, I can find the defined value for "polarization: alpha", is it possible 
for me to know the calculated value of spring constant K? If yes, how?</DIV>
<DIV><BR>Thanks again.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Xie Yinghong</DIV>
<DIV>Hong Kong Univ.</DIV><I></I></BODY></HTML>