it might be the way how the unsampled areas are extrapolated. I think
the standard is linear interpolation (but i might be wrong on that).
You can always change that by using
1) csg_resample --in xxx --out yyy --grid 0:0.001:3 (choose proper
grid for your case)
2) csg_call table extrapolate --function quadtratic infile outfile
function can be linear,exponetnial, quadratic, ... check the help
3) convert potential to gromacs.
However, I don't think that will be an issue since the potential
anyways is very large and should never be sampled. In any case, plot
the potential and looks whether it looks sensible. If it has an easy
functional form, e.g. harmonic, I would recommend fitting a functional
form and use these parameters for gromacs input.
Best,
Victor
2012/2/13 Tinashe <tinash...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups "votca" group.
> To post to this group, send email to vo...@googlegroups.com.
> To unsubscribe from this group, send email to votca+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/votca?hl=en.
>
I had another look at the tutorials and updated the fmatch.xml in
propane/atomistic.
It does change much, but it make it easier to come to the table in propane/ibi.
So here is what I have done to get table_b1.xvg
$csg_stat --top topol.tpr --trj traj.trr --cg propane.xml --nt 5
--options fmatch.xml
taken from run.sh, it creates bond.dist.new, which has only points,
p>0 in the region 0.154 to 0.179.
$csg_resample --in bond.dist.new --out bond.dist.resample --grid
0.154:0.001:0.179
This crops away the unimportant region
$awk -v kbt=1.6629 '{print $1, -kbt*log($2/$1/$1)}' bond.dist.resample
> bond.pot.ib
(kbt=1.6629 as the propane example is done at T=200K) It does the
Boltzmann inversion.
$csg_call --options bond.xml --ia-type bond convert_potential gromacs
bond.pot.ib table_b1.xvg
If you plot table_b1.xvg in the region from 0.154 to 0.179 vs the
table_b1.xvg in ibi you will see that they look pretty similar.
Note1: the important region is the minimum + 2kbt.
Note2: the table_b1.xvg in ibi folder is a hand-made table done in 2008.
The rest of the deviation are due to technical things, which have
changed since the VOTCA paper in 2009, which are:
-extrapolation function (quadratic -> exponential)
-interpolation function (cubic -> akima spline)
-shift (none -> minimun to 0)
Cheers,
Christoph
> --
> You received this message because you are subscribed to the Google Groups "votca" group.
> To post to this group, send email to vo...@googlegroups.com.
> To unsubscribe from this group, send email to votca+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/votca?hl=en.
>
--
Christoph Junghans
Web: http://www.compphys.de
Strange. Which version of votca is that? There was a bug in that
script in version 1.2.0, but you seem to have 1.2.1.
Can you please post the output of
$csg_property --file bond.xml --path cg.inverse.gromacs.table_end
--short --print .
and
$csg_call --cat convert_potential gromacs
Christoph
> For more options, visit this group at http://groups.google.com/group/votca?hl=en.
> The following command gives the tabel_end value specified in bond.xml
> as output:
> $ csg_property --file bond.xml --path cg.inverse.gromacs.table_end --
> short --print .
> 0.3
>
> Your second request is as follows:
> $ csg_call --cat convert_potential gromacs
> #!/bin/bash
> ...
Both things look ok, which makes it hard to tell where this error comes from.
I would recommend to update to VOTCA 1.2.2 to see if the problem persists.
>
> To create the angle and dihedral potentials, are the following
> commands correct (I can email you the plots to have a more complete
> view)?:
Looks good!
>
> sed -e 's/$/ i/' BAB-angle.pot.ib | tac | sed -e '1,2d' | tac >
> BAB.cut
> csg_call table smooth BAB.cut BAB.smooth
> csg_resample --in BAB.smooth --out BAB.refined --grid
> 0::0.001:3.141592654
> csg_call table extrapolate --function sasha --region left BAB.refined
> BAB.refined
> csg_call table extrapolate --function sasha --region right BAB.refined
> BAB.refined
> awk '{print $1/3.141592654*180.0,$2}' BAB.refined > BAB.pot.cur
> csg_call --ia-type angle --ia-name BAB --options convert.xml
> convert_potential gromacs
>
> sed -e '1d' -e '$d' BBAB-dihedral.pot.ib > BBAB.cut
> #csg_call table smooth BBAB.cut BBAB.smooth <--- this command fails
You don't necessarily have to smooth the potential, only do that if is rough.
What was the error message here? (Update to Votca 1.2.2 first)
Christoph
> For more options, visit this group at http://groups.google.com/group/votca?hl=en.