debug for improper amoeba
This commit is contained in:
@ -29,7 +29,7 @@ read_data data.ubiquitin fix amtype NULL "Tinker Types" &
|
|||||||
fix pit pitorsions PiTorsions &
|
fix pit pitorsions PiTorsions &
|
||||||
fix bit bitorsions BiTorsions
|
fix bit bitorsions BiTorsions
|
||||||
|
|
||||||
pair_style amoeba include angle
|
pair_style amoeba include improper
|
||||||
pair_coeff * * amoeba_ubiquitin.prm amoeba_ubiquitin.key
|
pair_coeff * * amoeba_ubiquitin.prm amoeba_ubiquitin.key
|
||||||
|
|
||||||
special_bonds lj/coul 0.5 0.5 0.5 one/five yes
|
special_bonds lj/coul 0.5 0.5 0.5 one/five yes
|
||||||
|
|||||||
@ -116,10 +116,10 @@ void AngleAmoeba::compute(int eflag, int vflag)
|
|||||||
if (enable_angle) {
|
if (enable_angle) {
|
||||||
tflag = pflag[type];
|
tflag = pflag[type];
|
||||||
|
|
||||||
//if (tflag && nspecial[i2][0] == 3)
|
if (tflag && nspecial[i2][0] == 3)
|
||||||
// tinker_anglep(i1,i2,i3,type,eflag);
|
tinker_anglep(i1,i2,i3,type,eflag);
|
||||||
//else
|
else
|
||||||
// tinker_angle(i1,i2,i3,type,eflag);
|
tinker_angle(i1,i2,i3,type,eflag);
|
||||||
|
|
||||||
// bondangle = bond-stretch cross term in Tinker
|
// bondangle = bond-stretch cross term in Tinker
|
||||||
|
|
||||||
|
|||||||
@ -197,7 +197,13 @@ void ImproperAmoeba::compute(int eflag, int vflag)
|
|||||||
fd[2] = dedcos * (dccdzid+deedzid);
|
fd[2] = dedcos * (dccdzid+deedzid);
|
||||||
fb[0] = -fa[0] - fc[0] - fd[0];
|
fb[0] = -fa[0] - fc[0] - fd[0];
|
||||||
fb[1] = -fa[1] - fc[1] - fd[1];
|
fb[1] = -fa[1] - fc[1] - fd[1];
|
||||||
fb[2] = -fa[1] - fc[2] - fd[2];
|
fb[2] = -fa[2] - fc[2] - fd[2];
|
||||||
|
|
||||||
|
printf("IMP DBAC %d %d %d %d: angle %g eng %g dedcos %g "
|
||||||
|
"fD %g %g %g fA %g %g %g fC %g %g %g\n",
|
||||||
|
atom->tag[id],atom->tag[ib],atom->tag[ia],atom->tag[ic],
|
||||||
|
angle,e,dedcos,fd[0],fd[1],fd[2],fa[0],fa[1],fa[2],
|
||||||
|
fc[0],fc[1],fc[2]);
|
||||||
|
|
||||||
// apply force to each of 4 atoms
|
// apply force to each of 4 atoms
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user