[gmx-users] Protein Dipole moment

Qiao Baofu qiaobf at gmail.com
Tue Mar 6 09:08:12 CET 2007


no. the com is not used in the g_dipoles.

The simplest way to use com is to replace the content of the { void
mol_dip() } with the following code.

************************************
  int  k,kk,l;
  real q,m,m_sum,q_sum;

  q_sum = 0;
  m_sum = 0;
  for(k=k0; (k<k1); k++) {
    kk = ma[k];
    q_sum += atom[kk].q;
    m_sum += atom[kk].m;
  }

  clear_rvec(mu);
  for(k=k0; (k<k1); k++) {
      kk = ma[k];
      m = atom[kk].m;
      q = atom[kk].q;
      q = e2d(q-m*q_sum/m_sum);
      for(l=0; l<DIM; l++)
          mu[l] += q*x[kk][l];
  }
************************************



2007/3/5, Georgios Patargias <G.N.Patargias at leeds.ac.uk>:
>
> Hello
>
> Does g_dipole take the center of mass of a molecule as the origin when
> calculates its dipole moment?
> If yes, is it the com at t=0 that is used or is it re-calculated for every
> frame?
>
> I had look at the source code but it wasn't very clear to me.
>
> Thank you very much in advance.
>
> Best wishes
> George
>
> Dr. George Patargias
> Polymer IRC Group
> University of Leeds
> Leeds, LS2 9JT, UK
>
> _______________________________________________
> gmx-users mailing list    gmx-users at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-users
> Please don't post (un)subscribe requests to the list. Use the
> www interface or send it to gmx-users-request at gromacs.org.
> Can't post? Read http://www.gromacs.org/mailing_lists/users.php
>



-- 
Sincerely yours,
**********************************************
Baofu Qiao, PhD
Frankfurt Institute for Advanced Studies
Max-von-Laue-Str. 1
60438 Frankfurt am Main, Germany TEL:+49-69-7984-7529
**********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-users/attachments/20070306/0498e39e/attachment.html>


More information about the gromacs.org_gmx-users mailing list