2008-01-23 06:00:03 +08:00
|
|
|
"LAMMPS WWW Site"_lws - "LAMMPS Documentation"_ld - "LAMMPS Commands"_lc :c
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
:link(lws,http://lammps.sandia.gov)
|
|
|
|
:link(ld,Manual.html)
|
|
|
|
:link(lc,Section_commands.html#comm)
|
|
|
|
|
|
|
|
:line
|
|
|
|
|
|
|
|
units command :h3
|
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
|
|
|
units style :pre
|
|
|
|
|
2008-07-24 22:43:12 +08:00
|
|
|
style = {lj} or {real} or {metal} or {si} or {cgs} :ul
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
|
|
|
units metal
|
|
|
|
units lj :pre
|
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2008-07-24 22:43:12 +08:00
|
|
|
For all units except {lj}, 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
|
|
|
|
2008-04-11 05:14:17 +08:00
|
|
|
For style {lj}, 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.
|
2008-04-11 04:53:47 +08:00
|
|
|
|
2008-04-11 05:14:17 +08:00
|
|
|
mass = mass or m
|
2008-04-11 04:53:47 +08:00
|
|
|
distance = sigma, where x* = x / sigma
|
2008-08-06 07:58:09 +08:00
|
|
|
time = tau, where tau = t* = t (epsilon / m / sigma^2)^1/2
|
2008-04-11 04:53:47 +08:00
|
|
|
energy = epsilon, where E* = E / epsilon
|
|
|
|
velocity = sigma/tau, where v* = v tau / sigma
|
|
|
|
force = epsilon/sigma, where f* = f sigma / epsilon
|
2009-01-13 22:38:26 +08:00
|
|
|
torque = epsilon, where t* = t / epsilon
|
2008-04-11 04:53:47 +08:00
|
|
|
temperature = reduced LJ temperature, where T* = T Kb / epsilon
|
|
|
|
pressure = reduced LJ pressure, where P* = P sigma^3 / epsilon
|
2009-04-16 22:29:04 +08:00
|
|
|
dynamic viscosity = reduced LJ viscosity, where eta* = eta sigma^3 / epsilon / tau
|
2008-04-11 04:53:47 +08:00
|
|
|
charge = reduced LJ charge, where q* = q / (4 pi perm0 sigma epsilon)^1/2
|
|
|
|
dipole = reduced LJ dipole, moment where *mu = mu / (4 pi perm0 sigma^3 epsilon)^1/2
|
|
|
|
electric field = force/charge, where E* = E (4 pi perm0 sigma epsilon)^1/2 sigma / epsilon :ul
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
For style {real}, these are the units:
|
|
|
|
|
2008-04-11 04:53:47 +08:00
|
|
|
mass = grams/mole
|
2006-09-22 00:22:34 +08:00
|
|
|
distance = Angstroms
|
|
|
|
time = femtoseconds
|
|
|
|
energy = Kcal/mole
|
|
|
|
velocity = Angstroms/femtosecond
|
|
|
|
force = Kcal/mole-Angstrom
|
2009-01-13 22:38:26 +08:00
|
|
|
torque = Kcal/mole
|
2006-09-22 00:22:34 +08:00
|
|
|
temperature = degrees K
|
|
|
|
pressure = atmospheres
|
2009-04-16 22:29:04 +08:00
|
|
|
dynamic viscosity = Poise
|
2006-09-22 00:22:34 +08:00
|
|
|
charge = multiple of electron charge (+1.0 is a proton)
|
2007-06-20 20:56:17 +08:00
|
|
|
dipole = charge*Angstroms
|
2006-09-22 00:22:34 +08:00
|
|
|
electric field = volts/Angstrom :ul
|
|
|
|
|
|
|
|
For style {metal}, these are the units:
|
|
|
|
|
2008-04-11 04:53:47 +08:00
|
|
|
mass = grams/mole
|
2006-09-22 00:22:34 +08:00
|
|
|
distance = Angstroms
|
|
|
|
time = picoseconds
|
|
|
|
energy = eV
|
|
|
|
velocity = Angstroms/picosecond
|
|
|
|
force = eV/Angstrom
|
2009-01-13 22:38:26 +08:00
|
|
|
torque = eV
|
2006-09-22 00:22:34 +08:00
|
|
|
temperature = degrees K
|
|
|
|
pressure = bars
|
2009-04-16 22:29:04 +08:00
|
|
|
dynamic viscosity = Poise
|
2006-09-22 00:22:34 +08:00
|
|
|
charge = multiple of electron charge (+1.0 is a proton)
|
2007-06-20 20:56:17 +08:00
|
|
|
dipole = charge*Angstroms
|
2006-09-22 00:22:34 +08:00
|
|
|
electric field = volts/Angstrom :ul
|
|
|
|
|
2008-07-24 07:26:28 +08:00
|
|
|
For style {si}, these are the units:
|
|
|
|
|
|
|
|
mass = kilograms
|
|
|
|
distance = meters
|
|
|
|
time = seconds
|
|
|
|
energy = Joules
|
|
|
|
velocity = meters/second
|
|
|
|
force = Newtons
|
2009-01-13 22:38:26 +08:00
|
|
|
torque = Newton-meters
|
2008-07-24 07:26:28 +08:00
|
|
|
temperature = degrees K
|
|
|
|
pressure = Pascals
|
2009-04-16 22:29:04 +08:00
|
|
|
dynamic viscosity = Pascal*second
|
2008-07-24 07:26:28 +08:00
|
|
|
charge = Coulombs
|
|
|
|
dipole = Coulombs*meters
|
|
|
|
electric field = volts/meter :ul
|
|
|
|
|
2008-07-24 22:43:12 +08:00
|
|
|
For style {cgs}, these are the units:
|
|
|
|
|
|
|
|
mass = grams
|
|
|
|
distance = centimeters
|
|
|
|
time = seconds
|
|
|
|
energy = ergs
|
2009-01-13 22:38:26 +08:00
|
|
|
velocity = centimeters/second
|
2008-07-24 22:43:12 +08:00
|
|
|
force = dynes
|
2009-01-13 22:38:26 +08:00
|
|
|
torque = dyne-centimeters
|
2008-07-24 22:43:12 +08:00
|
|
|
temperature = degrees K
|
|
|
|
pressure = dyne/cm^2 or barye = 1.0e-6 bars
|
2009-04-16 22:29:04 +08:00
|
|
|
dynamic viscosity = Poise
|
2008-07-24 22:43:12 +08:00
|
|
|
charge = statcoulombs or esu
|
2008-07-25 03:43:24 +08:00
|
|
|
dipole = statcoul-cm = 10^18 debye
|
2008-07-24 22:43:12 +08:00
|
|
|
electric field = statvolt/cm or dyne/esu :ul
|
|
|
|
|
|
|
|
The units command also sets the timestep size and neighbor skin
|
|
|
|
distance to default values for each style. For style {lj} these are
|
|
|
|
dt = 0.005 tau and skin = 0.3 sigma. For style {real} these are dt =
|
|
|
|
1.0 fmsec and skin = 2.0 Angstroms. For style {metal} these are dt =
|
|
|
|
0.001 psec and skin = 2.0 Angstroms. For style {si} these are dt =
|
|
|
|
1.0e-8 sec and skin = 0.001 meters. For style {cgs} these are dt =
|
|
|
|
1.0e-8 sec and skin = 0.1 cm.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Restrictions:]
|
|
|
|
|
|
|
|
This command cannot be used after the simulation box is defined by a
|
|
|
|
"read_data"_read_data.html or "create_box"_create_box.html command.
|
|
|
|
|
|
|
|
[Related commands:] none
|
|
|
|
|
|
|
|
[Default:]
|
|
|
|
|
|
|
|
units lj :pre
|