2013-10-09 10:42 GMT-06:00 Chandan Choudhury <
iit...@gmail.com>:
> Dear votca users,
>
> I would like to share my experience regarding the iteration of bonded
> interactions.
>
> I prefer to use the following script for iterating the bonds:
What is the advantage of that script over the bonded IBI in VOTCA 1.3?
Most of the stuff below can be done as post-update script as well.
>
> For the first iteration, I used the tabulated potentials generated from the
> csg_boltzmann. Upon its completion, I used the following scripts:
Some comments below:
>
> #!/bin/sh
> i_in=1
> if [ "$#" -ne 0 ]; then
"$#" is "number of arguments"! Does that make sense?
> echo $#
> cd step_00$i_in
> echo `pwd`
Simply use pwd instead.
> mkdir tables
> mv $1.bond.pot.cur $1.bond.pot.cur_I
> sed -e '1,4d' -e 's/$/ i/' $
1.bond.pot.new | tac | sed -e '1,3d' | tac
>> $1.bond.cut
Use
$ csg_call table change_flag $
1.bond.pot.new $1.bond.cut
instead
>
> source /opt/apps/votca/1.2.3/bin/VOTCARC.bash
> source /opt/apps/gmx/single/463/bin/GMXRC
> csg_call table smooth $1.bond.cut $1.bond.smooth
> csg_resample --in $1.bond.smooth --out $1.bond.refined --grid
> 0::0.001:0.5
Simply add "smooth" to the post_update list of the "bond" interaction
(see spce/realtime example)
> csg_call table extrapolate --function quadratic $1.bond.refined
> $1.bond.pot.cur
same here, add "extrapolate" to the post_update list of the "bond" interaction.
> csg_call --ia-type bonded --ia-name $1.bond --options ../convert.xml
> convert_potential gromacs
>
> cd ..
> rm 'done'
> i_c=`expr $i_in + 1`
> sed -i s/iterations_max\>$i_in/iterations_max\>$i_c/ settings.xml
> sh run.sh
Instead of the above four lines, simply set iterations_max=0 in
settings.xml and call
$ csg_inverse --do-iterations 1 --options settings.xml
to do one iteration at the time.
> For more options, visit
https://groups.google.com/groups/opt_out.