ERROR: Atom sorting has bin size = 0.0 (../atom.cpp:1438)

Submitted by zihan on Sun, 07/07/2024 - 22:51

Hello everyone, I am a beginner in LIGGGHTS. I encountered the following error and hope you can help me resolve it.
The Error is Atom sorting has bin size = 0.0 (../atom.cpp:1438)
I try so many times for the bin size, but it doesnt work.
# LIGGGHTS input script for a ball falling onto sand

# Initialization
units si
atom_style granular

# Create simulation box
boundary f f f
newton off

region box block 0 0.1 0 0.1 0 0.1
create_box 2 box

# Define materials
fix m1 all property/global youngsModulus peratomtype 1.e7 1.e7
fix m2 all property/global poissonRatio peratomtype 0.25 0.25
fix m3 all property/global coefficientRestitution peratomtypepair 2 0.5 0.5 0.5 0.5
fix m4 all property/global coefficientFriction peratomtypepair 2 0.5 0.5 0.5 0.5

# Create sand particles
region sand block 0 0.1 0 0.1 0 0.05
create_atoms 1 random 10000 15485863 sand
set type 1 diameter 0.002 density 2500

# Create falling ball
region ball sphere 0.05 0.05 0.075 0.01
create_atoms 2 single 0.05 0.05 0.075
set type 2 diameter 0.02 density 7850

# Define gravity and time integration
fix g all gravity 9.81 vector 0.0 0.0 -1.0
fix nve all nve/sphere

# Neighbor list and timestep
neighbor 0.001 bin
neigh_modify every 1 delay 0 check yes
timestep 0.0001

# Output settings
thermo 100
thermo_style custom step atoms ke

# Run simulation
run 100000

Tannaz | Sat, 11/09/2024 - 23:47

I'm encountering the same error, but I think in your case, the bin size should be at least equal to the diameter of the particles.