git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5817 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -367,6 +367,7 @@ void FixWallRegion::colloid(double r, double rad)
|
|||||||
|
|
||||||
void FixWallRegion::harmonic(double r)
|
void FixWallRegion::harmonic(double r)
|
||||||
{
|
{
|
||||||
fwall = 2.0*epsilon*r;
|
double dr = cutoff - r;
|
||||||
eng = epsilon*r*r;
|
fwall = 2.0*epsilon*dr;
|
||||||
|
eng = epsilon*dr*dr;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user