Dear LAMMPS users and developers,
I have two cubes (polyhedrons), one is red from data.start, the other one is inserted from molecule.cube.
When I apply fix nve
to the second cube only, none of the cubes moves. (It works fine vice versa and for both though).
Why is this ?
I am on Ubuntu 22.04.4 LTS, LAMMPS (2 Aug 2023 - Update 2)
in.script:
boundary f f f
comm_modify vel yes
atom_style body rounded/polyhedron 1 8
atom_modify map array
region reg block 0 60 0 60 0 60 units box
create_box 4 reg
read_data data.start add append
variable cut_inner equal 0
variable k_n equal 1000
variable k_na equal 0
variable c_n equal 10
variable c_t equal 10
variable mu equal 0
variable A_ua equal 1
pair_style body/rounded/polyhedron ${c_n} ${c_t} ${mu} ${A_ua} ${cut_inner}
pair_coeff * * ${k_n} ${k_na}
neighbor 0.5 bin
neigh_modify every 1 delay 0 check yes
timestep 0.001
fix g all gravity 1.0 vector 0 0 -1
molecule object molecule.cube
region slab block 5 45 5 45 25 35 units box
fix ins all pour 1 2 4767548 vol 0.4 10 region slab mol object
group group1 type 1
group group2 type 2
fix 1 group2 nve/body
thermo_style custom step atoms ke pe etotal press
thermo 1000
thermo_modify lost ignore flush yes
dump 2 all image 1000 *.gif type type &
zoom 1.5 adiam 1.5 body type 0 0 view 75 15
dump_modify 2 pad 6
run 10000
data.start:
1 atoms
1 bodies
1 atom types
0 50 xlo xhi
0 50 ylo yhi
0 50 zlo zhi
Atoms
1 1 1 1 35 30 30
Velocities
1 0 0 0 0 0 0
Bodies
1 3 79
8 12 6
1 1 1 0 0 0
0.75 0.75 0.75
0.75 -0.75 0.75
-0.75 -0.75 0.75
-0.75 0.75 0.75
0.75 0.75 -0.75
0.75 -0.75 -0.75
-0.75 -0.75 -0.75
-0.75 0.75 -0.75
0 1
1 2
2 3
3 0
4 5
5 6
6 7
7 4
0 4
1 5
2 6
3 7
0 1 2 3
4 5 6 7
0 1 5 4
1 2 6 5
2 3 7 6
3 0 4 7
0.5
molecule.cube:
# 3d polygon body: cubes, moment of inertia I = m edge^2/ 6
1 atoms
3 79 body
Coords
1 0 0 0
Types
1 2
Masses
1 1.0
Body Integers
8 12 6
Body Doubles
0.667 0.667 0.667 0 0 0
1 1 1
1 -1 1
-1 -1 1
-1 1 1
1 1 -1
1 -1 -1
-1 -1 -1
-1 1 -1
0 1
1 2
2 3
3 0
4 5
5 6
6 7
7 4
0 4
1 5
2 6
3 7
0 1 2 3
4 5 6 7
0 1 5 4
1 2 6 5
2 3 7 6
3 0 4 7
0.5