2006-09-28 03:50:55 +08:00
|
|
|
# 2d indenter simulation
|
|
|
|
|
|
|
|
dimension 2
|
|
|
|
boundary p s p
|
|
|
|
|
2007-02-13 01:24:44 +08:00
|
|
|
atom_style atomic
|
2006-09-28 03:50:55 +08:00
|
|
|
neighbor 0.3 bin
|
|
|
|
neigh_modify delay 5
|
|
|
|
|
|
|
|
# create geometry
|
|
|
|
|
|
|
|
lattice hex 0.9
|
|
|
|
region box block 0 20 0 10 -0.25 0.25
|
|
|
|
create_box 2 box
|
2007-06-23 07:41:35 +08:00
|
|
|
create_atoms 1 box
|
2006-09-28 03:50:55 +08:00
|
|
|
|
|
|
|
mass 1 1.0
|
|
|
|
mass 2 1.0
|
|
|
|
|
|
|
|
# LJ potentials
|
|
|
|
|
|
|
|
pair_style lj/cut 2.5
|
|
|
|
pair_coeff * * 1.0 1.0 2.5
|
|
|
|
|
|
|
|
# define groups
|
|
|
|
|
|
|
|
region 1 block INF INF INF 1.25 INF INF
|
|
|
|
group lower region 1
|
|
|
|
group mobile subtract all lower
|
2007-06-20 21:41:06 +08:00
|
|
|
set group lower type 2
|
2006-09-28 03:50:55 +08:00
|
|
|
|
|
|
|
# initial velocities
|
|
|
|
|
2007-02-10 05:47:55 +08:00
|
|
|
compute new mobile temp
|
2006-09-28 03:50:55 +08:00
|
|
|
velocity mobile create 0.2 482748 temp new
|
|
|
|
fix 1 all nve
|
|
|
|
fix 2 lower setforce 0.0 0.0 0.0
|
|
|
|
fix 3 all temp/rescale 100 0.1 0.1 0.01 1.0
|
|
|
|
|
2010-03-04 02:40:02 +08:00
|
|
|
# run with indenter
|
2006-09-28 03:50:55 +08:00
|
|
|
|
2010-03-04 02:40:02 +08:00
|
|
|
timestep 0.003
|
|
|
|
variable k equal 1000.0/xlat
|
|
|
|
variable y equal "13.0*ylat - step*dt*0.02*ylat"
|
2006-09-28 03:50:55 +08:00
|
|
|
|
2010-03-04 02:40:02 +08:00
|
|
|
fix 4 all indent $k sphere 10 v_y 0 5.0
|
|
|
|
fix 5 all enforce2d
|
2006-09-28 03:50:55 +08:00
|
|
|
|
|
|
|
thermo 1000
|
|
|
|
thermo_modify temp new
|
|
|
|
|
|
|
|
dump 1 all atom 250 dump.indent
|
|
|
|
run 30000
|
|
|
|
|
2010-03-04 02:40:02 +08:00
|
|
|
# run without indenter
|
2006-09-28 03:50:55 +08:00
|
|
|
|
|
|
|
unfix 4
|
|
|
|
run 30000
|