Hi. I’m simulating a bead-sping polymer network and am trying to create a spherical void in the middle of the sample by deleting both bonds and atoms in a region ‘def’. The script
units lj
atom_style bond
read_data data.chain
special_bonds lj/coul 1 1 1
neighbor 0.4 bin
neigh_modify every 1 delay 1
communicate single vel yes
bond_style quartic
bond_coeff 1 1434.3 -0.7589 0.0 1.5 67.2234
dump mydump all custom 100000 chain_un*.xyz id type xu yu zu
timestep 0.01
fix 1 all npt temp 1.0 1.0 1.0 iso 0.0 0.0 1.0
thermo 100
thermo_style custom step temp press pxx pyy pzz lx ly lz
pair_style lj/cut 2.5
pair_coeff * * 1.0 1.0 2.5
pair_modify shift yes
region middle sphere 32.9266 32.9266 32.9266 19 side in units box
group def region middle
delete_bonds def atom 1 remove
delete_atoms group def
restart 10000 robsrestart
run 10000
produces the following crash:
Reading data file …
orthogonal box = (0.516376 0.516376 0.516376) to (65.8532 65.8532 65.8532)
1 by 1 by 1 MPI processor grid
248500 atoms
248500 velocities
248892 bonds
Finding 1-2 1-3 1-4 neighbors …
4 = max # of 1-2 neighbors
4 = max # of 1-3 neighbors
8 = max # of 1-4 neighbors
12 = max # of special neighbors
Finding 1-2 1-3 1-4 neighbors …
4 = max # of 1-2 neighbors
4 = max # of special neighbors
25598 atoms in group def
System init for delete_bonds …
Deleting bonds …
224422 total bonds, 224422 turned on, 0 turned off
Deleted 25598 atoms, new total = 222902
Setting up run …
ERROR on proc 0: Bond atom missing in box size check (domain.cpp:560)
I’m using the latest LAMMPS. Have tried various permutations of the above commands, to no avail. Any ideas as to how to delete the bonds and atoms without getting the ‘bond atom missing’ error?
Thanks,
Rob