mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4108 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
c5ea28b372
commit
501157da07
|
@ -149,7 +149,10 @@ void PairDPD::compute(int eflag, int vflag)
|
|||
}
|
||||
|
||||
if (eflag) {
|
||||
evdwl = -a0[itype][jtype] * r * (1.0 - 0.5*r/cut[itype][jtype]);
|
||||
// unshifted eng
|
||||
//evdwl = -a0[itype][jtype]*r * (1.0-0.5*r/cut[itype][jtype]);
|
||||
// eng shifted to 0.0 at cutoff
|
||||
evdwl = 0.5*a0[itype][jtype]*cut[itype][jtype] * wd*wd;
|
||||
evdwl *= factor_dpd;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue