2006-09-22 00:22:34 +08:00
|
|
|
<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>dipole command
|
|
|
|
</H3>
|
|
|
|
<P><B>Syntax:</B>
|
|
|
|
</P>
|
|
|
|
<PRE>dipole I value
|
|
|
|
</PRE>
|
2006-09-29 04:54:07 +08:00
|
|
|
<UL><LI>I = atom type (see asterisk form below)
|
2007-06-20 20:56:17 +08:00
|
|
|
<LI>value = dipole moment (dipole units)
|
2006-09-22 00:22:34 +08:00
|
|
|
</UL>
|
|
|
|
<P><B>Examples:</B>
|
|
|
|
</P>
|
|
|
|
<PRE>dipole 1 1.0
|
|
|
|
dipole 3 2.0
|
|
|
|
dipole 3*5 0.0
|
|
|
|
</PRE>
|
|
|
|
<P><B>Description:</B>
|
|
|
|
</P>
|
|
|
|
<P>Set the dipole moment for all atoms of one or more atom types. This
|
|
|
|
command is only used for atom styles that require dipole moments
|
|
|
|
(<A HREF = "atom_style.html">atom_style</A> dipole). A value of 0.0 should be used
|
|
|
|
if the atom type has no dipole moment. Dipole values can also be set
|
|
|
|
in the <A HREF = "read_data.html">read_data</A> data file. See the
|
|
|
|
<A HREF = "units.html">units</A> command for a discussion of dipole units.
|
|
|
|
</P>
|
2007-06-20 20:56:17 +08:00
|
|
|
<P>Currently, only <A HREF = "atom_style.html">atom_style dipole</A> requires dipole
|
|
|
|
moments be set.
|
|
|
|
</P>
|
2006-09-22 00:22:34 +08:00
|
|
|
<P>I can be specified in one of two ways. An explicit numeric value can
|
2006-09-29 04:54:07 +08:00
|
|
|
be used, as in the 1st example above. Or a wild-card asterisk can be
|
2006-09-22 00:22:34 +08:00
|
|
|
used to set the dipole moment for multiple atom types. This takes the
|
|
|
|
form "*" or "*n" or "n*" or "m*n". If N = the number of atom types,
|
2006-09-29 04:54:07 +08:00
|
|
|
then an asterisk with no numeric values means all types from 1 to N. A
|
|
|
|
leading asterisk means all types from 1 to n (inclusive). A trailing
|
|
|
|
asterisk means all types from n to N (inclusive). A middle asterisk
|
2006-09-22 00:22:34 +08:00
|
|
|
means all types from m to n (inclusive).
|
|
|
|
</P>
|
2007-06-20 20:56:17 +08:00
|
|
|
<P>A line in a data file that specifies a dipole moment uses the same
|
|
|
|
format as the arguments of the dipole command in an input script,
|
2006-09-29 04:54:07 +08:00
|
|
|
except that no wild-card asterisk can be used. For example, under the
|
2006-09-22 00:22:34 +08:00
|
|
|
"Dipoles" section of a data file, the line that corresponds to the 1st
|
|
|
|
example above would be listed as
|
|
|
|
</P>
|
|
|
|
<PRE>1 1.0
|
|
|
|
</PRE>
|
|
|
|
<P><B>Restrictions:</B>
|
|
|
|
</P>
|
|
|
|
<P>This command must come after the simulation box is defined by a
|
|
|
|
<A HREF = "read_data.html">read_data</A>, <A HREF = "read_restart.html">read_restart</A>, or
|
|
|
|
<A HREF = "create_box.html">create_box</A> command.
|
|
|
|
</P>
|
|
|
|
<P>All dipoles moments must be defined before a simulation is run (if the
|
2007-06-20 20:56:17 +08:00
|
|
|
atom style requires dipoles be set). They must also all be defined
|
|
|
|
before a <A HREF = "set.html">set dipole</A> or <A HREF = "set.html">set dipole/random</A> command
|
|
|
|
is used.
|
2006-09-22 00:22:34 +08:00
|
|
|
</P>
|
|
|
|
<P><B>Related commands:</B> none
|
|
|
|
</P>
|
|
|
|
<P><B>Default:</B> none
|
|
|
|
</P>
|
|
|
|
</HTML>
|