[gmx-users] a question about output virial
Lu Lanyuan
lulanyuan at msn.com
Wed Jun 13 23:59:26 CEST 2007
Hello,
>From the mailinglist archive It is said the scalar virial from the g_energy
vir=(1/3)*(vir(xx)+vir(yy)+vir(zz))=-0.5*sum(i<j)(F(ij)*r(ij)), if
interactions are pairwised.
I tried to verify this by using the relation
PV=(2/3)*E(kin)+(1/3)*sum(i<j)(F(ij)*r(ij)).
All instantaneous virial, kinetic energy, pressure and volume can be
obtained from g_energy.
But I found the scalar virial I got using the first equation need to be
multiplied by 3 to satisfy the second equation. That is to say, vir is
actually -0.5*(1/3)*sum(i<j)(F(ij)*r(ij)) if I use the definition
vir=(1/3)*(vir(xx)+vir(yy)+vir(zz)).
Can anyone give any comments about this?
Thanks!
Lanyuan Lu
_________________________________________________________________
与联机的朋友进行交流,请使用 Live Messenger;
http://get.live.com/messenger/overview
More information about the gromacs.org_gmx-users
mailing list