Dear LAMMPS Community,
I am currently attempting to deposit vapor molecules onto a substrate using the “deposit” command within an NVT simulation. However, I have observed that the temperature of the vapor increases over time during the simulation.
I would like to know whether the deposited atoms are being added to the thermostat. If they are, could you please help me understand why the temperature is still increasing?
I have attached my input file for reference.
units metal
dimension 3
atom_style full
boundary p p f
read_data data.system
#########Smooth Surface#########
pair_style hybrid lj/cut 15 sw
pair_coeff * * sw Si.sw Si Si
pair_coeff 1 2 lj/cut 0.0052 3.19 15
pair_coeff 1 1 lj/cut 0.0018 3.19 15
bond_style harmonic
bond_coeff 1 20.33777008 1.400000
angle_style harmonic
angle_coeff 1 2.731939264 120.137800 # CA CA CA
dihedral_style charmm
dihedral_coeff 1 0.628779672 2 180 0 # X CA CA X
neighbor 0.3 bin
neigh_modify delay 0 check yes
variable lx equal lx
variable ly equal ly
variable lz equal lz
region pressbox block EDGE EDGE EDGE EDGE 50 150
region slab block EDGE EDGE EDGE EDGE 150 EDGE
region sbox block EDGE EDGE EDGE EDGE 0 EDGE
group liquid dynamic all region sbox
group pressvapor dynamic all region pressbox
group surface type 1
group drop id 1:120
group addatoms region slab
velocity all create 300 432423
compute atomPE all pe/atom
variable pot_eng atom c_atomPE
compute atomKE all ke/atom
variable atomEng atom c_atomPE+c_atomKE
compute peratom pressvapor stress/atom NULL
compute p all reduce sum c_peratom[1] c_peratom[2] c_peratom[3]
variable press equal -(c_p[1]+c_p[2]+c_p[3])/(lxly100)
minimize 0.0 1.0e-8 1000 100000
timestep 0.001
fix freeze surface setforce 0.0 0.0 0.0
fix center all momentum 1 linear 1 1 1 angular
thermo 1000
thermo_style custom step temp pe ke etotal enthalpy press v_press pxx pyy pzz pxy pxz pyz vol
fix 4 addatoms deposit 1000 2 10000 12345 region slab near 5.0 vx -1 1 vy -1 1 vz -1 1
fix zwalls all wall/reflect zlo EDGE zhi EDGE
compute mdtemp liquid temp
compute_modify mdtemp dynamic/dof yes
fix 1 liquid nvt temp 300.0 300.0 0.1
fix_modify 1 temp mdtemp
dump 4 all custom 10000 system.atom.eng id v_atomEng
dump_modify 4 sort id
dump 1 all custom 10000 system.lammpstrj id type x y z vx vy vz
dump_modify 1 sort id
run 1000000
write_restart system.restart
write_data system.data
Best regards,
Moid