📄 cavity.xmo
字号:
XMD (Version 2.5.29 Nov 27 2000)Not using pthread library.Not using asm("finit"); patch in thread routines.######################################################################## 17 Jul 96 ## ## Example: Constraining particle with the CONSTRAIN CAVITY command ## ######################################################################### ## The CONSTRAIN CAVITY command creates a cavity constraint which ## imposes a spring-like force on atoms that try to exit through the ## wall. ## ## In this example, we create a single Ni FCC 3.5x3.5x3.5 cube. ## This cube is started with its atoms at 16000K and its is placed ## in an ellipsoidal cavity. Molecular dynamics is performed for ## 2000 steps, during which time atoms 'boil' off the cube into ## space and are reflected back by the ellipsoid walls. ## ## A COR file cavity.cor is written so that a movie can be made. ## Also an ESAVE file cavity.e is written to every 10 steps to check ## that energy is conserved. ## ######################################################################### The format of the CONSTRAIN CAVITY command is ## ## CONSTRAIN ELLIPSOID spring xc yc zc xa ya za ## or ## CONSTRAIN SPHERE spring xc yc zc radius ## ## where spring is the spring constant (dynes/cm) ## xc yc zc is the center of the cavity (angstroms) ## xa ya za are the ellipsoidal half-axises (angstroms) ## (analogous to spherical radii) ## radius is the sphere radius (angstroms) ## ########################################################################## Allocate space for particles#allocate 10000 100000WARNING: Allocate command is now obsolete.## Read Nickel-Aluminum potential#read ../nial.txt## Set large box (most of box will be empty)#box 12 12 12## Create a 3.5x3.5x3.5 FCC cube with one corner at the origin#particle 4dup 4 1 0 0 dup 4 0 1 0 dup 4 0 0 1 ## Trim off remaining 0.5 cells## NOTE: This leaves 'extra' layer on trailing surfaces,# so that every surface atom is one of the fcc unit cell# 'corners'. The result is the cube looks more symetrical.#select not box 0 0 0 3.5 3.5 3.5*** NUMBER SELECTED 328remove*** NUMBER REMAINING 172## Move cube toward center of box#select all*** NUMBER SELECTED 172move 4.25 4.25 4.25## Add ellipsoid cavity#constrain cavity sphere 1e5 6.0 6.0 6.0 4.0 2.0 2.0## Scale up to Ni unit cell length#scale 3.52## Set masses#select all*** NUMBER SELECTED 172# MASS1 is set in nialh.txt filemass MASS1## Set adiabatic simulation (total energy conserved) #clamp -1## Initialize high temperature#itemp 16000## Save energy every 10 time steps (to check conservation of energy)#esave 10 cavity.e## Write initial coordinates (for make movie after)#write cor cavity.cor## Perform 2000 simulations steps # Save coordinates after every 20 steps#repeat 100 cmd 20 write cor +cavity.corend*** Current step is 20*** Current step is 40*** Current step is 60*** Current step is 80*** Current step is 100*** Current step is 120*** Current step is 140*** Current step is 160*** Current step is 180*** Current step is 200*** Current step is 220*** Current step is 240*** Current step is 260*** Current step is 280*** Current step is 300*** Current step is 320*** Current step is 340*** Current step is 360*** Current step is 380*** Current step is 400*** Current step is 420*** Current step is 440*** Current step is 460*** Current step is 480*** Current step is 500*** Current step is 520*** Current step is 540*** Current step is 560*** Current step is 580*** Current step is 600*** Current step is 620*** Current step is 640*** Current step is 660*** Current step is 680*** Current step is 700*** Current step is 720*** Current step is 740*** Current step is 760*** Current step is 780*** Current step is 800*** Current step is 820*** Current step is 840*** Current step is 860*** Current step is 880*** Current step is 900*** Current step is 920*** Current step is 940*** Current step is 960*** Current step is 980*** Current step is 1000*** Current step is 1020*** Current step is 1040*** Current step is 1060*** Current step is 1080*** Current step is 1100*** Current step is 1120*** Current step is 1140*** Current step is 1160*** Current step is 1180*** Current step is 1200*** Current step is 1220*** Current step is 1240*** Current step is 1260*** Current step is 1280*** Current step is 1300*** Current step is 1320*** Current step is 1340*** Current step is 1360*** Current step is 1380*** Current step is 1400*** Current step is 1420*** Current step is 1440*** Current step is 1460*** Current step is 1480*** Current step is 1500*** Current step is 1520*** Current step is 1540*** Current step is 1560*** Current step is 1580*** Current step is 1600*** Current step is 1620*** Current step is 1640*** Current step is 1660*** Current step is 1680*** Current step is 1700*** Current step is 1720*** Current step is 1740*** Current step is 1760*** Current step is 1780*** Current step is 1800*** Current step is 1820*** Current step is 1840*** Current step is 1860*** Current step is 1880*** Current step is 1900*** Current step is 1920*** Current step is 1940*** Current step is 1960*** Current step is 1980*** Current step is 2000TIME INFORMATION Ending Time: 03/19/2001 13:37:07 Elapsed Time: 0 min 11 secDYNAMICS STATISTICS Number of MD Steps: 2000 Number of Neighbor Searchs: 873 Time spent on MD steps: 10 (secs) Time spent on Neighbor Search: 2 (secs)ERROR STATISTICS Number of Fatal Errors: 0 Number of Unknown Command Errors: 0 Number of Misc. Warnings: 1 <======= !!!
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -