mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5261 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
503d2df41d
commit
4eb25924b0
|
@ -56,7 +56,7 @@ are executed. The elif and else keywords and their associated
|
|||
commands are optional. If they aren't specified and the initial
|
||||
Boolean expression is FALSE, then no commands are executed.
|
||||
</P>
|
||||
<P>The allowed syntax for each Boolean expression is described below.
|
||||
<P>The syntax for Boolean expressions is described below.
|
||||
</P>
|
||||
<P>Each command (t1, f1, e1, etc) can be any valid LAMMPS input script
|
||||
command. If the command is more than one word, it must enclosed in
|
||||
|
@ -147,9 +147,9 @@ order of evaluation than what would occur with the default precedence.
|
|||
</P>
|
||||
<P>The 6 relational operators return either a 1.0 or 0.0 depending on
|
||||
whether the relationship between x and y is true or false. The
|
||||
logical AND operator will return 1.0 of both its arguments are
|
||||
logical AND operator will return 1.0 if both its arguments are
|
||||
non-zero, else return a 0.0. The logical OR operator will return 1.0
|
||||
of either of its arguments is non-zero, else return a 0.0.
|
||||
if either of its arguments is non-zero, else return a 0.0.
|
||||
</P>
|
||||
<P>The overall Boolean expression produces a TRUE result if the result is
|
||||
non-zero. If the result is zero, the expression result is FALSE.
|
||||
|
|
|
@ -27,9 +27,9 @@ print "The system volume is now $v"
|
|||
</P>
|
||||
<P>Print a text string to the screen and logfile. One line of output is
|
||||
generated. If the string has white space in it (spaces, tabs, etc),
|
||||
then you must enclose it in single or double quotes so that it is
|
||||
treated as a single argument. If variables are included in the
|
||||
string, they will be evaluated and their current values printed.
|
||||
then you must enclose it in quotes so that it is treated as a single
|
||||
argument. If variables are included in the string, they will be
|
||||
evaluated and their current values printed.
|
||||
</P>
|
||||
<P>If you want the print command to be executed multiple times (with
|
||||
changing variable values), there are 3 options. First, consider using
|
||||
|
|
|
@ -24,9 +24,9 @@ print "The system volume is now $v" :pre
|
|||
|
||||
Print a text string to the screen and logfile. One line of output is
|
||||
generated. If the string has white space in it (spaces, tabs, etc),
|
||||
then you must enclose it in single or double quotes so that it is
|
||||
treated as a single argument. If variables are included in the
|
||||
string, they will be evaluated and their current values printed.
|
||||
then you must enclose it in quotes so that it is treated as a single
|
||||
argument. If variables are included in the string, they will be
|
||||
evaluated and their current values printed.
|
||||
|
||||
If you want the print command to be executed multiple times (with
|
||||
changing variable values), there are 3 options. First, consider using
|
||||
|
|
|
@ -123,7 +123,7 @@ also prevent any variables in the command from being evaluated until
|
|||
it is executed multiple times during the run. Note that if a command
|
||||
itself needs one of its arguments quoted (e.g. the <A HREF = "print.html">print</A>
|
||||
command), then you can use a combination of single and double quotes,
|
||||
as in the example above.
|
||||
as in the example above or below.
|
||||
</P>
|
||||
<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
|
||||
|
|
|
@ -116,7 +116,7 @@ also prevent any variables in the command from being evaluated until
|
|||
it is executed multiple times during the run. Note that if a command
|
||||
itself needs one of its arguments quoted (e.g. the "print"_print.html
|
||||
command), then you can use a combination of single and double quotes,
|
||||
as in the example above.
|
||||
as in the example above or below.
|
||||
|
||||
The {every} keyword is a means to avoid listing a long series of runs
|
||||
and interleaving commands in your input script. For example, a
|
||||
|
|
|
@ -340,9 +340,9 @@ with the default precedence.
|
|||
whether the relationship between x and y is true or false. For
|
||||
example the expression x<10.0 in an atom-style variable formula will
|
||||
return 1.0 for all atoms whose x-coordinate is less than 10.0, and 0.0
|
||||
for the others. The logical AND operator will return 1.0 of both its
|
||||
for the others. The logical AND operator will return 1.0 if both its
|
||||
arguments are non-zero, else return a 0.0. The logical OR operator
|
||||
will return 1.0 of either of its arguments is non-zero, else return a
|
||||
will return 1.0 if either of its arguments is non-zero, else return a
|
||||
0.0. These relational and logical operators can be used as a masking
|
||||
or selection operation in a formula. For example, the number of atoms
|
||||
whose properties satifsy one or more criteria could be calculated by
|
||||
|
|
Loading…
Reference in New Issue