git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9909 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2013-05-24 15:45:19 +00:00
parent b4a109bfe8
commit 8dad92c714
4 changed files with 36 additions and 14 deletions

View File

@ -122,8 +122,19 @@ variable X delete
</P>
<PRE>region 1 block $((xlo+xhi)/2+sqrt(v_area)) 2 INF INF EDGE EDGE
</PRE>
<P>The latter produces an identical result, without having to define and
discard a temporary variable X.
<P>so that you do not have to define (or discard) a temporary variable X.
</P>
<P>Note that neither the curly-bracket or immediate form of variables can
contain nested $ characters for other variables to substitute for.
Thus you cannot do this:
</P>
<PRE>variable a equal 2
variable b2 equal 4
print "B2 = ${b$a}"
</PRE>
<P>Nor can you specify this $($x-1.0) for an immediate variable, but
you could use $(v_x-1.0), since the latter is valid syntax for an
<A HREF = "variable.html">equal-style variable</A>.
</P>
<P>See the <A HREF = "variable.html">variable</A> command for more details of how
strings are assigned to variables and evaluated, and how they can be

View File

@ -118,8 +118,19 @@ can be replaced by
region 1 block $((xlo+xhi)/2+sqrt(v_area)) 2 INF INF EDGE EDGE :pre
The latter produces an identical result, without having to define and
discard a temporary variable X.
so that you do not have to define (or discard) a temporary variable X.
Note that neither the curly-bracket or immediate form of variables can
contain nested $ characters for other variables to substitute for.
Thus you cannot do this:
variable a equal 2
variable b2 equal 4
print "B2 = $\{b$a\}" :pre
Nor can you specify this $($x-1.0) for an immediate variable, but
you could use $(v_x-1.0), since the latter is valid syntax for an
"equal-style variable"_variable.html.
See the "variable"_variable.html command for more details of how
strings are assigned to variables and evaluated, and how they can be

View File

@ -72,7 +72,7 @@ by the number of atoms, i.e. energy/atom. This can be changed via the
<LI>velocity = Angstroms/femtosecond
<LI>force = Kcal/mole-Angstrom
<LI>torque = Kcal/mole
<LI>temperature = degrees K
<LI>temperature = Kelvin
<LI>pressure = atmospheres
<LI>dynamic viscosity = Poise
<LI>charge = multiple of electron charge (+1.0 is a proton)
@ -89,7 +89,7 @@ by the number of atoms, i.e. energy/atom. This can be changed via the
<LI>velocity = Angstroms/picosecond
<LI>force = eV/Angstrom
<LI>torque = eV
<LI>temperature = degrees K
<LI>temperature = Kelvin
<LI>pressure = bars
<LI>dynamic viscosity = Poise
<LI>charge = multiple of electron charge (+1.0 is a proton)
@ -106,7 +106,7 @@ by the number of atoms, i.e. energy/atom. This can be changed via the
<LI>velocity = meters/second
<LI>force = Newtons
<LI>torque = Newton-meters
<LI>temperature = degrees K
<LI>temperature = Kelvin
<LI>pressure = Pascals
<LI>dynamic viscosity = Pascal*second
<LI>charge = Coulombs
@ -123,7 +123,7 @@ by the number of atoms, i.e. energy/atom. This can be changed via the
<LI>velocity = centimeters/second
<LI>force = dynes
<LI>torque = dyne-centimeters
<LI>temperature = degrees K
<LI>temperature = Kelvin
<LI>pressure = dyne/cm^2 or barye = 1.0e-6 bars
<LI>dynamic viscosity = Poise
<LI>charge = statcoulombs or esu
@ -139,7 +139,7 @@ by the number of atoms, i.e. energy/atom. This can be changed via the
<LI>energy = Hartrees
<LI>velocity = Bohr/atomic time units [1.03275e-15 seconds]
<LI>force = Hartrees/Bohr
<LI>temperature = degrees K
<LI>temperature = Kelvin
<LI>pressure = Pascals
<LI>charge = multiple of electron charge (+1.0 is a proton)
<LI>dipole moment = Debye

View File

@ -69,7 +69,7 @@ energy = Kcal/mole
velocity = Angstroms/femtosecond
force = Kcal/mole-Angstrom
torque = Kcal/mole
temperature = degrees K
temperature = Kelvin
pressure = atmospheres
dynamic viscosity = Poise
charge = multiple of electron charge (+1.0 is a proton)
@ -86,7 +86,7 @@ energy = eV
velocity = Angstroms/picosecond
force = eV/Angstrom
torque = eV
temperature = degrees K
temperature = Kelvin
pressure = bars
dynamic viscosity = Poise
charge = multiple of electron charge (+1.0 is a proton)
@ -103,7 +103,7 @@ energy = Joules
velocity = meters/second
force = Newtons
torque = Newton-meters
temperature = degrees K
temperature = Kelvin
pressure = Pascals
dynamic viscosity = Pascal*second
charge = Coulombs
@ -120,7 +120,7 @@ energy = ergs
velocity = centimeters/second
force = dynes
torque = dyne-centimeters
temperature = degrees K
temperature = Kelvin
pressure = dyne/cm^2 or barye = 1.0e-6 bars
dynamic viscosity = Poise
charge = statcoulombs or esu
@ -136,7 +136,7 @@ time = femtoseconds
energy = Hartrees
velocity = Bohr/atomic time units \[1.03275e-15 seconds\]
force = Hartrees/Bohr
temperature = degrees K
temperature = Kelvin
pressure = Pascals
charge = multiple of electron charge (+1.0 is a proton)
dipole moment = Debye