LAMMPS WWW Site - LAMPS Documentation - LAMMPS Commands

units command

Syntax:

units style 

Examples:

units metal
units lj 

Description:

This command sets the style of units used for a simulation. It detemines 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 style lj, all quantities are unitless:

For style real, these are the units:

For style metal, these are the units:

This 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.

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