2009-03-19 01:37:50 +08:00
|
|
|
"LAMMPS WWW Site"_lws - "LAMMPS Documentation"_ld - "LAMMPS Commands"_lc :c
|
|
|
|
|
|
|
|
:link(lws,http://lammps.sandia.gov)
|
|
|
|
:link(ld,Manual.html)
|
|
|
|
:link(lc,Section_commands.html#comm)
|
|
|
|
|
|
|
|
:line
|
|
|
|
|
|
|
|
fix evaporate command :h3
|
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
|
|
|
fix ID group-ID evaporate N M region-ID seed :pre
|
|
|
|
|
2010-05-07 01:32:58 +08:00
|
|
|
ID, group-ID are documented in "fix"_fix.html command :ulb,l
|
|
|
|
evaporate = style name of this fix command :l
|
|
|
|
N = delete atoms every this many timesteps :l
|
|
|
|
M = number of atoms to delete each time :l
|
|
|
|
region-ID = ID of region within which to perform deletions :l
|
|
|
|
seed = random number seed to use for choosing atoms to delete :l
|
|
|
|
zero or more keyword/value pairs may be appended :l
|
2010-05-07 02:00:32 +08:00
|
|
|
keyword = {molecule}
|
2010-05-07 01:32:58 +08:00
|
|
|
{molecule} value = {no} or {yes} :pre
|
|
|
|
:ule
|
2009-03-19 01:37:50 +08:00
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
2010-05-07 01:32:58 +08:00
|
|
|
fix 1 solvent evaporate 1000 10 surface 49892
|
|
|
|
fix 1 solvent evaporate 1000 10 surface 38277 molecule yes :pre
|
2009-03-19 01:37:50 +08:00
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
|
|
|
Remove M atoms from the simulation every N steps. This can be used,
|
2010-05-07 01:32:58 +08:00
|
|
|
for example, to model evaporation of solvent particles or moleclues
|
|
|
|
(i.e. drying) of a system. Every N steps, the number of atoms in the
|
|
|
|
fix group and within the specifed region are counted. M of these are
|
|
|
|
chosen at random and deleted. If there are less than M eligible
|
|
|
|
particles, then all of them are deleted.
|
|
|
|
|
|
|
|
If the setting for the {molecule} keyword is {no}, then only single
|
|
|
|
atoms are deleted. In this case, you should insure you do not delete
|
|
|
|
only a portion of a molecule (only some of its atoms), or LAMMPS will
|
|
|
|
soon generate an error when it tries to find those atoms. LAMMPS will
|
|
|
|
warn you if any of the atoms eligible for deletion have a non-zero
|
|
|
|
molecule ID, but does not check for this at the time of deletion.
|
|
|
|
|
|
|
|
If the setting for the {molecule} keyword is {yes}, then when an atom
|
|
|
|
is chosen for deletion, the entire molecule it is part of is deleted.
|
|
|
|
The count of deleted atoms is incremented by the number of atoms in
|
2010-06-03 04:38:41 +08:00
|
|
|
the molecule, which may make it exceed {M}. If the molecule ID of the
|
|
|
|
chosen atom is 0, then it is assumed to not be part of a molecule, and
|
|
|
|
just the single atom is deleted.
|
2010-05-07 01:32:58 +08:00
|
|
|
|
|
|
|
As an example, if you wish to delete 10 water molecules every {N}
|
|
|
|
steps, you should set {M} to 30. If only the water's oxygen atoms
|
|
|
|
were in the fix group, then two hydrogen atoms would be deleted when
|
|
|
|
an oxygen atom is selected for deletion, whether the hydrogens are
|
|
|
|
inside the evaporation region or not.
|
2009-03-19 01:37:50 +08:00
|
|
|
|
|
|
|
Note that neighbor lists are re-built on timesteps that atoms are
|
|
|
|
removed. Thus you should not remove atoms too frequently or you will
|
|
|
|
incur overhead due to the cost of building neighbor lists.
|
|
|
|
|
2014-05-03 00:04:18 +08:00
|
|
|
IMPORTANT NOTE: If you are monitoring the temperature of a system
|
|
|
|
where the atom count is changing due to evaporation, you typically
|
|
|
|
should use the "compute_modify dynamic yes"_compute_modify.html
|
|
|
|
command for the temperature compute you are using.
|
|
|
|
|
2009-03-19 01:37:50 +08:00
|
|
|
[Restart, fix_modify, output, run start/stop, minimize info:]
|
|
|
|
|
|
|
|
No information about this fix is written to "binary restart
|
|
|
|
files"_restart.html. None of the "fix_modify"_fix_modify.html options
|
|
|
|
are relevant to this fix.
|
|
|
|
|
2010-04-03 00:51:06 +08:00
|
|
|
This fix computes a global scalar, which can be accessed by various
|
2011-08-26 01:01:01 +08:00
|
|
|
"output commands"_Section_howto.html#howto_15. The scalar is the
|
2010-04-03 00:51:06 +08:00
|
|
|
cummulative number of deleted atoms. The scalar value calculated by
|
|
|
|
this fix is "intensive".
|
2009-03-19 01:37:50 +08:00
|
|
|
|
|
|
|
No parameter of this fix can be used with the {start/stop} keywords of
|
|
|
|
the "run"_run.html command. This fix is not invoked during "energy
|
|
|
|
minimization"_minimize.html.
|
|
|
|
|
2013-07-26 06:38:11 +08:00
|
|
|
[Restrictions:]
|
|
|
|
|
|
|
|
This fix is part of the MISC package. It is only enabled if LAMMPS
|
|
|
|
was built with that package. See the "Making
|
|
|
|
LAMMPS"_Section_start.html#start_3 section for more info.
|
2009-03-19 01:37:50 +08:00
|
|
|
|
|
|
|
[Related commands:]
|
|
|
|
|
|
|
|
"fix deposit"_fix_deposit.html
|
|
|
|
|
2010-05-07 01:32:58 +08:00
|
|
|
[Default:]
|
|
|
|
|
|
|
|
The option defaults are molecule = no.
|