1 # 3d Lennard-Jones melt
8 region box block 0 10 0 10 0 10
13 region long block 3 6 0 10 0 10
14 set region long type 2
16 velocity all create 1.0 87287
19 pair_coeff * * 1.0 1.0 2.5
20 pair_coeff * 2 1.0 1.0 5.0
25 neigh_modify every 2 delay 4 check yes
26 fix p all property/atom d_WEIGHT
27 fix 0 all balance 50 1.0 rcb weight neigh 0.8 weight store WEIGHT
28 compute p all property/atom d_WEIGHT
29 variable maximb equal f_0[1]
30 variable iter equal f_0[2]
31 variable prev equal f_0[3]
32 variable final equal f_0
34 #fix 3 all print 50 "${iter} ${prev} ${final} ${maximb}"
38 #dump id all atom 50 dump.melt
39 #dump id all custom 50 dump.lammpstrj id type x y z c_p
41 #dump 2 all image 25 image.*.jpg type type &
42 # axes yes 0.8 0.02 view 60 -30
45 #dump 3 all movie 25 movie.mpg type type &
46 # axes yes 0.8 0.02 view 60 -30