diff --git a/doc/set.html b/doc/set.html index 921dce795d..224ab3a53c 100644 --- a/doc/set.html +++ b/doc/set.html @@ -150,11 +150,16 @@ for details of how to specify a group or region. change, for the selected atoms.

Note that except where explicitly prohibited below, all of the -keywords allow an atom-style variable to be used as -the specified value(s). If the value is a variable, it should be -specified as v_name, where name is the variable name. In this case, -the variable will be evaluated, and its resulting per-atom value used -to determine the value assigned to each selected atom. +keywords allow an atom-style or atomfile-style +variable to be used as the specified value(s). If the +value is a variable, it should be specified as v_name, where name is +the variable name. In this case, the variable will be evaluated, and +its resulting per-atom value used to determine the value assigned to +each selected atom. Note that the per-atom value from the variable +will be ignored for atoms that are not selected via the style and +ID settings explained above. A simple way to use per-atom values +from the variable to reset a property for all atoms is to use style +atom with ID = "*"; this selects all atom IDs.

Atom-style variables can specify formulas with various mathematical functions, and include thermo_style command diff --git a/doc/set.txt b/doc/set.txt index 72fefc932c..94c5ac0f31 100644 --- a/doc/set.txt +++ b/doc/set.txt @@ -146,11 +146,16 @@ This section describes the keyword options for which properties to change, for the selected atoms. Note that except where explicitly prohibited below, all of the -keywords allow an "atom-style variable"_variable.html to be used as -the specified value(s). If the value is a variable, it should be -specified as v_name, where name is the variable name. In this case, -the variable will be evaluated, and its resulting per-atom value used -to determine the value assigned to each selected atom. +keywords allow an "atom-style or atomfile-style +variable"_variable.html to be used as the specified value(s). If the +value is a variable, it should be specified as v_name, where name is +the variable name. In this case, the variable will be evaluated, and +its resulting per-atom value used to determine the value assigned to +each selected atom. Note that the per-atom value from the variable +will be ignored for atoms that are not selected via the {style} and +{ID} settings explained above. A simple way to use per-atom values +from the variable to reset a property for all atoms is to use style +{atom} with {ID} = "*"; this selects all atom IDs. Atom-style variables can specify formulas with various mathematical functions, and include "thermo_style"_thermo_style.html command