Merge branch 'develop' into collected-small-fixes
This commit is contained in:
@ -111,10 +111,10 @@ Syntax
|
|||||||
.. parsed-literal::
|
.. parsed-literal::
|
||||||
|
|
||||||
*acolor* args = type color
|
*acolor* args = type color
|
||||||
type = atom type or range of types (see below)
|
type = atom type (numeric or type label) or range of numeric types (see below)
|
||||||
color = name of color or color1/color2/...
|
color = name of color or color1/color2/...
|
||||||
*adiam* args = type diam
|
*adiam* args = type diam
|
||||||
type = atom type or range of types (see below)
|
type = atom type (numeric or type label) or range of numeric types (see below)
|
||||||
diam = diameter of atoms of that type (distance units)
|
diam = diameter of atoms of that type (distance units)
|
||||||
*amap* args = lo hi style delta N entry1 entry2 ... entryN
|
*amap* args = lo hi style delta N entry1 entry2 ... entryN
|
||||||
lo = number or *min* = lower bound of range of color map
|
lo = number or *min* = lower bound of range of color map
|
||||||
@ -139,10 +139,10 @@ Syntax
|
|||||||
*backcolor* arg = color
|
*backcolor* arg = color
|
||||||
color = name of color for background
|
color = name of color for background
|
||||||
*bcolor* args = type color
|
*bcolor* args = type color
|
||||||
type = bond type or range of types (see below)
|
type = bond type (numeric or type label) or range of numeric types (see below)
|
||||||
color = name of color or color1/color2/...
|
color = name of color or color1/color2/...
|
||||||
*bdiam* args = type diam
|
*bdiam* args = type diam
|
||||||
type = bond type or range of types (see below)
|
type = bond type (numeric or type label) or range of numeric types (see below)
|
||||||
diam = diameter of bonds of that type (distance units)
|
diam = diameter of bonds of that type (distance units)
|
||||||
*bitrate* arg = rate
|
*bitrate* arg = rate
|
||||||
rate = target bitrate for movie in kbps
|
rate = target bitrate for movie in kbps
|
||||||
@ -169,6 +169,9 @@ Examples
|
|||||||
|
|
||||||
dump_modify 1 amap min max cf 0.0 3 min green 0.5 yellow max blue boxcolor red
|
dump_modify 1 amap min max cf 0.0 3 min green 0.5 yellow max blue boxcolor red
|
||||||
|
|
||||||
|
labelmap atom 1 C 2 H 3 O 4 N
|
||||||
|
dump_modify 1 acolor C gray acolor H white acolor O red acolor N blue
|
||||||
|
|
||||||
Description
|
Description
|
||||||
"""""""""""
|
"""""""""""
|
||||||
|
|
||||||
@ -739,15 +742,15 @@ The *acolor* keyword can be used with the dump image command, when its
|
|||||||
atom color setting is *type*, to set the color that atoms of each type
|
atom color setting is *type*, to set the color that atoms of each type
|
||||||
will be drawn in the image.
|
will be drawn in the image.
|
||||||
|
|
||||||
The specified *type* should be an integer from 1 to Ntypes = the
|
The specified *type* should be a type label or integer from 1 to Ntypes
|
||||||
number of atom types. A wildcard asterisk can be used in place of or
|
= the number of atom types. For numeric types, a wildcard asterisk can
|
||||||
in conjunction with the *type* argument to specify a range of atom
|
be used in place of or in conjunction with the *type* argument to
|
||||||
types. This takes the form "\*" or "\*n" or "n\*" or "m\*n". If N =
|
specify a range of atom types. This takes the form "\*" or "\*n" or
|
||||||
the number of atom types, then an asterisk with no numeric values
|
"n\*" or "m\*n". If N = the number of atom types, then an asterisk with
|
||||||
means all types from 1 to N. A leading asterisk means all types from
|
no numeric values means all types from 1 to N. A leading asterisk
|
||||||
1 to n (inclusive). A trailing asterisk means all types from n to N
|
means all types from 1 to n (inclusive). A trailing asterisk means all
|
||||||
(inclusive). A middle asterisk means all types from m to n
|
types from n to N (inclusive). A middle asterisk means all types from
|
||||||
(inclusive).
|
m to n (inclusive).
|
||||||
|
|
||||||
The specified *color* can be a single color which is any of the 140
|
The specified *color* can be a single color which is any of the 140
|
||||||
pre-defined colors (see below) or a color name defined by the
|
pre-defined colors (see below) or a color name defined by the
|
||||||
@ -761,11 +764,12 @@ fashion to each of the specified atom types.
|
|||||||
|
|
||||||
The *adiam* keyword can be used with the dump image command, when its
|
The *adiam* keyword can be used with the dump image command, when its
|
||||||
atom diameter setting is *type*, to set the size that atoms of each
|
atom diameter setting is *type*, to set the size that atoms of each
|
||||||
type will be drawn in the image. The specified *type* should be an
|
type will be drawn in the image. The specified *type* should be a type
|
||||||
integer from 1 to Ntypes. As with the *acolor* keyword, a wildcard
|
label or integer from 1 to Ntypes. As with the *acolor* keyword, a
|
||||||
asterisk can be used as part of the *type* argument to specify a range
|
wildcard asterisk can be used as part of the *type* argument to specify
|
||||||
of atom types. The specified *diam* is the size in whatever distance
|
a range of numeric atom types. The specified *diam* is the size in
|
||||||
:doc:`units <units>` the input script is using, e.g. Angstroms.
|
whatever distance :doc:`units <units>` the input script is using, e.g.
|
||||||
|
Angstroms.
|
||||||
|
|
||||||
----------
|
----------
|
||||||
|
|
||||||
@ -908,14 +912,15 @@ The *bcolor* keyword can be used with the dump image command, with its
|
|||||||
*bond* keyword, when its color setting is *type*, to set the color
|
*bond* keyword, when its color setting is *type*, to set the color
|
||||||
that bonds of each type will be drawn in the image.
|
that bonds of each type will be drawn in the image.
|
||||||
|
|
||||||
The specified *type* should be an integer from 1 to :math:`N`, where :math:`N`
|
The specified *type* should be a type label or integer from 1 to
|
||||||
is the number of bond types. A wildcard asterisk can be used in place of or
|
:math:`N`, where :math:`N` is the number of bond types. For numeric
|
||||||
in conjunction with the *type* argument to specify a range of bond
|
types, a wildcard asterisk can be used in place of or in conjunction
|
||||||
types. This takes the form "\*" or "\*n" or "m\*" or "m\*n". If :math:`N`
|
with the *type* argument to specify a range of bond types. This takes
|
||||||
is the number of bond types, then an asterisk with no numerical values
|
the form "\*" or "\*n" or "m\*" or "m\*n". If :math:`N` is the number
|
||||||
means all types from 1 to :math:`N`. A leading asterisk means all types from
|
of bond types, then an asterisk with no numerical values means all
|
||||||
1 to n (inclusive). A trailing asterisk means all types from m to :math:`N`
|
types from 1 to :math:`N`. A leading asterisk means all types from 1
|
||||||
(inclusive). A middle asterisk means all types from m to n
|
to n (inclusive). A trailing asterisk means all types from m to
|
||||||
|
:math:`N` (inclusive). A middle asterisk means all types from m to n
|
||||||
(inclusive).
|
(inclusive).
|
||||||
|
|
||||||
The specified *color* can be a single color which is any of the 140
|
The specified *color* can be a single color which is any of the 140
|
||||||
@ -931,11 +936,11 @@ of the specified bond types.
|
|||||||
The *bdiam* keyword can be used with the dump image command, with its
|
The *bdiam* keyword can be used with the dump image command, with its
|
||||||
*bond* keyword, when its *diam* setting is *type*, to set the diameter
|
*bond* keyword, when its *diam* setting is *type*, to set the diameter
|
||||||
that bonds of each type will be drawn in the image. The specified
|
that bonds of each type will be drawn in the image. The specified
|
||||||
*type* should be an integer from 1 to Nbondtypes. As with the
|
*type* should be a type label or integer from 1 to Nbondtypes. As with
|
||||||
*bcolor* keyword, a wildcard asterisk can be used as part of the
|
the *bcolor* keyword, a wildcard asterisk can be used as part of the
|
||||||
*type* argument to specify a range of bond types. The specified
|
*type* argument to specify a range of numeric bond types. The
|
||||||
*diam* is the size in whatever distance :doc:`units <units>` you are
|
specified *diam* is the size in whatever distance :doc:`units <units>`
|
||||||
using (e.g., Angstroms).
|
you are using (e.g., Angstroms).
|
||||||
|
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
|||||||
@ -1536,7 +1536,7 @@ int DumpImage::modify_param(int narg, char **arg)
|
|||||||
if (strcmp(arg[0],"acolor") == 0) {
|
if (strcmp(arg[0],"acolor") == 0) {
|
||||||
if (narg < 3) error->all(FLERR,"Illegal dump_modify command");
|
if (narg < 3) error->all(FLERR,"Illegal dump_modify command");
|
||||||
int nlo,nhi;
|
int nlo,nhi;
|
||||||
utils::bounds(FLERR,arg[1],1,atom->ntypes,nlo,nhi,error);
|
utils::bounds_typelabel(FLERR,arg[1],1,atom->ntypes,nlo,nhi,lmp,Atom::ATOM);
|
||||||
|
|
||||||
// get list of colors
|
// get list of colors
|
||||||
// assign colors in round-robin fashion to types
|
// assign colors in round-robin fashion to types
|
||||||
@ -1557,7 +1557,7 @@ int DumpImage::modify_param(int narg, char **arg)
|
|||||||
if (strcmp(arg[0],"adiam") == 0) {
|
if (strcmp(arg[0],"adiam") == 0) {
|
||||||
if (narg < 3) error->all(FLERR,"Illegal dump_modify command");
|
if (narg < 3) error->all(FLERR,"Illegal dump_modify command");
|
||||||
int nlo,nhi;
|
int nlo,nhi;
|
||||||
utils::bounds(FLERR,arg[1],1,atom->ntypes,nlo,nhi,error);
|
utils::bounds_typelabel(FLERR,arg[1],1,atom->ntypes,nlo,nhi,lmp,Atom::ATOM);
|
||||||
double diam = utils::numeric(FLERR,arg[2],false,lmp);
|
double diam = utils::numeric(FLERR,arg[2],false,lmp);
|
||||||
if (diam <= 0.0) error->all(FLERR,"Illegal dump_modify command");
|
if (diam <= 0.0) error->all(FLERR,"Illegal dump_modify command");
|
||||||
for (int i = nlo; i <= nhi; i++) diamtype[i] = diam;
|
for (int i = nlo; i <= nhi; i++) diamtype[i] = diam;
|
||||||
@ -1588,7 +1588,7 @@ int DumpImage::modify_param(int narg, char **arg)
|
|||||||
if (atom->nbondtypes == 0)
|
if (atom->nbondtypes == 0)
|
||||||
error->all(FLERR,"Dump modify bcolor not allowed with no bond types");
|
error->all(FLERR,"Dump modify bcolor not allowed with no bond types");
|
||||||
int nlo,nhi;
|
int nlo,nhi;
|
||||||
utils::bounds(FLERR,arg[1],1,atom->nbondtypes,nlo,nhi,error);
|
utils::bounds_typelabel(FLERR,arg[1],1,atom->nbondtypes,nlo,nhi,lmp,Atom::BOND);
|
||||||
|
|
||||||
// process list of ncount colornames separated by '/'
|
// process list of ncount colornames separated by '/'
|
||||||
// assign colors in round-robin fashion to bond types
|
// assign colors in round-robin fashion to bond types
|
||||||
@ -1611,7 +1611,7 @@ int DumpImage::modify_param(int narg, char **arg)
|
|||||||
if (atom->nbondtypes == 0)
|
if (atom->nbondtypes == 0)
|
||||||
error->all(FLERR,"Dump modify bdiam not allowed with no bond types");
|
error->all(FLERR,"Dump modify bdiam not allowed with no bond types");
|
||||||
int nlo,nhi;
|
int nlo,nhi;
|
||||||
utils::bounds(FLERR,arg[1],1,atom->nbondtypes,nlo,nhi,error);
|
utils::bounds_typelabel(FLERR,arg[1],1,atom->nbondtypes,nlo,nhi,lmp,Atom::BOND);
|
||||||
double diam = utils::numeric(FLERR,arg[2],false,lmp);
|
double diam = utils::numeric(FLERR,arg[2],false,lmp);
|
||||||
if (diam <= 0.0) error->all(FLERR,"Illegal dump_modify command");
|
if (diam <= 0.0) error->all(FLERR,"Illegal dump_modify command");
|
||||||
for (int i = nlo; i <= nhi; i++) bdiamtype[i] = diam;
|
for (int i = nlo; i <= nhi; i++) bdiamtype[i] = diam;
|
||||||
|
|||||||
Reference in New Issue
Block a user