There is a wrong equation in the line490, MY_4PI should be MY_PI*zt
This commit is contained in:
@ -32,7 +32,7 @@
|
||||
#include <cmath>
|
||||
|
||||
using namespace LAMMPS_NS;
|
||||
using MathConst::MY_4PI;
|
||||
using MathConst::MY_PI;
|
||||
using MathConst::MY_PI2;
|
||||
using MathConst::MY_TWOBYSIXTH;
|
||||
|
||||
@ -487,7 +487,7 @@ double PairYLZ::ylz_analytic(const int i, const int j, double a1[3][3], double a
|
||||
|
||||
uA = -energy_well * t1 * cos_t;
|
||||
U = uA * phi;
|
||||
dUdr = MY_4PI / (rcut - rmin) * (t1) *sin(t) * phi * energy_well;
|
||||
dUdr = MY_PI * zt / (rcut - rmin) * (t1) *sin(t) * phi * energy_well;
|
||||
dUdphi = uA;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user