File: units.html

package info (click to toggle)
liggghts 3.0.3%2Brepack-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 106,076 kB
  • ctags: 34,406
  • sloc: cpp: 363,723; python: 21,138; ansic: 9,146; perl: 3,687; sh: 2,841; fortran: 2,802; xml: 788; makefile: 485; objc: 238; lisp: 169; f90: 145; csh: 16; awk: 14
file content (205 lines) | stat: -rw-r--r-- 7,194 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<HTML>
<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> 
</CENTER>






<HR>

<H3>units command 
</H3>
<P><B>Syntax:</B>
</P>
<PRE>units style 
</PRE>
<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> or <I>micro</I> or <I>nano</I> 
</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
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 <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.
</P>
<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.
</P>
<UL><LI>mass = mass or m
<LI>distance = sigma, where x* = x / sigma
<LI>time = tau, where tau = t* = t (epsilon / m / sigma^2)^1/2
<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
<LI>torque = epsilon, where t* = t / epsilon
<LI>temperature = reduced LJ temperature, where T* = T Kb / epsilon
<LI>pressure = reduced LJ pressure, where P* = P sigma^3 / epsilon
<LI>dynamic viscosity = reduced LJ viscosity, where eta* = eta sigma^3 / epsilon / tau
<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 
<LI>density = mass/volume, where rho* = rho sigma^dim 
</UL>
<P>Note that for LJ units, the default mode of thermodyamic output via
the <A HREF = "thermo_style.html">thermo_style</A> command is to normalize energies
by the number of atoms, i.e. energy/atom.  This can be changed via the
<A HREF = "therm_modify.html">thermo_modify norm</A> command.
</P>
<P>For style <I>real</I>, these are the units:
</P>
<UL><LI>mass = grams/mole
<LI>distance = Angstroms
<LI>time = femtoseconds
<LI>energy = Kcal/mole 
<LI>velocity = Angstroms/femtosecond 
<LI>force = Kcal/mole-Angstrom
<LI>torque = Kcal/mole
<LI>temperature = Kelvin
<LI>pressure = atmospheres
<LI>dynamic viscosity = Poise
<LI>charge = multiple of electron charge (+1.0 is a proton)
<LI>dipole = charge*Angstroms
<LI>electric field = volts/Angstrom 
<LI>density = gram/cm^dim 
</UL>
<P>For style <I>metal</I>, these are the units:
</P>
<UL><LI>mass = grams/mole
<LI>distance = Angstroms
<LI>time = picoseconds
<LI>energy = eV
<LI>velocity = Angstroms/picosecond 
<LI>force = eV/Angstrom
<LI>torque = eV
<LI>temperature = Kelvin
<LI>pressure = bars
<LI>dynamic viscosity = Poise
<LI>charge = multiple of electron charge (+1.0 is a proton)
<LI>dipole = charge*Angstroms
<LI>electric field = volts/Angstrom
<LI>density = gram/cm^dim 
</UL>
<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
<LI>torque = Newton-meters
<LI>temperature = Kelvin
<LI>pressure = Pascals
<LI>dynamic viscosity = Pascal*second
<LI>charge = Coulombs
<LI>dipole = Coulombs*meters
<LI>electric field = volts/meter 
<LI>density = kilograms/meter^dim 
</UL>
<P>For style <I>cgs</I>, these are the units:
</P>
<UL><LI>mass = grams
<LI>distance = centimeters
<LI>time = seconds
<LI>energy = ergs
<LI>velocity = centimeters/second
<LI>force = dynes
<LI>torque = dyne-centimeters
<LI>temperature = Kelvin
<LI>pressure = dyne/cm^2 or barye = 1.0e-6 bars
<LI>dynamic viscosity = Poise
<LI>charge = statcoulombs or esu
<LI>dipole = statcoul-cm = 10^18 debye
<LI>electric field = statvolt/cm or dyne/esu 
<LI>density = grams/cm^dim 
</UL>
<P>For style <I>electron</I>, these are the units:
</P>
<UL><LI>mass = atomic mass units
<LI>distance = Bohr
<LI>time = femtoseconds
<LI>energy = Hartrees
<LI>velocity = Bohr/atomic time units [1.03275e-15 seconds]
<LI>force = Hartrees/Bohr
<LI>temperature = Kelvin
<LI>pressure = Pascals
<LI>charge = multiple of electron charge (+1.0 is a proton)
<LI>dipole moment = Debye
<LI>electric field = volts/cm 
</UL>
<P>For style <I>micro</I>, these are the units:
</P>
<UL><LI>mass = picograms
<LI>distance = micrometers
<LI>time = microseconds
<LI>energy = picogram-micrometer^2/microsecond^2
<LI>velocity = micrometers/microsecond
<LI>force = picogram-micrometer/microsecond^2
<LI>torque = picogram-micrometer^2/microsecond^2
<LI>temperature = Kelvin
<LI>pressure = picogram/(micrometer-microsecond^2)
<LI>dynamic viscosity = picogram/(micrometer-microsecond)
<LI>charge = picocoulombs
<LI>dipole = picocoulomb-micrometer
<LI>electric field = volt/micrometer 
<LI>density = picograms/micrometer^dim 
</UL>
<P>For style <I>nano</I>, these are the units:
</P>
<UL><LI>mass = attograms
<LI>distance = nanometers
<LI>time = nanoseconds
<LI>energy = attogram-nanometer^2/nanosecond^2
<LI>velocity = nanometers/nanosecond
<LI>force = attogram-nanometer/nanosecond^2
<LI>torque = attogram-nanometer^2/nanosecond^2
<LI>temperature = Kelvin
<LI>pressure = attogram/(nanometer-nanosecond^2)
<LI>dynamic viscosity = attogram/(nanometer-nanosecond)
<LI>charge = multiple of electron charge (+1.0 is a proton)
<LI>dipole = charge-nanometer
<LI>electric field = volt/nanometer 
<LI>density = attograms/nanometer^dim 
</UL>
<P>The units command also sets the timestep size and neighbor skin
distance to default values for each style:
</P>
<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. 
<LI>For style <I>micro</I> these are dt = 2.0 microsec and skin = 0.1 micrometers.
<LI>For style <I>nano</I> these are dt = 0.00045 nanosec and skin = 0.1 nanometers. 
</UL>
<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>