⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xmd.sgml

📁 一个很好的分子动力学程序
💻 SGML
📖 第 1 页 / 共 5 页
字号:
CALC {expression..}CLAMP [SEL] { temp cstep | OFF }CMD nstepCONSTRAIN OFFCONSTRAIN { LINE | PLANE } xdir ydir zdir  xpnt ypnt zpntCONSTRAIN CAVITY  ELLIPSOID xc yc zc  xa ya za springCONSTRAIN CAVITY  SPHERE    xc yc zc  radius springCOR file [ [ run ] step ]DAMP { OFF | ON  [ [ formula [ formula .. ] ]   damp] }DISP [SEL] { CLEAR | MOVE [scale] | READ n | REFCALC | SCALE scale }DTIME dtimeDUP ndup xdisp ydisp zdispECHO { ON | OFF }ERASE fileESAVE nskip fileEUNITEXTFORCE  { CLEAR | [ formula [ formula .. ] ]  fx fy fz }EXTSPRING { CLEAR | [ formula [ formula .. ] ]  kx ky kz }FIX {ON | OFF }FIX       { ON | OFF }FILL      ALIGN              x y zFILL      BOUNDARY BOX       x1 y1 z1  x2 y2 z2FILL      BOUNDARY SPHERE    radius xcenter ycenter zcenterFILL      BOUNDARY CYLINDER  r length xc yc zc xorient yorient zorientFILL      CELL   ax ay az   bx by bz   cx cy czFILL      GOFILL      MARGIN             marginFILL      ORIENT             ax ay az  bx by bz  cx cy czFILL      PARTICLE n   type x y z ....ITEMP [SEL] temp [ X | Y | Z ]   [ X | Y | Z ] ...LABEL nlabel ... (up to 8 lines)MACRO name valueMACROF name format valueMASS massMC nstep dtempMOVE [ formula [ formula .. ] ] xdisp ydisp zdispNRANGE ratioPARTICLE [ADD] np .. type x y zPLOT BOND  {  OFF  |  ON  lo  hi  }PLOT DEVICE { CANON | POSTSCRIPT }PLOT DISP { ON | OFF | SCALE scale }PLOT LAYER nlayer [ l1 [ l2 [ l3 .. ] ] ]PLOT ORIENT { y/z z/y x/z z/x x/y y/x }PLOT PAGE npagePLOT SIZE xinch yinchPLOT SYMBOL [FILL] [ RGB red green blue | HSB hue saturation brightness ]  { NON | CIR | CRO | TRI | ITR | DIA | AST | SQU | NUM } radiusPLOT WRITE [SEL] [+]filePOSITION [ADD] np .. type x y zPOSVEL [ADD] np .. type x y zPOTENTIAL SET { EAM ntype | PAIR ntype | STILL | TERSOFF }PRESSURE  ANDERSEN  xmass [ymass [zmass]] PRESSURE  CLAMP  bulkmodulus [cstep]  (bulk in units of MBAR)PRESSURE  EXTERNAL pressureX [ pressureY [ pressureZ ] ] (Units of MBAR)PRESSURE  { ISOTROPIC | ORTHORHOMBIC }PRESSURE  OFFPSTRAIN  e dx dy dz nx ny nzQUENCH nstep [nquench]RCV  file [ [run] step ]READ fileREFSTEP [CLEAR | COPY | SWAP]REMOVEREPEAT nrepeat ... ENDREPEAT { COR | RCV } filename [ step1 [ step2 ] ] ... ENDROTATE xaxis yaxis zaxis  xcenter ycenter zcenter  angleRUN runSCALE xscale [yscale [zscale]]SCREW xburgers yburgers zburgers  xorg yorg zorg  [ xref yref zerf ]SEED seedSELECT  [AND | OR | NOT | XOR ] { ALL | BOX  x1 y1 z1 x2 y2 z2 | EATOM lo hi | ELLIPSE xc yc zc xr yr zr | ILIST nlist   i1 i2 i3 ..... | INDEX i1 [i2 [iskip]] | NEAR n x y z | NONE | PLANE  xn yn zn  x1 y1 z1  x2 y2 z2 | SET set | TAG tag | TYPE type  | VELOCITY [ ABS ] { X | Y | Z | MAG } lo hiSELECT KEEP { ON | OFF }SET { ADD | SUB | CLEAR } setSIZE sizeSSAVE nskip fileSTATESTEP stepSTRESS THERMAL { ON | OFF }SURFACE { ON | OFF } { X | Y | Z }   [ X | Y | Z | ON | OFF ]   ...TAG tagTYPE typeTYPELIST [ SEL ]  ntypeTYPENAME t1 name1 [ t2 name2 ] [ t3 name3 ] ... [tn namen]VELOCITY {  LINEAR | ANGULAR } dx dy dz magnitudeVERBOSE  { ON | OFF }WAVE      phase   dx dy dz   kx ky kzWRITE     [SEL] COR  [+]fnameWRITE     [SEL] PDB  [+]fnameWRITE     [SEL] RCV  [+]fnameWRITE     [SEL] XMOL [+]fnameWRITE     [SEL] {ILIST | TYPELIST} [ [+]fname ]WRITE     [SEL] [FILE [+]fname]  { STRESS }WRITE     [SEL] [FILE [+]fname]  [AVG] [MIN] [MAX]                                 { FORCE | PARTICLE | POSTVEL | VELOCITY }WRITE     [SEL] [FILE [+]fname]  { DISP | EXTFORCE | EXTSPRING }WRITE     [SEL] [FILE [+]fname]    EATOMWRITE     [SEL] [FILE [+]fname]  { TEMP | EKIN | EPOT | ENERGY }WRITE           [FILE [+]fname] RDF ntable rmin rmax [type1 type2]WRITE           [FILE [+]fname] { BOX |  RUN | STEP }WRITE     STATE fname</verb><!--************************************************************************Commands************************************************************************--><sect> Commands<p><descrip><tag> \ (backslash)</tag>This is not really a command, but a special character which can be usedto extend a command onto multiple lines.  When the last character in acommand is a &quot \ &quot , then the next line appended to the end ofthe current line.  A command can span multiple lines, but it is limitedto 1024 characters (typically between 12 and 20 lines).<tag> &num (pound sign) </tag><p><tag> * (asterisk) </tag>Used for commenting instruction files.  Lines whose first non-blankcharacter is an asterisk or a pound sign will be ignored.<label id="command-box"><tag>BOX [SCALE] xbox ybox zbox</tag>Specifies the box size (in angstroms).  The box size is relevant when(1) performing a calculation with repeating boundary conditions (seeoption SURFACE) and (2) when writing a RCV file (see RCV).  If theoption scale is chosen then any existing coordinates will be re-scaled(relative to the previous box size) to fit the new box.<tag>BSAVE nskip file</tag>Causes  CMD simulations to save the step number and the x, y and z boxsizes every nskip steps in file.  This is useful for monitering the boxsize when using the PRESSURE command which allows the box size tochange.<label id="command-calc"><tag>CALC {expression..} </tag>CALC is a rich command which provides a simple computational language.For instance if the command<tscreen><verb>CALC  x = 2^(1/3)</verb></tscreen>is given, then a variable x is created that is set equal to 2 to the 1/3power.  Later one could have a command<tscreen><verb>SCALE x</verb></tscreen>which would scale all the particles (and box) by 2^(1/3).  This variable can also be written out with thestatement<tscreen><verb>WRITE X</verb></tscreen>(see the WRITE string command below).Furthermore in all commands which require a number, an algebraicexpression may be used (provided there are no embedded blanks).  Thusyou could also have the command<tscreen><verb>SCALE 2^(1/3)</verb></tscreen>The allowed operators are: + - * / ^ ( ) =<p>There are also allowed functions which are: sin() cos() tan() exp()log() log10() acos() asin() atan() abs() sqrt() int() rand().The functions sin(x), cos(x) and tan(x) expect angle x to be in radians.The functions asin(x), acos(x) and atan(x) return the angle in units ofradians.The function exp(x) return e^x.The function log(x) returns log base e of x,log10(x) returns log base 10.The function abs(x) returns the absolute value of x.The function sqrt(x) returns the square root of x.The function int(x) returns the integer portion of x.The function rand(x) returns a random number from the uniformdistribution between 0 and x.<p>There are two built in constants: pi and e.<p>There can be up to 128 variables set created in one program.See more on CALC under the section on <ref id="implementation-calc" name="implementation">.<tag>CLAMP [SEL] {temp [cstep] | OFF }</tag>Maintains the temperature for both MC and CMD simulations.  For the MC<tt>temp</tt> is used as the Boltzmann temperature and cstep is ignored.<p>For the CMD the particles velocities are scaled by(T/<tt>temp</tt>)(1/(2*<tt>cstep</tt>))at each CMD time step.  Here T is the instantaneous system temperature.The application of this factor has the effect of forcing the particlevelocities to a value appropriate for the temperature <tt>temp</tt>.The parameter cstep is used to control the rapidity at which the targettemperature is approached.  If temp is set to -1, then no temperatureclamp is used (this would be an adiabatic system).  See section onTemperature Control.<p>XMD can maintain up to 4 separate particle groups at differenttemperatures.  When the SEL option is used, the <tt>temp</tt> and<tt>cstep</tt> or the OFF setting is applied to the selected particles,the CLAMP settings for all other particles remain unchanged.When the CLAMP command is given without the SEL option, then allparticles are set the same.<tag> CLAMP INFO</tag>This prints information about the up to 4 separate clamp settings.<tag>CMD nstep</tag>Initiates a CMD simulation for nstep time steps.If ESAVE, BSAVE, SSAVE or TSAVE have beenimplemented then the corresponding data will be written to disk.Commands which directly affect the course of the CMD simulation areCLAMP, CONSTRAIN, DAMP, DTIME, EXTFORCE, EXTSPRING, FIX, MASS, and SURFACE;as well as the particle types and coordinates as determined by PARTICLE,TYPE and STATE; and the interatomic potential as determined by POTSTATEand POTENTIAL commands.<tag>CONSTRAIN OFF  |  {LINE | PLANE} xdir ydir zdir  xpnt ypnt zpnt</tag>Applies (LINE or PLANE) or removes (OFF) a constraint to the selectedparticles.  The LINE and PLANE constraints force a particle to remain ona line or plane, regardless of the forces it experiences.  In practicethis is done by ignoring any forces which are normal to the line orplane.  The values xdir, ydir, zdir specify either the line direction orthe plane normal.  The values xpnt, ypnt, zpnt specify a coordinatewithin the line or plane (it can be any one of many coordinates) - thisis necessary to locate the line or plane somewhere in space.<tag>CONSTRAIN CAVITY ELLIPSOID  spring  xcenter ycenter zcenter  xaxisyaxis zaxis</tag><p><tag>CONSTRAIN CAVITY SPHERE       spring  xcenter ycenter zcenterradius</tag>This command places an ellipsoidal &quot cavity &quot in thesimulation.  The cavity walls reflect particles.  When a particle passesinto a wall it experiences a spring force pushing back out.  The forceis equal to<tscreen><verb>F = &frac12 * spring * dq &sup2</verb></tscreen>where<tt>dq</tt>is the normal distance from wall to the particle, and<tt>spring</tt>is the spring constant.  Once the particle passes back out of the wall,it no longer feels the force.  Only one cavity can be present in asimulation.  All particles will be affected by the wall.(xcenter,ycenter,zcenter) specifies the center of the cavity.  For aspherical cavity, radius is the radius.  For an ellipsoidal cavity,(xaxis,yaxis,zaxis) are the x,y,z half-axis, analogous to sphericalradii.  They measure the distance from the ellipsoid center to theellipsoid wall in the x,y,z directions.Please note the following things about the CONSTRAIN CAVITY command.<itemize><item>(1)  Only one cavity can be present in a simulation.<item>(2) The cavity is affected by the SCALE command.  If the SCALE commandscales non-uniformly (difference scale in x, y and z directions) thenthe an initially spherical cavity will become an ellipsoid, thesame as if it had been made with the CONSTRAIN CAVITY ELLIPSOID commandabove.<item>(3) The cavity does know about repeating boundary conditions, so it canoverlap the box.<item>(4) The ellipsoid cavity can only be orientated with its axis along thex, y and z directions.<item>(5)  A spring constant that is too large will cause instability in theintegration algorithm, the same kind of instability as having a timestep too large.  As a rough guide, make sure that spring satisfies thefollowing relation,<tscreen><verb>k = 4 pi&sup2; m / t&sup2;</verb></tscreen>wherek is the spring constant,m is the mass in grams of the lightest particle in the simulation,and t is the time step size in seconds.</itemize><tag>COR file [ [run] step]</tag>Reads a COR step from file.  If step is specified then the data for thatstep is read; otherwise the first step in the file is read.  If step isnot in the file then an error message is given and the programcontinues.  If run is specified (which implies that step is alsospecified) then only the data that belongs to the run and step are read.If step is specified without run, and two COR steps have the

⌨️ 快捷键说明

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