git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@755 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2007-07-18 15:46:24 +00:00
parent 7f51d50802
commit 56b53f9ae9
2 changed files with 45 additions and 19 deletions

View File

@ -22,14 +22,18 @@
<LI>window = only rescale if temperature is outside this window (temperature units) <LI>window = only rescale if temperature is outside this window (temperature units)
<LI>fraction = rescale to target temperature by this fraction <LI>fraction = rescale to target temperature by this fraction
<LI>zero or more keyword/value pairs may be appended <LI>zero or more keyword/value pairs may be appended
<LI>keyword = <I>region</I> <LI>keyword = <I>region</I> or <I>partial</I>
</UL> </UL>
<PRE> <I>region</I> values = region-ID of region to apply rescaling to <PRE> <I>region</I> values = region-ID
region-ID = ID of region to apply rescaling to
<I>partial</I> values = xflag yflag zflag
xflag,yflag,zflag = 0/1 if the velocity component should not or should be rescaled
</PRE> </PRE>
<P><B>Examples:</B> <P><B>Examples:</B>
</P> </P>
<PRE>fix 3 flow temp/rescale 100 1.0 1.1 0.02 0.5 <PRE>fix 3 flow temp/rescale 100 1.0 1.1 0.02 0.5
fix 3 boundary temp/rescale 1 1.0 1.5 0.05 1.0 region edge fix 3 boundary temp/rescale 1 1.0 1.5 0.05 1.0 region edge
fix 3 boundary temp/rescale 1 1.0 1.5 0.05 1.0 partial 0 1 1
</PRE> </PRE>
<P><B>Description:</B> <P><B>Description:</B>
</P> </P>
@ -51,6 +55,12 @@ value.
specified geometric region (and in the fix group). Since atoms can specified geometric region (and in the fix group). Since atoms can
enter/leave a region, this test is performed each timestep. enter/leave a region, this test is performed each timestep.
</P> </P>
<P>The keyword <I>partial</I> rescales only the specified velocity components.
A compute of style temp/partial is used to compute the current
temperature of just those components (see below).
</P>
<P>The <I>region</I> and <I>partial</I> keywords cannot currently be used together.
</P>
<P>A temp/rescale fix does not update the coordinates of its atoms. It <P>A temp/rescale fix does not update the coordinates of its atoms. It
is normally used with a fix of style <I>nve</I> that does that. A is normally used with a fix of style <I>nve</I> that does that. A
temp/rescale fix should not normally be used on atoms that also have temp/rescale fix should not normally be used on atoms that also have
@ -58,16 +68,19 @@ their temperature controlled by another fix - e.g. a
<A HREF = "fix_nvt.html">nvt</A> or <A HREF = "fix_langevin.html">langevin</A> fix. <A HREF = "fix_nvt.html">nvt</A> or <A HREF = "fix_langevin.html">langevin</A> fix.
</P> </P>
<P>This fix computes a temperature each timestep. To do this, the fix <P>This fix computes a temperature each timestep. To do this, the fix
creates its own compute of style "temp" or "temp/region", as if one of creates its own compute of style "temp" or "temp/region" or
these commands had been issued: "temp/partial", as if one of these commands had been issued:
</P> </P>
<PRE>compute fix-ID_temp group-ID temp <PRE>compute fix-ID_temp group-ID temp
compute fix-ID_temp group-ID temp/region region-ID compute fix-ID_temp group-ID temp/region region-ID
compute fix-ID_temp group-ID temp/partial xflag yflag zflag
</PRE> </PRE>
<P>Which is used depends on whether a region was specified with the fix. <P>Which is used depends on whether the <I>region</I> or <I>partial</I> keywords
See the <A HREF = "compute_temp.html">compute temp</A> and <A HREF = "compute_temp_region.html">compute were specified with the fix. See the <A HREF = "compute_temp.html">compute
temp/region</A> commands for details. Note that temp</A>, <A HREF = "compute_temp_region.html">compute
the ID of the new compute is the fix-ID with underscore + "temp" temp/region</A>, and <A HREF = "compute_temp_partial.html">compute
temp/partial</A> commands for details. Note
that the ID of the new compute is the fix-ID with underscore + "temp"
appended and the group for the new compute is the same as the fix appended and the group for the new compute is the same as the fix
group. group.
</P> </P>

View File

@ -19,13 +19,17 @@ Tstart,Tstop = desired temperature at start/end of run (temperature units)
window = only rescale if temperature is outside this window (temperature units) window = only rescale if temperature is outside this window (temperature units)
fraction = rescale to target temperature by this fraction fraction = rescale to target temperature by this fraction
zero or more keyword/value pairs may be appended zero or more keyword/value pairs may be appended
keyword = {region} :ul keyword = {region} or {partial} :ul
{region} values = region-ID of region to apply rescaling to :pre {region} values = region-ID
region-ID = ID of region to apply rescaling to
{partial} values = xflag yflag zflag
xflag,yflag,zflag = 0/1 if the velocity component should not or should be rescaled :pre
[Examples:] [Examples:]
fix 3 flow temp/rescale 100 1.0 1.1 0.02 0.5 fix 3 flow temp/rescale 100 1.0 1.1 0.02 0.5
fix 3 boundary temp/rescale 1 1.0 1.5 0.05 1.0 region edge :pre fix 3 boundary temp/rescale 1 1.0 1.5 0.05 1.0 region edge
fix 3 boundary temp/rescale 1 1.0 1.5 0.05 1.0 partial 0 1 1 :pre
[Description:] [Description:]
@ -47,6 +51,12 @@ The keyword {region} applies the fix only to atoms that are in the
specified geometric region (and in the fix group). Since atoms can specified geometric region (and in the fix group). Since atoms can
enter/leave a region, this test is performed each timestep. enter/leave a region, this test is performed each timestep.
The keyword {partial} rescales only the specified velocity components.
A compute of style temp/partial is used to compute the current
temperature of just those components (see below).
The {region} and {partial} keywords cannot currently be used together.
A temp/rescale fix does not update the coordinates of its atoms. It A temp/rescale fix does not update the coordinates of its atoms. It
is normally used with a fix of style {nve} that does that. A is normally used with a fix of style {nve} that does that. A
temp/rescale fix should not normally be used on atoms that also have temp/rescale fix should not normally be used on atoms that also have
@ -54,16 +64,19 @@ their temperature controlled by another fix - e.g. a
"nvt"_fix_nvt.html or "langevin"_fix_langevin.html fix. "nvt"_fix_nvt.html or "langevin"_fix_langevin.html fix.
This fix computes a temperature each timestep. To do this, the fix This fix computes a temperature each timestep. To do this, the fix
creates its own compute of style "temp" or "temp/region", as if one of creates its own compute of style "temp" or "temp/region" or
these commands had been issued: "temp/partial", as if one of these commands had been issued:
compute fix-ID_temp group-ID temp compute fix-ID_temp group-ID temp
compute fix-ID_temp group-ID temp/region region-ID :pre compute fix-ID_temp group-ID temp/region region-ID
compute fix-ID_temp group-ID temp/partial xflag yflag zflag :pre
Which is used depends on whether a region was specified with the fix. Which is used depends on whether the {region} or {partial} keywords
See the "compute temp"_compute_temp.html and "compute were specified with the fix. See the "compute
temp/region"_compute_temp_region.html commands for details. Note that temp"_compute_temp.html, "compute
the ID of the new compute is the fix-ID with underscore + "temp" temp/region"_compute_temp_region.html, and "compute
temp/partial"_compute_temp_partial.html commands for details. Note
that the ID of the new compute is the fix-ID with underscore + "temp"
appended and the group for the new compute is the same as the fix appended and the group for the new compute is the same as the fix
group. group.