[gmx-users] Cannot obtain the expected pressure using the Parrinello-Rahman coupling in a gas-liquid system

GuoGuangjun guogj at hotmail.com
Tue Mar 10 10:46:10 CET 2009


Hi,

 

According to Berk's instructions, I first run a 5 ns-long berendesen P-coupling simulation, and then change to Parrinello-Rahman coupling for another 5 ns. The parameters and results are listed in the following. My question is why the average pressures in the X- and Y-directions is not equal to the expected pressure.

 

Parameters
================
; Pressure coupling     
Pcoupl                       = Parrinello-Rahman  #first using Berendesen
Pcoupltype                = semiisotropic
; Time constant (ps), compressibility (1/bar) and reference P (bar)
tau_p                        = 10
compressibility          = 0.0   4.5e-3
ref_p                        = 300.0 300.0

 

Berendesen results
==========================
Statistics over 5000001 steps [ 0.0000 thru 5000.0000 ps ], 8 data sets
All averages are exact over 5000001 steps

Energy                      Average       RMSD     Fluct.      Drift  Tot-Drift
-------------------------------------------------------------------------------
Temperature                 249.707    2.41024    2.41016 -1.40194e-05 -0.0700972
Pressure (bar)              243.116    121.066    121.063 0.000622752    3.11376
Box-X                       2.94006          0          0          0          0
Box-Y                       2.94006          0          0          0          0
Box-Z                       12.4074   0.125577   0.125523  2.555e-06   0.012775
Pres-XX (bar)                   215    201.347    201.317 0.00239071    11.9535
Pres-YY (bar)               214.344    201.326    201.324 -0.000590748   -2.95374
Pres-ZZ (bar)               300.005     178.98     178.98 6.82949e-05   0.341475

 

Parrinello-Rahman results
===========================
Statistics over 5000001 steps [ 0.0000 thru 5000.0000 ps ], 8 data sets
All averages are exact over 5000001 steps

Energy                      Average       RMSD     Fluct.      Drift  Tot-Drift
-------------------------------------------------------------------------------
Temperature                 250.013    2.46785    2.46772 1.72267e-05  0.0861337
Pressure (bar)              241.879    157.901      157.9 -0.000482977   -2.41489
Box-X                       2.94006          0          0          0          0
Box-Y                       2.94006          0          0          0          0
Box-Z                       12.3371   0.146996   0.146474 8.57548e-06  0.0428774
Pres-XX (bar)               210.352    218.481    218.478 -0.000784825   -3.92413
Pres-YY (bar)               215.589    218.513    218.513 -0.000188142  -0.940709
Pres-ZZ (bar)               299.697    236.273    236.272 -0.000475965   -2.37982

 

Regards,

Guang-Jun
 


From: gmx3 at hotmail.com
To: gmx-users at gromacs.org
Subject: RE: [gmx-users] Cannot obtain the expected pressure using the Parrinello-Rahman coupling in a gas-liquid system
Date: Mon, 2 Mar 2009 10:40:47 +0100



Hi,

So there is not incorrect coupled pressure at all!
All the coupled directions give the correct pressure.

The Berendsen works and PR not is probably because you have surface as well as a gas.
This makes the system very unstable and PR is not a very stable algorithm.
You first need to equilibrate with Berendsen and then you can switch to PR,
if you use the correct compressibility and a tau_p of around 10.

And, as I said before, with a surface you need to fix the x and y dimensions
(or use surface tension coupling).

Berk



From: guogj at hotmail.com
To: gmx-users at gromacs.org
Subject: RE: [gmx-users] Cannot obtain the expected pressure using the Parrinello-Rahman coupling in a gas-liquid system
Date: Mon, 2 Mar 2009 08:14:02 +0000



Hi, Berk,
 
I once considered what you mention and think it is enough to fix one boxlength (x/y or z) because the volume doesn't diverge. With the P-R and semiisotropy, when fixing z, the Pxx, Pyy, and Pzz are 300.7, 299.8, 393.2. When fixing x/y, the three components are 209.5 224.6, 300.2. You can see the pressures are always right for the coupled direction and are wrong for the fixed one. When all directions are coupled, the three components are 302.7, 297.4, and 300.3 as expected but the box-z increases and box-x/y decreases until the run crashes. Given the phenomenon is caused by the surface tension, why does it not occur with the Berendsen barostat?
 
Guang-Jun 
 


From: gmx3 at hotmail.com
To: gmx-users at gromacs.org
Subject: RE: [gmx-users] Cannot obtain the expected pressure using the Parrinello-Rahman coupling in a gas-liquid system
Date: Sun, 1 Mar 2009 22:18:51 +0100



Hi,

But this has nothing to do with bug 165, does it?

If you have a surface, you have surface tension which tries to minimize the surface area.
That is what you should get and what you indeed do get; x/y get smaller, z gets larger,
decreasing the surface area.

If you have a x/y surface, you should keep the x/y sizes constant and only couple z.

Berk



From: guogj at hotmail.com
To: gmx-users at gromacs.org
Subject: RE: [gmx-users] Cannot obtain the expected pressure using the Parrinello-Rahman coupling in a gas-liquid system
Date: Sun, 1 Mar 2009 05:09:39 +0000



Hi,
After I recheck the box, it is indeed the case described in bugzilla 165. The length of box increases in the Z-direction and decreases in the X/Y-direction with time. When I prolong the run, it exits abnormally at the time when the Box-X/Y reduces to a value less than 2*rvdw. When I fix the Box-Z by setting the compressibility as zero, the semiisotropic with P-R barostat produces the inaccurate pressure again. Now, I have to use the Berendsen barostat for my methane-water interface system.
Guang-Jun
 
> Date: Sat, 28 Feb 2009 19:53:10 +0100
> From: spoel at xray.bmc.uu.se
> To: gmx-users at gromacs.org
> Subject: Re: [gmx-users] Cannot obtain the expected pressure using the Parrinello-Rahman coupling in a gas-liquid system
> 
> GuoGuangjun wrote:
> > Hi,
> > 
> > 
> > The question is resolved by changing the pcoupltype from isotropic to 
> > semiisotropic. Correspondingly, the compressibility and ref_p are given 
> > for the x/y and z directions with the same original values, 
> > respectively. The test system includes 300 methane, 1725 water, and 300 
> > methane, forming two interfaces parallel to the xy-plane. Now, the 
> > accurate average-total-pressure is obtained from a short run (0.2 ns) 
> > with the default tau_p (1 ps).
> 
> Please be careful when you use this kind of pressure coupling, you may
> get the right pressure but you box might keep growing in one direction
> forever. See bugzilla 165. Actually I'm pretty sure it will.
> Unfortunately we don't really understand what is going on here.
> > 
> > 
> > 
> > Thank you for your kind replies and useful clues.
> > 
> > Guang-Jun
> > 
> > ------------------------------------------------------------------------
> > From: gmx3 at hotmail.com
> > To: gmx-users at gromacs.org
> > Subject: RE: [gmx-users] Cannot obtain the expected pressure using the 
> > Parrinello-Rahman coupling in a gas-liquid system
> > Date: Sat, 28 Feb 2009 15:00:50 +0100
> > 
> > Hi,
> > 
> > Is 327 bar the averge total pressure or one the of components of the 
> > pressure tensor?
> > You will have a surface tension acting in the system causing a 
> > difference in the different components.
> > 
> > Also it is still not completely clear to me how long you equilibrate and 
> > average.
> > Also the results will depend very much on the size of the system.
> > In small systems the pressure fluctuations are enormous.
> > With Berendsen these fluctuations will be surpressed, with PR not.
> > 
> > With PR I would use a tau_p of around 10 ps.
> > You might need to average the pressure over several (tens of?) ns (after 
> > several ns of equilibration)
> > to obtain a good average.
> > 
> > Berk
> > 
> > ------------------------------------------------------------------------
> > From: guogj at hotmail.com
> > To: gmx-users at gromacs.org
> > Subject: RE: [gmx-users] Cannot obtain the expected pressure using the 
> > Parrinello-Rahman coupling in a gas-liquid system
> > Date: Sat, 28 Feb 2009 13:51:15 +0000
> > 
> > Hi, Justin,
> > 
> > Thanks for your rapid reply. Let me decribes the question in more details.
> > First ,two gaseous mathane systems and one liquid water system are 
> > equilibrated at 300 bar and 250 K in advance. Then, the gas systems are 
> > put at the both sides of liquid. The combined system is performed for 
> > 3ns with the Parrinello-Rahman barostat, which produces a average 
> > pressure of 327 bar. I am strange to the value and several tests are 
> > run, mentioned previously. All these test runs take the end gro file of 
> > the 3ns-run as the beginning. When the berendsen barostat is used, 
> > the pressure is OK. When the Parrinello-Rahman barostat is used, the 
> > questionary pressure occurs again. Although I will try to make a long 
> > run for equilibrium, I think the equilibrium has reached because the 
> > ~330 bar is always obtained no matter how long simulations are sampled, 
> > from 0.2 ns to 3 ns. The version of Gromacs I used is 4.0.4. By the way, 
> > how long did you equilibrate your membrane system and how many atoms 
> > in it? Thanks again.
> > 
> > Guang-Jun
> > 
> > 
> > 
> > > Date: Sat, 28 Feb 2009 07:43:29 -0500
> > > From: jalemkul at vt.edu
> > > To: gmx-users at gromacs.org
> > > Subject: Re: [gmx-users] Cannot obtain the expected pressure using 
> > the Parrinello-Rahman coupling in a gas-liquid system
> > >
> > >
> > >
> > > GuoGuangjun wrote:
> > > > In fact, I once run the gas-liquid interface for 3 ns, the pressure is
> > > > still as high as 327 bar.
> > >
> > > There are two possibilities in my mind:
> > >
> > > 1. 3 ns is still not long enough.
> > > 2. Your gas phase is causing the problem. If the pressure is right 
> > for water
> > > alone, then the problem likely comes from the inclusion of your gas 
> > phase and
> > > whatever parameters you're using for whatever species you have in 
> > this phase.
> > > Examine your parameters and consider how they were derived and 
> > whether or not
> > > they are adequate.
> > >
> > > Also, what version of Gromacs are you using? There were some changes 
> > made to
> > > the Parrinello-Rahman barostat between 3.3.x and 4.0.x.
> > >
> > > -Justin
> > >
> > > > Guang-Jun
> > > >
> > > >
> > > > > Date: Sat, 28 Feb 2009 07:19:30 -0500
> > > > > From: jalemkul at vt.edu
> > > > > To: gmx-users at gromacs.org
> > > > > Subject: Re: [gmx-users] Cannot obtain the expected pressure using
> > > > the Parrinello-Rahman coupling in a gas-liquid system
> > > > >
> > > > >
> > > > >
> > > > > GuoGuangjun wrote:
> > > > > >
> > > > > > Hi, All,
> > > > > > I am simulating an interface system composed of methane gas and 
> > liquid
> > > > > > water in the NPT ensemble. The temperature is well controlled 
> > by using
> > > > > > either the Berendsen or the Nose-Hoover T-couplings. As for 
> > pressure,
> > > > > > the Berendsen P-coupling also works well. However, the
> > > > Parrinello-Rahman
> > > > > > P-coupling always produces a higher pressure than the expected. For
> > > > > > example, I set ref_p=300 bar in the mdp file but obtain an average
> > > > > > pressure as ~330 bar (over 0.5 ns). I test the tau_p in the range
> > > > 0.1 ~
> > > > > > 10 ps, the case does not change. When I test the sin! ! gle-phase
> > > > system,
> > > > > > i.e., pure water, the Parrinello-Rahman P-coupling can indeed 
> > produce
> > > > > > the expected pressure with the deviation less than 2 bar. What 
> > is the
> > > > > > matter in the two-phase system?
> > > > > >
> > > > >
> > > > > When I've used the Parrinello-Rahman barostat for membrane systems,
> > > > it works
> > > > > just fine. Perhaps 500 ps is too short of a timeframe to arrive at
> > > > the average.
> > > > > Heterogeneous systems often take longer to equilibrate.
> > > > >
> > > > > -Justin
> > > > >
> > > > > > Thanks a lot.
> > > > > > Guang-Jun
> > > > > >
> > > > > >
> > > > 
> > ------------------------------------------------------------------------
> > > > > > 立刻下载 MSN 保护盾,保障 MSN 安全稳定! 现在就下载!
> > > > > > <http://im.live.cn/safe/>
> > > > > >
> > > > > >
> > > > > >
> > > > 
> > ------------------------------------------------------------------------
> > > > > >
> > > > > > _______________________________________________
> > > > > >! ! ; gmx-users mailing list gmx-users at gromacs.org
> > > > > > http://www.gromacs.org/mailman/listinfo/gmx-users
> > > > > > Please search the archive at http://www.gromacs.org/search before
> > > > posting!
> > > > > > 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
> > > > >
> > > > > --
> > > > > ========================================
> > > > >
> > > > > Justin A. Lemkul
> > > > > Graduate Research Assistant
> > > > > Department of Biochemistry
> > > > > Virginia Tech
> > > > > Blacksburg, VA
> > > > > jalemkul[at]vt.edu | (540) 231-9080
> > > > > http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin
> > > > >
> > > > > ========================================
> > > > > _______________________________________________
> > > > > gmx-users mailing list gmx-users at gromacs.org
> > > > > http://www.gromacs.org/mailman/listinfo/gmx-users
> > > > > Please! ! search the archive at http://www.gromacs.org/search before
> > > > posting!
> > > > > 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
> > > >
> > > > 
> > ------------------------------------------------------------------------
> > > > 你和你的爱人都去过哪里?快来微软地图一起绘制爱的地图吧! 立即查看!
> > > > <http://ditu.live.com/?form=MICHAJ >
> > >
> > > --
> > > ========================================
> > >
> > > Justin A. Lemkul
> > > Graduate Research Assistant
> > > Department of Biochemistry
> > > Virginia Tech
> > > Blacksburg, VA
> > > jalemkul[at]vt.edu | (540) 231-9080
> > > http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin
> > >
> > > ========================================
> > > _______________________________________________
> > > gmx-users mailing list gmx-users at gromacs.org
> > > http://www.gromacs.org/mailman/listinfo/gmx-users
> > > Please search the archive at http://www.gromacs.org/search before 
> > posting!
> > > 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
> > 
> > ------------------------------------------------------------------------
> > 你和你的爱人都去过哪里?快来微软地图一起绘制爱的地图吧! 立即查看! 
> > <http://ditu.live.com/?form=MICHAJ>
> > ------------------------------------------------------------------------
> > Express yourself instantly with MSN Messenger! MSN Messenger 
> > <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/>
> > ------------------------------------------------------------------------
> > MSN 9.0 正式版上线,捆绑免费25G网络硬盘! 立刻下载! 
> > <http://im.live.cn/msn9/>
> > 
> > 
> > ------------------------------------------------------------------------
> > 
> > _______________________________________________
> > gmx-users mailing list gmx-users at gromacs.org
> > http://www.gromacs.org/mailman/listinfo/gmx-users
> > Please search the archive at http://www.gromacs.org/search before posting!
> > 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
> 
> 
> -- 
> David van der Spoel, Ph.D., Professor of Biology
> Molec. Biophys. group, Dept. of Cell & Molec. Biol., Uppsala University.
> Box 596, 75124 Uppsala, Sweden. Phone: +46184714205. Fax: +4618511755.
> spoel at xray.bmc.uu.se spoel at gromacs.org http://folding.bmc.uu.se
> _______________________________________________
> gmx-users mailing list gmx-users at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-users
> Please search the archive at http://www.gromacs.org/search before posting!
> 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



你和你的爱人都去过哪里?快来微软地图一起绘制爱的地图吧! 立即查看!


Express yourself instantly with MSN Messenger! MSN Messenger


使用新一代 Windows Live Messenger 轻松交流和共享! 立刻下载!


Express yourself instantly with MSN Messenger! MSN Messenger
_________________________________________________________________
上Windows Live 中国首页,下载最新版 MSN!
http://im.live.cn/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-users/attachments/20090310/3d96ba2d/attachment.html>


More information about the gromacs.org_gmx-users mailing list