<li>style = <em>lj</em> or <em>real</em> or <em>metal</em> or <em>si</em> or <em>cgs</em> or <em>electron</em> or <em>micro</em> or <em>nano</em></li>
</ul>
</div>
<div class="section" id="examples">
<h2>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h2>
<div class="highlight-python"><div class="highlight"><pre>units metal
units lj
</pre></div>
</div>
</div>
<div class="section" id="description">
<h2>Description<a class="headerlink" href="#description" title="Permalink to this headline">¶</a></h2>
<p>This command sets the style of units used for a simulation. It
determines the units of all quantities specified in the input script
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>
<p>For all units except <em>lj</em>, 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.</p>
<p>The choice you make for units simply sets some internal conversion
factors within LAMMPS. This means that any simulation you perform for
one choice of units can be duplicated with any other unit setting
LAMMPS supports. In this context “duplicate” means the particles will
have identical trajectories and all output generated by the simulation
will be identical. This will be the case for some number of timesteps
until round-off effects accumulate, since the conversion factors for
two different unit systems are not identical to infinite precision.</p>
<p>To perform the same simulation in a different set of units you must
change all the unit-based input parameters in your input script and
other input files (data file, potential files, etc) correctly to the
new units. And you must correctly convert all output from the new
units to the old units when comparing to the original results. That
is often not simple to do.</p>
<hr class="docutils" />
<p>For style <em>lj</em>, 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.</p>
<ul class="simple">
<li>mass = mass or m</li>
<li>distance = sigma, where x* = x / sigma</li>
<li>time = tau, where t* = t (epsilon / m / sigma^2)^1/2</li>
<li>energy = epsilon, where E* = E / epsilon</li>
<li>velocity = sigma/tau, where v* = v tau / sigma</li>
<li>force = epsilon/sigma, where f* = f sigma / epsilon</li>
<li>torque = epsilon, where t* = t / epsilon</li>
<li>temperature = reduced LJ temperature, where T* = T Kb / epsilon</li>
<li>pressure = reduced LJ pressure, where P* = P sigma^3 / epsilon</li>
<li>dynamic viscosity = reduced LJ viscosity, where eta* = eta sigma^3 / epsilon / tau</li>
<li>charge = reduced LJ charge, where q* = q / (4 pi perm0 sigma epsilon)^1/2</li>
<li>dipole = reduced LJ dipole, moment where <a href="#id1"><span class="problematic" id="id2">*</span></a>mu = mu / (4 pi perm0 sigma^3 epsilon)^1/2</li>
<li>electric field = force/charge, where E* = E (4 pi perm0 sigma epsilon)^1/2 sigma / epsilon</li>
<li>density = mass/volume, where rho* = rho sigma^dim</li>
</ul>
<p>Note that for LJ units, the default mode of thermodyamic output via
the <a class="reference internal" href="thermo_style.html"><em>thermo_style</em></a> command is to normalize energies
by the number of atoms, i.e. energy/atom. This can be changed via the
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.