Good day all!
I am trying to simulate deposition using lammps but I am not sure if my molecule file is being read in or not. when I try to assign velocity to group n2 (which is type n2 consisting of nitrogen atoms), I get the error ‘Cannot zero momentum of no atoms’. I am attaching a part of my input file.
echo both
#INITIALISATION-------------------------------
units real
dimension 3
boundary p p f
atom_style charge
read_data input.dat
#SET POTENTIAL--------------------------------
pair_style reax/c NULL checkqeq no
pair_coeff * * ffield.reax C N
#DEFINE GROUPS AND AND VARIABLES--------------
#EQUILIBRATE SYSTEM---------------------------
#DEPOSIT N2------------------------------------------
reset_timestep 0
molecule nitrogen nitrogen.dat
region addatoms block 0 19.6761 0 17.04 ${zhi} 19.00 units box
group n2 type 2
fix 4 n2 nve
fix 5 all deposit 1 0 1 122354 region addatoms mol nitrogen units box
velocity n2 create 300.0 218324 rot yes dist gaussian
dump deposit all atom 1 deposit.lammpstrj
run 100
When I tried to do this without the velocity command but instead specifying velocity(vz) in the fix deposit command, I got no errors but I couldn’t visualize on VMD. Thought I ran for 100 time steps and dumped output every 1 timpestep, I could see only 1 frame on vmd.
In this post dated in 2007, http://www.ks.uiuc.edu/Research/vmd/mailing_list/vmd-l/9940.html
I see that 'VMD (currently) cannot handle trajectories with a changing number of atoms.
this is why it stops at the first addition of an atom.’ Is this still the case? I want to visualize the sputtering on VMD.
cheers