forked from lijiext/lammps
Revert "avoid undesired negative forces for high particle velocities in granular models"
This reverts commit 066123007c
.
This commit is contained in:
parent
cfeb9b5ba5
commit
b62d526cc9
|
@ -183,7 +183,6 @@ void PairGranHertzHistory::compute(int eflag, int vflag)
|
|||
ccel = kn*(radsum-r)*rinv - damp;
|
||||
polyhertz = sqrt((radsum-r)*radi*radj / radsum);
|
||||
ccel *= polyhertz;
|
||||
if (ccel < 0.0) ccel = 0.0;
|
||||
|
||||
// relative velocities
|
||||
|
||||
|
@ -391,7 +390,6 @@ double PairGranHertzHistory::single(int i, int j, int itype, int jtype,
|
|||
ccel = kn*(radsum-r)*rinv - damp;
|
||||
polyhertz = sqrt((radsum-r)*radi*radj / radsum);
|
||||
ccel *= polyhertz;
|
||||
if (ccel < 0.0) ccel = 0.0;
|
||||
|
||||
// relative velocities
|
||||
|
||||
|
|
|
@ -161,7 +161,6 @@ void PairGranHooke::compute(int eflag, int vflag)
|
|||
|
||||
damp = meff*gamman*vnnr*rsqinv;
|
||||
ccel = kn*(radsum-r)*rinv - damp;
|
||||
if (ccel < 0.0) ccel = 0.0;
|
||||
|
||||
// relative velocities
|
||||
|
||||
|
@ -303,7 +302,6 @@ double PairGranHooke::single(int i, int j, int itype, int jtype, double rsq,
|
|||
|
||||
damp = meff*gamman*vnnr*rsqinv;
|
||||
ccel = kn*(radsum-r)*rinv - damp;
|
||||
if (ccel < 0.0) ccel = 0.0;
|
||||
|
||||
// relative velocities
|
||||
|
||||
|
|
|
@ -223,7 +223,6 @@ void PairGranHookeHistory::compute(int eflag, int vflag)
|
|||
|
||||
damp = meff*gamman*vnnr*rsqinv;
|
||||
ccel = kn*(radsum-r)*rinv - damp;
|
||||
if (ccel < 0.0) ccel = 0.0;
|
||||
|
||||
// relative velocities
|
||||
|
||||
|
@ -688,7 +687,6 @@ double PairGranHookeHistory::single(int i, int j, int itype, int jtype,
|
|||
|
||||
damp = meff*gamman*vnnr*rsqinv;
|
||||
ccel = kn*(radsum-r)*rinv - damp;
|
||||
if (ccel < 0.0) ccel = 0.0;
|
||||
|
||||
// relative velocities
|
||||
|
||||
|
|
Loading…
Reference in New Issue