Dear LAMMPS users,
I am colliding two granular particles (LAMMPS downloaded April 2013) in normal (along X axis) and oblique (just off X axis - see script below) configurations and outputting:
-
The particle FX FY FZ components via dump custom fx fy fz etc
-
The pair FX FY FZ components from a compute pair/local fx fy fz etc command
With no other forces acting i.e. no gravity etc, the only force acting on the particles is the contact force, and therefore I would expect 1) and 2) to give the same values. I have investigated gran/hooke and gran/hooke/history pair styles and I find that:
a) In the case of damping = 0 and friction coeff = 0, the two outputs are identical
b) In the case of damping = 0 and friction coeff > 0, the two outputs are identical for the normal collision, but for the oblique collision I find a small discrepancy (approx 1%) in the FX components between output methods, and a large discrepancy (approx 50%) in the FY components.
c) In the case of damping > 0 and friction coeff = 0, there is a small discrepancy (<1%) in FX for the normal case, and a small discrepancy (<1%) in FX and FY for the oblique case.
d) In the case of damping > 0 and friction coeff > 0, there is a small discrepancy (<1%) in FX for the normal case, and for the oblique collision I find a small discrepancy (approx 1%) in the FX components between output methods, and a large discrepancy (approx 50%) in the FY components.
Please see an input script below that demonstrates the oblique case.
Has anyone experienced this or have an explanation for why the FX FY components are not always the same when output as pairs or as atom properties from dump custom?
Many thanks,
Chris
atom_style sphere
boundary f f f
newton off
communicate single vel yes
region reg block -10 10 -10 10 -10 10 units box
create_box 2 reg
create_atoms 1 single -0.5 0.1 0.0 units box
create_atoms 2 single 0.5 0.0 0.0 units box
group left type 1
group right type 2
neighbor 0.2 bin
neigh_modify delay 0
pair_style gran/hooke/history 200000 NULL 100 NULL 1 1
pair_coeff * *
timestep 3.6317e-5
velocity left set 5.0 0. 0. units box
velocity right set -5.0 0. 0. units box
compute pairs all pair/local fx fy fz
fix 1 all nve/sphere
compute 1 all erotate/sphere
thermo_style custom step atoms ke c_1 vol
thermo 1
thermo_modify lost ignore norm no
compute_modify thermo_temp dynamic yes
dump pairdump all local 1 dump.pairs c_pairs[1] c_pairs[2] c_pairs[3]
dump id all custom 1 dump.two_elastic id type fx fy fz
run 100