lammps/doc/fix_volume_rescale.html

69 lines
2.3 KiB
HTML

<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>fix volume/rescale command
</H3>
<P><B>Syntax:</B>
</P>
<PRE>fix ID group-ID volume/rescale N keyword args ...
</PRE>
<UL><LI>ID, group-ID are documented in <A HREF = "fix.html">fix</A> command
</UL>
<LI>volume/rescale = style name of this fix command
<LI>N = perform volume rescaling every this many timesteps
<LI>one or more keyword/value pairs may be appended to the args
<LI>keyword = <I>x</I> or <I>y</I> or <I>z</I>
<PRE> <I>x</I>, <I>y</I>, <I>z</I> args = lo,hi = desired simulation box boundaries
at end of run (distance units)
</PRE>
</UL>
<P><B>Examples:</B>
</P>
<PRE>fix 1 all volume/rescale 100 x -9.0 9.0 z -5.0 5.0
</PRE>
<P><B>Description:</B>
</P>
<P>Enable a volume (density) change during a simulation. Each of the 3
box dimensions is controlled separately. Any dimension being varied
by this command must be periodic - see the <A HREF = "boundary.html">boundary</A>
command. Dimensions not varied by this command can be periodic or
non-periodic. The volume associated with an unspecified dimension can
also be controlled by a <A HREF = "fix_npt.html">fix npt</A> command.
</P>
<P>The initial simulation box boundaries at the beginning of a run are
specified by the <A HREF = "create_box.html">create_box</A> or
<A HREF = "read_data.html">read_data</A> or <A HREF = "read_restart.html">read_restart</A> command
used to setup the simulation, or they are the values at the end of the
previous run. The desired simulation box boundaries at the end of the
run are given by the <I>lo</I> and <I>hi</I> arguments. See the
<A HREF = "units.html">units</A> command for a discussion of distance units.
</P>
<P>Every Nth timestep during the run, the simulation box is expanded or
contracted to a ramped value between the initial and final values.
The <A HREF = "run.html">run</A> command documents how to make the ramping take
place across multiple runs. The coordinates of all atoms in the group
are also scaled to the new box size.
</P>
<P><B>Restrictions:</B>
</P>
<P>Any dimension being varied by this fix must be periodic.
</P>
<P><B>Related commands:</B> none
</P>
<P><B>Default:</B> none
</P>
</HTML>