i try to simulate hydrogen adsorption in CNT. i use this script :
3-d LJ hydrogen storage
dimension 3
boundary p p p
atom_style full
neighbor 0.5 bin
neigh_modify delay 5
read_data success5molekul.dat
#kspace_style ewald 1.0e-2
bond_style harmonic
bond_coeff 1 1201.1 0.254
LJ potentials
pair_style lj/cut/coul/cut 3.0
pair_coeff 1 1 1.0 1.0
pair_coeff 2 2 1.737 1.166
pair_coeff 1 2 1.858 1.083
Define groups
group cnt type 2
group hyd type 1
Initial velocities
compute mobile hyd temp
velocity hyd create 7.71037 482748 temp mobile
fix 1 all nve
fix 2 hyd temp/rescale 100 7.71037 7.71037 0.02 1.0
fix_modify 2 temp mobile
Static nanotube
velocity cnt set 0.0 0.0 0.0 units box
fix 3 cnt setforce 0.0 0.0 0.0
fix 4 cnt aveforce 0.0 0.0 0.0
Run
timestep 0.0003
thermo 10000
thermo_style custom step atoms temp pe ke evdwl
thermo_modify temp mobile
dump mydump all atom 10000 dump.successs
run 1000000
and the log.lammps like this :
LAMMPS (17 Jul 2010)
3-d LJ hydrogen storage
dimension 3
boundary p p p
atom_style full
neighbor 0.5 bin
neigh_modify delay 5
read_data success5molekul.dat
1 = max bonds/atom
orthogonal box = (-3.431 -3.431 -3.431) to (8.233 8.233 8.233)
1 by 1 by 1 processor grid
220 atoms
10 bonds
1 = max # of 1-2 neighbors
0 = max # of 1-3 neighbors
0 = max # of 1-4 neighbors
1 = max # of special neighbors
#kspace_style ewald 1.0e-2
bond_style harmonic
bond_coeff 1 1201.1 0.254
LJ potentials
pair_style lj/cut/coul/cut 3.0
pair_coeff 1 1 1.0 1.0
pair_coeff 2 2 1.737 1.166
pair_coeff 1 2 1.858 1.083
Define groups
group cnt type 2
200 atoms in group cnt
group hyd type 1
20 atoms in group hyd
Initial velocities
compute mobile hyd temp
velocity hyd create 7.71037 482748 temp mobile
fix 1 all nve
fix 2 hyd temp/rescale 100 7.71037 7.71037 0.02 1.0
fix_modify 2 temp mobile
Static nanotube
velocity cnt set 0.0 0.0 0.0 units box
fix 3 cnt setforce 0.0 0.0 0.0
fix 4 cnt aveforce 0.0 0.0 0.0
Run
timestep 0.0003
thermo 10000
thermo_style custom step atoms temp pe ke evdwl
thermo_modify temp mobile
dump mydump all atom 10000 dump.successs
run 1000000
Memory usage per processor = 1.86589 Mbytes
Step Atoms Temp PotEng KinEng E_vdwl
0 220 7.71037 19970536 0.99884339 19970533
ERROR: Computed temperature for fix temp/rescale cannot be 0.0