2006-09-22 00:22:34 +08:00
|
|
|
<HTML>
|
2008-01-23 06:00:03 +08:00
|
|
|
<CENTER><A HREF = "http://lammps.sandia.gov">LAMMPS WWW Site</A> - <A HREF = "Manual.html">LAMMPS Documentation</A> - <A HREF = "Section_commands.html#comm">LAMMPS Commands</A>
|
2006-09-22 00:22:34 +08:00
|
|
|
</CENTER>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<HR>
|
|
|
|
|
|
|
|
<H3>units command
|
|
|
|
</H3>
|
|
|
|
<P><B>Syntax:</B>
|
|
|
|
</P>
|
|
|
|
<PRE>units style
|
|
|
|
</PRE>
|
2010-08-21 04:47:28 +08:00
|
|
|
<UL><LI>style = <I>lj</I> or <I>real</I> or <I>metal</I> or <I>si</I> or <I>cgs</I> or <I>electron</I>
|
2006-09-22 00:22:34 +08:00
|
|
|
</UL>
|
|
|
|
<P><B>Examples:</B>
|
|
|
|
</P>
|
|
|
|
<PRE>units metal
|
|
|
|
units lj
|
|
|
|
</PRE>
|
|
|
|
<P><B>Description:</B>
|
|
|
|
</P>
|
|
|
|
<P>This command sets the style of units used for a simulation. It
|
2008-03-01 09:13:20 +08:00
|
|
|
determines the units of all quantities specified in the input script
|
2006-09-22 00:22:34 +08:00
|
|
|
and data file, as well as quantities output to the screen, log file,
|
|
|
|
and dump files. Typically, this command is used at the very beginning
|
|
|
|
of an input script.
|
|
|
|
</P>
|
2008-07-24 22:43:12 +08:00
|
|
|
<P>For all units except <I>lj</I>, LAMMPS uses physical constants from
|
|
|
|
www.physics.nist.gov. For the definition of Kcal in real units,
|
|
|
|
LAMMPS uses the thermochemical calorie = 4.184 J.
|
2007-01-31 01:20:42 +08:00
|
|
|
</P>
|
2008-04-11 05:14:17 +08:00
|
|
|
<P>For style <I>lj</I>, all quantities are unitless. Without loss of
|
|
|
|
generality, LAMMPS sets the fundamental quantities mass, sigma,
|
|
|
|
epsilon, and the Boltzmann constant = 1. The masses, distances,
|
|
|
|
energies you specify are multiples of these fundamental values. The
|
|
|
|
formulas relating the reduced or unitless quantity (with an asterisk)
|
|
|
|
to the same quantity with units is also given. Thus you can use the
|
|
|
|
mass & sigma & epsilon values for a specific material and convert the
|
|
|
|
results from a unitless LJ simulation into physical quantities.
|
2006-09-22 00:22:34 +08:00
|
|
|
</P>
|
2008-04-11 05:14:17 +08:00
|
|
|
<UL><LI>mass = mass or m
|
2008-04-11 04:53:47 +08:00
|
|
|
<LI>distance = sigma, where x* = x / sigma
|
2008-08-06 07:58:09 +08:00
|
|
|
<LI>time = tau, where tau = t* = t (epsilon / m / sigma^2)^1/2
|
2008-04-11 04:53:47 +08:00
|
|
|
<LI>energy = epsilon, where E* = E / epsilon
|
|
|
|
<LI>velocity = sigma/tau, where v* = v tau / sigma
|
|
|
|
<LI>force = epsilon/sigma, where f* = f sigma / epsilon
|
2009-01-13 22:38:26 +08:00
|
|
|
<LI>torque = epsilon, where t* = t / epsilon
|
2008-04-11 04:53:47 +08:00
|
|
|
<LI>temperature = reduced LJ temperature, where T* = T Kb / epsilon
|
|
|
|
<LI>pressure = reduced LJ pressure, where P* = P sigma^3 / epsilon
|
2009-04-16 22:29:04 +08:00
|
|
|
<LI>dynamic viscosity = reduced LJ viscosity, where eta* = eta sigma^3 / epsilon / tau
|
2008-04-11 04:53:47 +08:00
|
|
|
<LI>charge = reduced LJ charge, where q* = q / (4 pi perm0 sigma epsilon)^1/2
|
|
|
|
<LI>dipole = reduced LJ dipole, moment where *mu = mu / (4 pi perm0 sigma^3 epsilon)^1/2
|
|
|
|
<LI>electric field = force/charge, where E* = E (4 pi perm0 sigma epsilon)^1/2 sigma / epsilon
|
2010-08-06 22:48:24 +08:00
|
|
|
<LI>density = mass/volume, where rho* = rho sigma^dim
|
2006-09-22 00:22:34 +08:00
|
|
|
</UL>
|
|
|
|
<P>For style <I>real</I>, these are the units:
|
|
|
|
</P>
|
2008-04-11 05:14:17 +08:00
|
|
|
<UL><LI>mass = grams/mole
|
2008-04-11 04:53:47 +08:00
|
|
|
<LI>distance = Angstroms
|
|
|
|
<LI>time = femtoseconds
|
2006-09-22 00:22:34 +08:00
|
|
|
<LI>energy = Kcal/mole
|
|
|
|
<LI>velocity = Angstroms/femtosecond
|
|
|
|
<LI>force = Kcal/mole-Angstrom
|
2009-01-13 22:38:26 +08:00
|
|
|
<LI>torque = Kcal/mole
|
2006-09-22 00:22:34 +08:00
|
|
|
<LI>temperature = degrees K
|
|
|
|
<LI>pressure = atmospheres
|
2009-04-16 22:29:04 +08:00
|
|
|
<LI>dynamic viscosity = Poise
|
2006-09-22 00:22:34 +08:00
|
|
|
<LI>charge = multiple of electron charge (+1.0 is a proton)
|
2007-06-20 20:56:17 +08:00
|
|
|
<LI>dipole = charge*Angstroms
|
2006-09-22 00:22:34 +08:00
|
|
|
<LI>electric field = volts/Angstrom
|
2010-08-06 22:48:24 +08:00
|
|
|
<LI>density = gram/cm^dim
|
2006-09-22 00:22:34 +08:00
|
|
|
</UL>
|
|
|
|
<P>For style <I>metal</I>, these are the units:
|
|
|
|
</P>
|
2008-04-11 05:14:17 +08:00
|
|
|
<UL><LI>mass = grams/mole
|
2008-04-11 04:53:47 +08:00
|
|
|
<LI>distance = Angstroms
|
|
|
|
<LI>time = picoseconds
|
2006-09-22 00:22:34 +08:00
|
|
|
<LI>energy = eV
|
|
|
|
<LI>velocity = Angstroms/picosecond
|
|
|
|
<LI>force = eV/Angstrom
|
2009-01-13 22:38:26 +08:00
|
|
|
<LI>torque = eV
|
2006-09-22 00:22:34 +08:00
|
|
|
<LI>temperature = degrees K
|
|
|
|
<LI>pressure = bars
|
2009-04-16 22:29:04 +08:00
|
|
|
<LI>dynamic viscosity = Poise
|
2006-09-22 00:22:34 +08:00
|
|
|
<LI>charge = multiple of electron charge (+1.0 is a proton)
|
2007-06-20 20:56:17 +08:00
|
|
|
<LI>dipole = charge*Angstroms
|
2010-08-06 22:48:24 +08:00
|
|
|
<LI>electric field = volts/Angstrom
|
|
|
|
<LI>density = gram/cm^dim
|
2006-09-22 00:22:34 +08:00
|
|
|
</UL>
|
2008-07-24 07:26:28 +08:00
|
|
|
<P>For style <I>si</I>, these are the units:
|
|
|
|
</P>
|
|
|
|
<UL><LI>mass = kilograms
|
|
|
|
<LI>distance = meters
|
|
|
|
<LI>time = seconds
|
|
|
|
<LI>energy = Joules
|
|
|
|
<LI>velocity = meters/second
|
|
|
|
<LI>force = Newtons
|
2009-01-13 22:38:26 +08:00
|
|
|
<LI>torque = Newton-meters
|
2008-07-24 07:26:28 +08:00
|
|
|
<LI>temperature = degrees K
|
|
|
|
<LI>pressure = Pascals
|
2009-04-16 22:29:04 +08:00
|
|
|
<LI>dynamic viscosity = Pascal*second
|
2008-07-24 07:26:28 +08:00
|
|
|
<LI>charge = Coulombs
|
|
|
|
<LI>dipole = Coulombs*meters
|
|
|
|
<LI>electric field = volts/meter
|
2010-08-06 22:48:24 +08:00
|
|
|
<LI>density = kilograms/meter^dim
|
2008-07-24 07:26:28 +08:00
|
|
|
</UL>
|
2008-07-24 22:43:12 +08:00
|
|
|
<P>For style <I>cgs</I>, these are the units:
|
|
|
|
</P>
|
|
|
|
<UL><LI>mass = grams
|
|
|
|
<LI>distance = centimeters
|
|
|
|
<LI>time = seconds
|
|
|
|
<LI>energy = ergs
|
2009-01-13 22:38:26 +08:00
|
|
|
<LI>velocity = centimeters/second
|
2008-07-24 22:43:12 +08:00
|
|
|
<LI>force = dynes
|
2009-01-13 22:38:26 +08:00
|
|
|
<LI>torque = dyne-centimeters
|
2008-07-24 22:43:12 +08:00
|
|
|
<LI>temperature = degrees K
|
|
|
|
<LI>pressure = dyne/cm^2 or barye = 1.0e-6 bars
|
2009-04-16 22:29:04 +08:00
|
|
|
<LI>dynamic viscosity = Poise
|
2008-07-24 22:43:12 +08:00
|
|
|
<LI>charge = statcoulombs or esu
|
2008-07-25 03:43:24 +08:00
|
|
|
<LI>dipole = statcoul-cm = 10^18 debye
|
2008-07-24 22:43:12 +08:00
|
|
|
<LI>electric field = statvolt/cm or dyne/esu
|
2010-08-06 22:48:24 +08:00
|
|
|
<LI>density = grams/cm^dim
|
2008-07-24 22:43:12 +08:00
|
|
|
</UL>
|
2010-08-21 04:47:28 +08:00
|
|
|
<P>For style <I>electron</I>, these are the units:
|
|
|
|
</P>
|
|
|
|
<UL><LI>mass = atomic mass units
|
|
|
|
<LI>distance = Bohr
|
|
|
|
<LI>time = femtoseconds
|
2010-09-28 00:37:01 +08:00
|
|
|
<LI>energy = Hartrees
|
2010-09-21 04:51:28 +08:00
|
|
|
<LI>velocity = Bohr/atomic time units [1.03275e-15 seconds]
|
2010-08-21 04:47:28 +08:00
|
|
|
<LI>force = Hartrees*Bohr
|
|
|
|
<LI>temperature = degrees K
|
|
|
|
<LI>pressure = Pascals
|
|
|
|
<LI>charge = multiple of electron charge (+1.0 is a proton)
|
|
|
|
<LI>dipole moment = Debye
|
|
|
|
<LI>electric field = volts/cm
|
|
|
|
</UL>
|
2008-07-24 22:43:12 +08:00
|
|
|
<P>The units command also sets the timestep size and neighbor skin
|
2010-08-21 04:47:28 +08:00
|
|
|
distance to default values for each style:
|
2006-09-22 00:22:34 +08:00
|
|
|
</P>
|
2010-08-21 04:47:28 +08:00
|
|
|
<UL><LI>For style <I>lj</I> these are dt = 0.005 tau and skin = 0.3 sigma.
|
|
|
|
<LI>For style <I>real</I> these are dt = 1.0 fmsec and skin = 2.0 Angstroms.
|
|
|
|
<LI>For style <I>metal</I> these are dt = 0.001 psec and skin = 2.0 Angstroms.
|
|
|
|
<LI>For style <I>si</I> these are dt = 1.0e-8 sec and skin = 0.001 meters.
|
|
|
|
<LI>For style <I>cgs</I> these are dt = 1.0e-8 sec and skin = 0.1 cm.
|
|
|
|
<LI>For style <I>electron</I> these are dt = 0.001 fmsec and skin = 2.0 Bohr.
|
|
|
|
</UL>
|
2006-09-22 00:22:34 +08:00
|
|
|
<P><B>Restrictions:</B>
|
|
|
|
</P>
|
|
|
|
<P>This command cannot be used after the simulation box is defined by a
|
|
|
|
<A HREF = "read_data.html">read_data</A> or <A HREF = "create_box.html">create_box</A> command.
|
|
|
|
</P>
|
|
|
|
<P><B>Related commands:</B> none
|
|
|
|
</P>
|
|
|
|
<P><B>Default:</B>
|
|
|
|
</P>
|
|
|
|
<PRE>units lj
|
|
|
|
</PRE>
|
|
|
|
</HTML>
|