thanks for you help,steve.
regarding to the first problem of my previous email, I use these two input scripts as an example of using restart and read_restart:
#cutoff=4.2
restart 50 tmp.restart
units metal
boundary p p p
lattice bcc 3.015
variable lx equal 30
variable ly equal 30
variable lz equal 90
variable lz2 equal {lz}-10
variable lx2 equal {lx}-10
variable ly2 equal ${ly}-10
region box block 0 {lx} 0 {ly} 0 ${lz} units box
region box2 block 1 28 1 28 1 88 units box
create_box 2 box
create_atoms 1 region box basis 2 2
group box2 region box2
#Foils EAM
pair_style eam/fs
pair_coeff * * NiTi.FS Ni Ti
timestep 0.001
thermo_style custom step temp pe press lx ly lz
thermo 100
initial velocities
velocity all create 400.0 5812775 units box
fix 1 all npt temp 400 400 0.01 aniso 0.0 0.0 10 drag 0.2
dump a box2 atom 1000 dump.indent
dump t box2 atom 5000 dump-box2-total.indent
dump k all atom 5000 dump-all-total.indent
equilibrium
run 1000
unfix 1
undump a
dump 2 box2 atom 4000 dump2c.indent
fix 3 all npt temp 300 300 0.01 aniso 0.0 0.0 10 drag 0.2
run 1000
unfix 3
undump 2
dump 3 box2 atom 1000 dump-l.indent
Store final cell length for strain calculations
variable tmp equal “lz”
variable L0 equal {tmp}
print "Initial Length, L0: {L0}"
fix 1 all nvt temp 10 10 1.0
variable srate equal 1.0e9
variable srate1 equal “v_srate / 1.0e12”
fix 2 all deform 1 z erate ${srate1} units box
variable strain equal “(lz - v_L0)/v_L0”
variable stress equal “-pzz/10000”
fix fprint1 all print 100 “{strain} {stress}” file S_S.data screen no
run 5000
and the other input is:
#just for test
read_restart tmp.restart.50
fix 3 all npt temp 400 400 0.01 aniso 0.0 0.0 10 drag 0.2
run 5000
But I got this error: atom sorting has been size=0.0
I have not been able to resolve the problem by reading the documentation.
I am Sorry whether my problem is so elementary!!