LIGGGHTS(R)-PUBLIC WWW Site - LIGGGHTS(R)-PUBLIC Documentation - LIGGGHTS(R)-PUBLIC Commands

units command

Syntax:

units style 

Examples:

units metal
units lj 

Description:

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.

For all units except lj, LIGGGHTS(R)-PUBLIC uses physical constants from www.physics.nist.gov. For the definition of Kcal in real units, LIGGGHTS(R)-PUBLIC uses the thermochemical calorie = 4.184 J.

For style lj, all quantities are unitless. Without loss of generality, LIGGGHTS(R)-PUBLIC 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.

Note that for LJ units, the default mode of thermodyamic output via the thermo_style command is to normalize energies by the number of atoms, i.e. energy/atom. This can be changed via the thermo_modify norm command.

For style real, these are the units:

For style metal, these are the units:

For style si, these are the units:

For style cgs, these are the units:

For style electron, these are the units:

For style micro, these are the units:

For style nano, these are the units:

The units command also sets the timestep size and neighbor skin distance to default values for each style:

Restrictions:

This command cannot be used after the simulation box is defined by a read_data or create_box command.

Related commands: none

Default:

units lj