espressomd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ESPResSo] A bug in tab.h ---- Re: Surface Tension - simplebilayer.tcl


From: Zunjing Wang
Subject: [ESPResSo] A bug in tab.h ---- Re: Surface Tension - simplebilayer.tcl
Date: Wed, 15 Jul 2009 11:46:46 -0400
User-agent: Microsoft-Entourage/11.4.0.080122

Hi, Salvador,

I’ve ever checked the source code of tabulated force, and I think there is a bug in the file “tab.h”

In function
MDINLINE int calc_tab_bond_force(Particle *p1, Particle *p2, Bonded_ia_parameters *iaparams, double dx[3], double force[3])

 for(i=0;i<3;i++)
    force[i] = -fac*dx[i];

Should be:
 for(i=0;i<3;i++)
    force[i] = fac*dx[i];

Please correct it and to see if the surface tension is still inconsistent between the two cases.

Let me know your result.


Zunjing
---------------------------------------------------------------------
Ms. Zun-Jing WANG, Ph.D.
Research Associate of Physics           ++1-412-268-2771 (office)
Carnegie Mellon University                ++1-412-681-0648 (fax)
5000 Forbes Avenue, Wean 6418       ++1-412-268-2740 (Donna Thomas)
Pittsburgh, PA 15213                  address@hidden
---------------------------------------------------------------------



On 7/14/09 6:27 PM, "Salvador Herrera Velarde" <address@hidden> wrote:

Dear All,
 I need to calculate the surface tension of a planar membrane.
 I believe that the surface tension is calculated something like:
 gamma = Lz*(Pzz-(Pxx+Pyy)/2).
 So, if this equation is correct, I have to calculate the pressure tensor and
 then using the components (average) Pzz,Pxx & Pyy to obtain gamma, right?
 I was wondering though, is the pressure tensor and hence surface tension
 calculated over the entire simulation box? Should I divide by two?
 
 Besides, I have been working a little with mbtools package. I ran some simulations
 for the simplebilayer script, but I get different results with the analytical and
 tabulated potentials.
 
 Here are some lines of the scripts:
 ====================================================================================================
 set moltypes [list { 0 lipid { 0 1 1 } { 0 1 } } ]
 
 ===Tabulated
 lappend nb_interactions [list 0 0 tabulated 9_095_11.tab ]
 lappend nb_interactions [list 0 1 tabulated 9_095_11.tab ]
 lappend nb_interactions [list 1 1 tabulated n9_c160_22.tab ]
 
 ===Defined Potential
 set lj_eps 1.0
 set lj_cutoff 2.5
 set ljshift 0.0
 set ljoffset 0.0
 set lj_sigmah 0.95
 set lj_sigma 1.0
 
 lappend nb_interactions [list 0 0 lennard-jones $lj_eps $lj_sigmah [expr 1.1225*$lj_sigmah] [expr 0.25*$lj_eps] $ljoffset ]
 lappend nb_interactions [list 0 1 lennard-jones $lj_eps $lj_sigmah [expr 1.1225*$lj_sigmah] [expr 0.25*$lj_eps] $ljoffset ]
 lappend nb_interactions [list 1 1 lennard-jones $lj_eps $lj_sigma  [expr 1.1225*$lj_sigma] [expr 0.25*$lj_eps] $ljoffset ]
 
 # We use a special type of cosine attractive potential for the tail tail interactions.
 lappend nb_interactions [list 1 1 lj-cos2 $lj_eps $lj_sigma $ljoffset 1.6 ]
 ===========================================================================================================
 I checked my scripts but I couldn't find the mistake.
 Could you help me with this issue?
 
 Thanks a lot for your time.
 
 Salvador


_______________________________________________
ESPResSo mailing list
address@hidden
https://fias.uni-frankfurt.de/mailman/listinfo/espresso


reply via email to

[Prev in Thread] Current Thread [Next in Thread]