git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3733 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
16
doc/if.html
16
doc/if.html
@ -13,15 +13,15 @@
|
|||||||
</H3>
|
</H3>
|
||||||
<P><B>Syntax:</B>
|
<P><B>Syntax:</B>
|
||||||
</P>
|
</P>
|
||||||
<PRE>if value1 operator value2 then T1 T2 ... else E1 E2 ...
|
<PRE>if value1 operator value2 then t1 t2 ... else e1 e2 ...
|
||||||
</PRE>
|
</PRE>
|
||||||
<UL><LI>value1 = 1st value
|
<UL><LI>value1 = 1st value
|
||||||
<LI>operator = "<" or "<=" or ">" or ">=" or "==" or "!="
|
<LI>operator = "<" or "<=" or ">" or ">=" or "==" or "!="
|
||||||
<LI>value2 = 2nd value
|
<LI>value2 = 2nd value
|
||||||
<LI>then = required word
|
<LI>then = required word
|
||||||
<LI>T1,T2,...,TN = one or more commands to execute if condition is met
|
<LI>t1,t2,...,tN = one or more LAMMPS commands to execute if condition is met, each enclosed in quotes
|
||||||
<LI>else = optional argument
|
<LI>else = optional argument
|
||||||
<LI>E1,E2,...,EN = one or more commands to execute if condition is not met (optional arguments)
|
<LI>e1,e2,...,eN = one or more LAMMPS commands to execute if condition is not met, each enclosed in quotes (optional arguments)
|
||||||
</UL>
|
</UL>
|
||||||
<P><B>Examples:</B>
|
<P><B>Examples:</B>
|
||||||
</P>
|
</P>
|
||||||
@ -41,14 +41,14 @@ executed, the variable(s) will be evaluated, which could calculate a
|
|||||||
user-defined formula that reflects the current state of the
|
user-defined formula that reflects the current state of the
|
||||||
simulation.
|
simulation.
|
||||||
</P>
|
</P>
|
||||||
<P>If the result of the if test is TRUE, then one or more commands (T1,
|
<P>If the result of the if test is TRUE, then one or more commands (t1,
|
||||||
T2, ..., TN) are executed. If the result of the if test is FALSE and
|
t2, ..., tN) are executed. If the result of the if test is FALSE and
|
||||||
no optional "else" argument is included, then the if command does
|
no optional "else" argument is included, then the if command does
|
||||||
nothing. If the result of the if test is FALSE and the optional
|
nothing. If the result of the if test is FALSE and the optional
|
||||||
"else" argument is included, then one or more commands (E1,
|
"else" argument is included, then one or more commands (e1,
|
||||||
E2, ..., En) are executed.
|
e2, ..., eN) are executed.
|
||||||
</P>
|
</P>
|
||||||
<P>Each then or else command (T1,E1,etc) can be any valid LAMMPS input
|
<P>Each then or else command (t1, e1, etc) can be any valid LAMMPS input
|
||||||
script command. Each command should be enclosed in quotes, so it will
|
script command. Each command should be enclosed in quotes, so it will
|
||||||
be treated as a single argument, as in the examples above.
|
be treated as a single argument, as in the examples above.
|
||||||
</P>
|
</P>
|
||||||
|
|||||||
16
doc/if.txt
16
doc/if.txt
@ -10,15 +10,15 @@ if command :h3
|
|||||||
|
|
||||||
[Syntax:]
|
[Syntax:]
|
||||||
|
|
||||||
if value1 operator value2 then T1 T2 ... else E1 E2 ... :pre
|
if value1 operator value2 then t1 t2 ... else e1 e2 ... :pre
|
||||||
|
|
||||||
value1 = 1st value
|
value1 = 1st value
|
||||||
operator = "<" or "<=" or ">" or ">=" or "==" or "!="
|
operator = "<" or "<=" or ">" or ">=" or "==" or "!="
|
||||||
value2 = 2nd value
|
value2 = 2nd value
|
||||||
then = required word
|
then = required word
|
||||||
T1,T2,...,TN = one or more commands to execute if condition is met
|
t1,t2,...,tN = one or more LAMMPS commands to execute if condition is met, each enclosed in quotes
|
||||||
else = optional argument
|
else = optional argument
|
||||||
E1,E2,...,EN = one or more commands to execute if condition is not met (optional arguments) :ul
|
e1,e2,...,eN = one or more LAMMPS commands to execute if condition is not met, each enclosed in quotes (optional arguments) :ul
|
||||||
|
|
||||||
[Examples:]
|
[Examples:]
|
||||||
|
|
||||||
@ -38,14 +38,14 @@ executed, the variable(s) will be evaluated, which could calculate a
|
|||||||
user-defined formula that reflects the current state of the
|
user-defined formula that reflects the current state of the
|
||||||
simulation.
|
simulation.
|
||||||
|
|
||||||
If the result of the if test is TRUE, then one or more commands (T1,
|
If the result of the if test is TRUE, then one or more commands (t1,
|
||||||
T2, ..., TN) are executed. If the result of the if test is FALSE and
|
t2, ..., tN) are executed. If the result of the if test is FALSE and
|
||||||
no optional "else" argument is included, then the if command does
|
no optional "else" argument is included, then the if command does
|
||||||
nothing. If the result of the if test is FALSE and the optional
|
nothing. If the result of the if test is FALSE and the optional
|
||||||
"else" argument is included, then one or more commands (E1,
|
"else" argument is included, then one or more commands (e1,
|
||||||
E2, ..., En) are executed.
|
e2, ..., eN) are executed.
|
||||||
|
|
||||||
Each then or else command (T1,E1,etc) can be any valid LAMMPS input
|
Each then or else command (t1, e1, etc) can be any valid LAMMPS input
|
||||||
script command. Each command should be enclosed in quotes, so it will
|
script command. Each command should be enclosed in quotes, so it will
|
||||||
be treated as a single argument, as in the examples above.
|
be treated as a single argument, as in the examples above.
|
||||||
|
|
||||||
|
|||||||
22
doc/run.html
22
doc/run.html
@ -28,10 +28,10 @@
|
|||||||
N2 = timestep at which last run will end
|
N2 = timestep at which last run will end
|
||||||
<I>pre</I> value = <I>no</I> or <I>yes</I>
|
<I>pre</I> value = <I>no</I> or <I>yes</I>
|
||||||
<I>post</I> value = <I>no</I> or <I>yes</I>
|
<I>post</I> value = <I>no</I> or <I>yes</I>
|
||||||
<I>every</I> values = M command1 command2 ...
|
<I>every</I> values = M c1 c2 ...
|
||||||
M = break the run into M-timestep segments and invoke one or more commands between each segment
|
M = break the run into M-timestep segments and invoke one or more commands between each segment
|
||||||
command1,command2,... = a single LAMMPS command, enclosed in quotes
|
c1,c2,...,cN = one or more LAMMPS commands, each enclosed in quotes
|
||||||
command1 = NULL means no command will be invoked
|
c1 = NULL means no command will be invoked
|
||||||
</PRE>
|
</PRE>
|
||||||
|
|
||||||
</UL>
|
</UL>
|
||||||
@ -114,14 +114,14 @@ this case.
|
|||||||
only a one-line summary timing is printed.
|
only a one-line summary timing is printed.
|
||||||
</P>
|
</P>
|
||||||
<P>The <I>every</I> keyword provides a means of breaking a LAMMPS run into a
|
<P>The <I>every</I> keyword provides a means of breaking a LAMMPS run into a
|
||||||
series of shorter runs. Optionally, one or more LAMMPS commands will
|
series of shorter runs. Optionally, one or more LAMMPS commands (c1,
|
||||||
be executed in between the short runs. If used, the <I>every</I> keyword
|
c2, ..., cN) will be executed in between the short runs. If used, the
|
||||||
must be the last keyword, since it has a variable number of arguments.
|
<I>every</I> keyword must be the last keyword, since it has a variable
|
||||||
Each of the trailing arguments is a single LAMMPS command, and each
|
number of arguments. Each of the trailing arguments is a single
|
||||||
command should be enclosed in quotes, so that the entire command will
|
LAMMPS command, and each command should be enclosed in quotes, so that
|
||||||
be treated as a single argument. This will also prevent any variables
|
the entire command will be treated as a single argument. This will
|
||||||
in the command from being evaluated until it is executed during the
|
also prevent any variables in the command from being evaluated until
|
||||||
run.
|
it is executed multiple times during the run.
|
||||||
</P>
|
</P>
|
||||||
<P>The <I>every</I> keyword is a means to avoid listing a long series of runs
|
<P>The <I>every</I> keyword is a means to avoid listing a long series of runs
|
||||||
and interleaving commands in your input script. For example, a
|
and interleaving commands in your input script. For example, a
|
||||||
|
|||||||
22
doc/run.txt
22
doc/run.txt
@ -22,10 +22,10 @@ keyword = {upto} or {start} or {stop} or {pre} or {post} or {every} :l
|
|||||||
N2 = timestep at which last run will end
|
N2 = timestep at which last run will end
|
||||||
{pre} value = {no} or {yes}
|
{pre} value = {no} or {yes}
|
||||||
{post} value = {no} or {yes}
|
{post} value = {no} or {yes}
|
||||||
{every} values = M command1 command2 ...
|
{every} values = M c1 c2 ...
|
||||||
M = break the run into M-timestep segments and invoke one or more commands between each segment
|
M = break the run into M-timestep segments and invoke one or more commands between each segment
|
||||||
command1,command2,... = a single LAMMPS command, enclosed in quotes
|
c1,c2,...,cN = one or more LAMMPS commands, each enclosed in quotes
|
||||||
command1 = NULL means no command will be invoked :pre
|
c1 = NULL means no command will be invoked :pre
|
||||||
:ule
|
:ule
|
||||||
|
|
||||||
[Examples:]
|
[Examples:]
|
||||||
@ -107,14 +107,14 @@ If {post} is specified as "no", the full timing summary is skipped;
|
|||||||
only a one-line summary timing is printed.
|
only a one-line summary timing is printed.
|
||||||
|
|
||||||
The {every} keyword provides a means of breaking a LAMMPS run into a
|
The {every} keyword provides a means of breaking a LAMMPS run into a
|
||||||
series of shorter runs. Optionally, one or more LAMMPS commands will
|
series of shorter runs. Optionally, one or more LAMMPS commands (c1,
|
||||||
be executed in between the short runs. If used, the {every} keyword
|
c2, ..., cN) will be executed in between the short runs. If used, the
|
||||||
must be the last keyword, since it has a variable number of arguments.
|
{every} keyword must be the last keyword, since it has a variable
|
||||||
Each of the trailing arguments is a single LAMMPS command, and each
|
number of arguments. Each of the trailing arguments is a single
|
||||||
command should be enclosed in quotes, so that the entire command will
|
LAMMPS command, and each command should be enclosed in quotes, so that
|
||||||
be treated as a single argument. This will also prevent any variables
|
the entire command will be treated as a single argument. This will
|
||||||
in the command from being evaluated until it is executed during the
|
also prevent any variables in the command from being evaluated until
|
||||||
run.
|
it is executed multiple times during the run.
|
||||||
|
|
||||||
The {every} keyword is a means to avoid listing a long series of runs
|
The {every} keyword is a means to avoid listing a long series of runs
|
||||||
and interleaving commands in your input script. For example, a
|
and interleaving commands in your input script. For example, a
|
||||||
|
|||||||
Reference in New Issue
Block a user