Hello,
I am facing a persistent “WARNING: One or more atoms are time integrated more than once” that I cannot solve. My simulation has two stages:
- A group of normal atoms (‘chalk’, type 2) falls onto a surface(blackboard).
- A rigid body (‘eraser’, type 3) starts moving to wipe the chalk.
The warning always appears at the beginning of stage 2 when the rigid body starts moving.
I have already tried many standard solutions, including:
- Using a single
fix nvt
for all moving particles. - Using a single
fix nve
combined withfix langevin
. - Running diagnostics that confirmed
fix rigid
works in isolation, and the two-stageunfix
/refix
logic also works in isolation with normal atoms.
My LAMMPS version is:(29 Aug 2024 - Update 2)
The source code that reproduces this warning is below. Could you please offer any insight?
Thank you for your help
code:
units lj
atom_style atomic
boundary p p f
region simbox block -40 40 -40 40 -7 30
create_box 3 simbox
lattice fcc 1.0
region blackboard_region block -15 25 -15 25 -1.0 1.0
create_atoms 1 region blackboard_region
group board type 1
mass 1 0.1
region chalk_region block -8 8 -8 8 7 8
create_atoms 2 random 20 12345 chalk_region
group chalk type 2
mass 2 1.0
region eraser_region block -5 15 -35 -15 2.0 5.0
create_atoms 3 region eraser_region
group eraser type 3
mass 3 1.0
group dynamic_particles type 2 3
displace_atoms board random 0.1 0.1 2.0 12345
2. Physics, Boundaries, and Fixes
pair_style lj/cut 2.5
pair_coeff 1 1 1.0 1.0
pair_coeff 1 2 10.0 2.0
pair_coeff 2 2 1.0 1.0
pair_coeff 3 1 1.0 1.0
pair_coeff 3 2 10.0 1.0
pair_coeff 3 3 0.0 0.0
fix wall_zlo all wall/lj93 zlo -7.0 1.0 1.0 2.5
fix wall_zhi all wall/lj93 zhi 30.0 1.0 1.0 2.5
fix freeze_board board setforce 0.0 0.0 0.0
fix rigid_eraser eraser rigid single
fix integrator_main dynamic_particles nve
fix thermostat_main dynamic_particles langevin 0.1 0.1 0.1 12345
3. Stage 1: Chalk falls
fix freeze_eraser_temp eraser setforce 0.0 0.0 0.0
velocity chalk set 0.0 0.0 -4.0
timestep 0.005
dump 1 all xyz 10 dump_blackboard.xyz
run 1200
4. Stage 2: Eraser moves
unfix freeze_eraser_temp
velocity eraser set 0.0 3.0 0.0
run 2500