screw.xm
来自「一个很好的分子动力学程序」· XM 代码 · 共 60 行
XM
60 行
######################################################################## ## Example: Making a screw dislocation with the SCREW command ## ######################################################################### ## The SCREW command displaces the *selected* atoms to form a ## screw dislocation in a previously perfect lattice. ## ######################################################################### ## The format of the SCREW command is ## ## SCREW xburgers yburgers zburgers xorg yorg zorg [xref yref zref] ## ## where xburgers the components of the burgers vector ## yburgers ## zburgers ## xorg a point through which the screw axis passes ## yorg ## zorg ## xref optional, a vector non-parallel with the ## yref burgers vector. Those atoms which lie in ## zref plane containing this and the burgers vector ## will have a zero displacement. If this ## option is not specified, then the plane of ## zero displacement will be defined by an ## arbitrary vector ## ########################################################################### Create an FCC lattice with unit cell length of 1 angstrom#box 4 4 4particle 41 0.25 0.25 0.251 0.25 0.75 0.751 0.75 0.25 0.751 0.75 0.75 0.25dup 3 1 0 0dup 3 0 1 0dup 3 0 0 1### Write coordinates#step 0write cor screw.cor### Insert screw dislocation#screw 0 0 1 2.25 2.25 2.25 1 0 0### Write coordinatesstep 1write cor +screw.cor
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?