|
|
[求助]
lammps做拉伸试验,求大神进来指导下(烈日炎炎,有劳了`(*∩_∩*)′)已有2人参与
lammps输入文件如下:
#input file for uniaxial tensile loading of single crystal Mg
# ------------------------ INITIALIZATION ----------------------------
units metal
dimension 3
boundary p p p
atom_style atomic
# ----------------------- ATOM DEFINITION ----------------------------
read_data data.300K
# ------------------------ FORCE FIELDS ------------------------------
pair_style meam
pair_coeff * * ./library.meam Mg ./Mg.meam Mg
neighbor 1.0 bin
neigh_modify every 1 delay 0 check yes
# ------------------------- SETTINGS ---------------------------------
compute csym all centro/atom 12
compute peratom all pe/atom
######################################
# EQUILIBRATION
reset_timestep 0
timestep 0.003
fix 1 all npt temp 300 300 1 iso 0 0 1 drag 1
# Set thermo output
thermo 100
thermo_style custom step lx ly lz press pxx pyy pzz pe temp
# Run for at least 10 picosecond (assuming 1 fs timestep)
run 10000
write_data data.300K_relax
unfix 1
# Store final cell length for strain calculations
variable tmp equal "lx"
variable L0 equal ${tmp}
print "Initial Length, L0: ${L0}"
######################################
# DEFORMATION
reset_timestep 0
fix 1 all npt temp 300 300 1 y 0 0 1 z 0 0 1 drag 1 //此处系综控制
variable srate equal 1.0e10
variable srate1 equal "v_srate / 1.0e12"
fix 2 all deform 1 x erate ${srate1} units box remap x //此处拉伸
# Output strain and stress info to file
# for units metal, pressure is in [bars] = 100 [kPa] = 1/10000 [GPa]
# p2, p3, p4 are in GPa
variable strain equal "(lx - v_L0)/v_L0"
variable p1 equal "v_strain"
variable p2 equal "-pxx/10000"
variable p1 equal "v_strain"
variable p2 equal "-pxx/10000"
variable p3 equal "-pyy/10000"
variable p4 equal "-pzz/10000"
fix def1 all print 100 "${p1} ${p2} ${p3} ${p4}" file Al_SC_100.def1.txt screen no
# Use cfg for AtomEye
dump 1 all custom 5000 dump.tensile.atom id type xs ys zs c_csym c_peratom fx fy fz
dump_modify 1 element Mg
# Display thermo
thermo 100
thermo_style custom step v_strain temp v_p2 v_p3 v_p4 ke pe press
run 100000
以上就是输入文件,存在下面几点疑问
1、拉伸过程中要采用什么系综?上面的脚本是用的NPT系综,但是我看到有的文献用NVT,有的用NVE,而我用不同的系综得到的结果差距有点大。
2、周期性边界条件如何确定,是三维周期性边界条件还是自由边界。
![lammps做拉伸试验,求大神进来指导下(烈日炎炎,有劳了`(*∩_∩*)′)]()
自由边界条件,nve系综下应力应变曲线
![lammps做拉伸试验,求大神进来指导下(烈日炎炎,有劳了`(*∩_∩*)′)-1]()
三维周期边界条件,npt系综下应力应变曲线 |
|