~ubuntu-branches/debian/sid/lammps/sid

« back to all changes in this revision

Viewing changes to src/fix_wall_lj1043.cpp

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2015-04-29 23:44:49 UTC
  • mfrom: (5.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20150429234449-mbhy9utku6hp6oq8
Tags: 0~20150313.gitfa668e1-1
Upload into unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#include "math.h"
19
19
#include "fix_wall_lj1043.h"
20
20
#include "atom.h"
 
21
#include "math_const.h"
21
22
 
22
23
using namespace LAMMPS_NS;
 
24
using namespace MathConst;
23
25
 
24
26
/* ---------------------------------------------------------------------- */
25
27
 
30
32
 
31
33
void FixWallLJ1043::precompute(int m)
32
34
{
33
 
  coeff1[m] = 2.0/5.0 * epsilon[m] * pow(sigma[m],10.0);
34
 
  coeff2[m] = epsilon[m] * pow(sigma[m],4.0);
35
 
  coeff3[m] = pow(2.0,1/2.0) / 3 * epsilon[m] * pow(sigma[m],3.0);
 
35
  coeff1[m] = MY_2PI * 2.0/5.0 * epsilon[m] * pow(sigma[m],10.0);
 
36
  coeff2[m] = MY_2PI * epsilon[m] * pow(sigma[m],4.0);
 
37
  coeff3[m] = MY_2PI * pow(2.0,1/2.0) / 3 * epsilon[m] * pow(sigma[m],3.0);
36
38
  coeff4[m] = 0.61 / pow(2.0,1/2.0) * sigma[m];
37
39
  coeff5[m] = coeff1[m] * 10.0;
38
40
  coeff6[m] = coeff2[m] * 4.0;