I’m beginner in lammps. I’ve been trying develop nanoindentation code for Al-Cu-Mg nanorod. My script is here. Why I’ve been facing the issues of lost atoms in every step of indent run zone. Is there any mistake on my code?
3D indenter simulation
units metal
dimension 3
boundary p p p
atom_style atomic
read_data alloy.lmp
pair_style meam
pair_coeff * * library.meam Al Si Mg Cu Fe alloy.meam Al Mg Cu
define groups
region fixed block 0 89.1 0 10 0 89.1
group lower region fixed
region thermo block 0 89.1 10 20 0 89.1
group thermostat region thermo
region mobile block 0 89.1 20 89.1 0 89.1
group mobile region mobile
velocity all create 300.0 12345 mom yes rot no dist gaussian
fix 1 mobile nve
fix 2 thermostat nvt temp 300.0 300.0 0.1
fix 3 lower setforce 0.0 0.0 0.0
------------------ Equilibration Run ------------------
timestep 0.001
thermo 100
fix 4 all npt temp 300.0 300.0 0.1 iso 0.0 0.0 1.0
thermo_style custom step temp press pxx pyy pzz
run 100
unfix 4
run with indenter
reset_timestep 0
variable y equal " 89.1-stepdt0.0001"
print “y is $y”
variable disp equal “stepdt0.0001”
variable f1 equal f_5[1]
variable f2 equal f_5[2]
variable f3 equal f_5[3]
variable load equal “((v_f1)^2 + (v_f2)^2 + (v_f3)^2)^(1/2)”
variable force equal fmax
variable stp equal “step”
Dumps (optional)
fix 5 mobile indent 50 sphere 20 v_y 50 50.0
thermo 100
thermo_style custom step temp v_y f_5[1] f_5[2] f_5[3] fmax #displacement force in all three direction
fix 6 all print 100 “stp{force} ${disp}” title “step load disp” file output_data3.txt screen no
dump 1 all atom 100 dump.indent
run 30000