Hi, Lammps users,
I am using Lammps to study the water confined by graphene plates, I tested both GPU and MPI versions by same in file and same workstation, but I found they give different results for the forces.
I am interested to know the force on the top plate.
the GPU (lmp -in in.file -suffix gpu) gives:
Time-averaged data for fix AvgForce
TimeStep v_Fx v_Fy v_Fz
12000 -7.13704 -16.4764 -10.9221
13000 -5.14517 -15.1253 -6.36327
14000 -4.52943 -14.2805 -7.42559
15000 -5.48405 -14.9411 -5.76414
16000 -6.0178 -15.2261 -2.54366
17000 -6.48376 -15.3021 -3.01277
18000 -6.57296 -15.6543 -2.93381
19000 -6.55271 -15.8128 -2.21396
20000 -6.50738 -15.9492 -1.14217
21000 -6.64415 -16.0919 -1.06237
the MPI(mpirun -np 8 lmp -in in.file -suffix off) gives:
Time-averaged data for fix AvgForce
TimeStep v_Fx v_Fy v_Fz
12000 0.113459 -0.565165 -12.9022
13000 -0.496116 -0.384446 -0.972526
14000 -0.767956 0.0540231 -0.467098
15000 -0.555208 -0.0063562 -2.35734
16000 -0.461405 0.0502843 -2.87141
17000 -0.50697 0.133622 -2.45268
18000 -0.539162 0.117244 -3.78739
19000 -0.485516 -0.0477696 -2.94935
20000 -0.406805 -0.14959 -2.33821
21000 -0.366608 -0.0976216 -2.28078
Then, I tested the Lennard-Jones (12,6) liquid, both GPU and MPI give the same results,
GPU:
Time-averaged data for fix AvgForce
TimeStep c_Force[1] v_Fx c_Force[2] v_Fy c_Force[3] v_Fz
190000 -8.71807 -8.58169 0.403003 0.609383 131.898 2.2943
191000 -8.61066 -8.47399 0.198354 0.40511 132.567 2.96295
192000 -8.52606 -8.38907 0.373179 0.580302 131.231 1.62694
193000 -8.5452 -8.4079 0.522183 0.729722 131.603 1.99896
194000 -8.79363 -8.65606 0.324429 0.53234 130.505 0.900753
195000 -8.99448 -8.85659 0.391631 0.599935 131.041 1.43689
196000 -9.11922 -8.98109 0.336555 0.545277 130.926 1.32213
197000 -9.14649 -9.00807 0.349229 0.558293 130.562 0.957633
198000 -9.18694 -9.04827 0.194978 0.404408 130.345 0.740839
199000 -9.371 -9.23209 0.442688 0.652438 129.218 -0.386337
200000 -9.61209 -9.47295 0.275291 0.485417 129.778 0.173577
MPI:
Time-averaged data for fix AvgForce
TimeStep c_Force[1] v_Fx c_Force[2] v_Fy c_Force[3] v_Fz
190000 -8.86421 -8.86421 0.198975 0.198975 130.162 0.561966
191000 -8.95512 -8.95512 0.377872 0.377872 130.601 1.00124
192000 -9.04524 -9.04524 0.463869 0.463869 130.429 0.828658
193000 -9.26326 -9.26326 0.283051 0.283051 129.83 0.230195
194000 -9.23922 -9.23922 0.414481 0.414481 129.982 0.381742
195000 -9.20557 -9.20557 0.415045 0.415045 129.336 -0.264181
196000 -9.20473 -9.20473 0.417215 0.417215 130.188 0.587944
197000 -9.32355 -9.32355 0.302511 0.302511 129.508 -0.0921782
198000 -8.93576 -8.93576 0.319337 0.319337 128.712 -0.888238
199000 -9.15378 -9.15378 0.71008 0.71008 128.527 -1.07268
200000 -9.16993 -9.16993 0.655037 0.655037 128.936 -0.66446
Best wishes,
Wei
in+data+output.tar.bz2 (131 KB)