Changed "exclude" keyword to "overlap"

+ added new error description to header file
+ minor fix in the doc file
This commit is contained in:
Eugen Rožić
2022-02-14 12:46:44 +01:00
parent 78cf0365e6
commit 374a172246
3 changed files with 33 additions and 29 deletions

View File

@ -26,7 +26,7 @@ Syntax
region-ID = create atoms within this region, use NULL for entire simulation box
* zero or more keyword/value pairs may be appended
* keyword = *mol* or *basis* or *ratio* or *subset* or *remap* or *var* or *set* or *rotate* or *units*
* keyword = *mol* or *basis* or *ratio* or *subset* or *remap* or *var* or *set* or *rotate* or *maxtries* or *overlap* or *units*
.. parsed-literal::
@ -50,8 +50,8 @@ Syntax
*rotate* values = theta Rx Ry Rz
theta = rotation angle for single molecule (degrees)
Rx,Ry,Rz = rotation vector for single molecule
*maxtries* value = N = number of tries (for a single particle) before failure
*exclude* value = radius = radius of exclusion area around existing atoms
*maxtries* value = N = number of tries (for a single particle to be created) before failure
*overlap* value = radius = the minimum distance from existing atoms (to avoid overlapping/huge forces)
*units* value = *lattice* or *box*
*lattice* = the geometry is defined in lattice units
*box* = the geometry is defined in simulation box units
@ -66,7 +66,7 @@ Examples
create_atoms 3 region regsphere basis 2 3 ratio 0.5 74637
create_atoms 3 single 0 0 5
create_atoms 1 box var v set x xpos set y ypos
create_atoms 2 random 50 12345 NULL maxtries 10 exclude 2.0
create_atoms 2 random 50 12345 NULL maxtries 10 overlap 2.0
Description
"""""""""""
@ -131,7 +131,7 @@ outside a geometric boundary.
.. note::
Particles generated by the *random* style (without the *exclude* keyword)
Particles generated by the *random* style (without the *overlap* keyword)
will typically be highly overlapped which will cause many interatomic
potentials to compute large energies and forces. Thus you should either
perform an :doc:`energy minimization <minimize>` or run dynamics with
@ -151,7 +151,7 @@ solvated with a surrounding box of water molecules.
In all these cases, care should be taken to insure that new atoms do
not overlap existing atoms inappropriately, especially if molecules
are being added. For this reason the *exclude* keyword is provided,
are being added. For this reason the *overlap* keyword is provided,
also the :doc:`delete_atoms <delete_atoms>` command can be used to remove
overlapping atoms or molecules.
@ -297,14 +297,14 @@ rule: if your right-hand's thumb points along *R*, then your fingers
wrap around the axis in the direction of rotation.
The *maxtries* keyword limits the number of tries to generate coordinates
for a new particle that satisfies all requirements (region, var, exclude,
for a new particle that satisfies all requirements (region, var, overlap,
...) before the command fails. This keyword is available only with the
*random* style and the default number of tries is 1000 per particle. The
use of this keyword is recommended when using the *exclude* keyword,
use of this keyword is recommended when using the *overlap* keyword,
otherwise it is usually not necessary (but can be useful).
The *exclude* keyword can be used with the *random* style (and only the
*random* style) to prevent the newly created particles overlapping or being
The *overlap* keyword can be used with the *random* style (and only the
*random* style) to prevent the newly created particles from overlapping or being
created too close to others. When the particles being created are **single
atoms** the *radius* parameter passed with the keyword denotes the distance
between particle locations/centers, meaning that all new atoms will be created