Hi all
I am working with a sputtering script that has been having no issues thus far. I recently made my speed lower and box slightly smaller and now after 4900 steps I get a crash message along with the line:
Error while decoding stream #0:0: Invalid data found when processing input
This is a totally new error but based on some research I am thinking it may be from my dump movie command? I get the same error with other forcefields. Below is my input script.
I have tried a timestep of 0.25, and downloaded the June 2018 update of LAMMPS, neither worked. I spent a fair amount of time getting this script going so really hoping someone can help with this error.
Thanks for your help, input file below:
surface sputtering demo
------------------------ INITIALIZATION ----------------------------
dimension variables
box length in x and y
variable len index 8.0
height of layer
variable hgt index 10
delta between insert area and box
variable len0 index 0.1
full length minus delta
variable len1 equal {len}-{len0}
half length
variable len2 equal ${len}*0.5
#simulation set up
units real
atom_style full
boundary p p f
lattice fcc 4.05
region box block 0.0 {len} 0.0 {len} -1.0 24 units lattice
particle density in z-direction is inhomogeneous:
only do domain decomposition in x- and y-direction
processors * * 1
------------------------ regions and atom types ----------------------------
two atom types: surface and sputter atoms
create_box 2 box
region layer block 0.0 {len} 0.0 {len} 0.0 ${hgt}
create_atoms 2 region layer
group substrate region layer
mass 1 15.99
mass 2 26.98
region fixed block INF INF INF INF 0.0 0.5
group fixed region fixed
group mobile subtract all fixed
reaxff force field
pair_style reax/c NULL checkqeq yes
pair_coeff * * AlCHO.ff O Al
fix 1 all qeq/reax 1 0.0 10.0 1.0e-6 reax/c
neigh_modify delay 0
#neighbor 0.3 bin
#neigh_modify every 2 delay 6 check yes
minimize 1.0e-5 1.0e-8 1000 10000
------------------------ equilibration----------------------------
reset_timestep 0
timestep 0.5
velocity mobile create 300 87287
use the temperature of the mobile layer atoms as reference
compute mtemp mobile temp
fix 2 mobile nve
fix 3 mobile langevin 200 200 25 982434
fix_modify 3 temp mtemp
thermo 100
thermo_style custom step atoms temp etotal
thermo_modify temp mtemp
dump id all xyz 200 sputter.xyz
minimal equilibration
run 100
define region for inserting particles
region sphere sphere {len2} {len2} 26 ${len2} units lattice
region insert intersect 2 box sphere
define group of inserted particles
group insert region insert
group insert type 1
deposite particles regularly into insert volume
fix insert insert deposit 100 1 200 12345 region insert vz -0.021 -0.021
neigh_modify every 1 delay 0 check yes
group insert region insert
group insert type 1
time integrate inserted particles
fix 5 insert nve
remove thermostat on layer atoms
unfix 3
variable nlayer equal count(mobile)+count(fixed)
variable ninsert equal count(insert)
variable submass equal mass(substrate)
thermo_style custom step atoms v_nlayer v_ninsert v_submass temp etotal
thermo_modify temp mtemp
handling of atoms the get bounced back from surface or sputtered off the surface.
thermo_modify lost ignore
dump 3 all movie 50 movie.mpg type type axes yes 0.8 0.02 view 80 -30 zoom 1.5
timestep 0.5
run 40000