formeam.xm

来自「一个很好的分子动力学程序」· XM 代码 · 共 53 行

XM
53
字号
########################################################################                                                                     ##  Example:  Using FORMULA option with EAM potential model            ##                                                                     #########################################################################    The FORMULA option allows you to build up a potential table      ##  by specifying the actual formula for your function, rather         ##  than entering a table of values.                                   ##     This example also demonstrates the use of the POTENTIAL EVAL    ##  command available with the EAM potential model.                    ##                                                                     #########################################################################     The format of the potential command is                          ##                                                                     ##               POTENTIAL PAIR  type1 type2 ntable r0 rn  FORMULA     ##               POTENTIAL DENS        type  ntable r0 rn  FORMULA     ##               POTENTIAL EMBED       type  ntable r0 rn  FORMULA     ##                                                                     ##  where   type1  is the first  atom type of the pair potential       ##          type2  is the second atom type of the pair potential       ##          type   is the type for the embedding function or electron  ##                 density.                                            ##          ntable is the number of entries in the potential table     ##          r0     is the radius corresponding to the table beginning  ##          rn     is the radius corresponding to the table end        ##                                                                     ###########################################################################  Choose pair potential model#POTENTIAL SET EAM 2##  Set parameters for "quartic" pair potential function#CALC Ro    = 1.67CALC RC    = 3.40CALC DEPTH = 1##  Produce potential using formula for quartic potential#EUNIT ergPOTENTIAL FORMULA PAIR  1 2   100  0  3.40    DEPTH * ( ( (R-Rc)/(Ro-Rc) )^4 - 2 * ( (R-Rc)/(Ro-Rc) )^2 )##  Evaluate resulting potential function#CALC r = 0repeat 21   POTENTIAL EVAL PAIR 1 2  0 r   CALC r = r + 0.170end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?