Hi all,
I performed a simulation of glucose solution (42 glucoses in a TIP3 water box) and want to compute diffusion coefficient of glucose molecules. For diffusion coefficient calculation, I followed the two methods proposed by Rick and Lennart in a previous relevant thread (
http://www.charmm.org/ubbthreads/ubbthreads.php?ubb=showflat&Number=23584&page=1). However, I got different slope values from COOR ANALYSIS and CORREL. Here are the main commands in the input script:
-----------coor analysis
crystal define cubic @xlat @xlat @xlat 90.00 90.00 90.00
crystal build Noper 0 cutoff @xcut
image byres xcen 0.0 ycen 0.0 zcen 0.0 sele all end
traj firstu 51 nunit 1 begin 101000 skip 1000 stop 20000000
open unit 26 write form name O5-all.msd
coor anal select type o5 end - ! Glucose oxygens
firstu 51 nunit 1 nskip 1000 begin 101000 stop 20000000 -
imsd 26 -
rspin 0.0 rspout 999.9 -
ncors 500 -
xbox @xlat ybox @xlat zbox @xlat
-----------
----------correl
open unit 8 write unform name merge.dcd
OPEN READ UNIT 9 FILE NAME ../glucose.dcd
merge unfold xfluct firstu 9 nunit 1 outputu 8
close unit 8
open unit 8 write unform name merge.dcd
correl maxtime 20000000 maxatoms 180 maxseries 180
enter xy1 atom xyz mass sele segid aglc .and. resid 1 .and. (type o5) end
enter xy2 atom xyz mass sele segid aglc .and. resid 2 .and. (type o5) end
enter xy3 atom xyz mass sele segid aglc .and. resid 3 .and. (type o5) end
.
.
.
enter xy42 atom xyz mass sele segid aglc .and. resid 42 .and. (type o5) end
traj firstu 8 nunit 1 begin 101000 skip 1000 stop 20000000
corfun xy1 xy1 difference
write corr unit 11 dumb time
corfun xy2 xy2 difference
write corr unit 12 dumb time
corfun xy3 xy3 difference
write corr unit 13 dumb time
.
.
.
corfun xy42 xy42 difference
write corr unit 52 dumb time
----------average was computed from the 42 time series to get the correl-MSD.
Attached pls find the MSD-t plot (bold red: MSD-t from COOR ANAL; bold black: average MSD-t from CORREL; other lines: different time series from CORREL).
I suppose the two methods can get same results.Could you pls have a check of my input to see why I got very different slopes?
Thanks for your time.
Jeff