fix grammar and reformat

This commit is contained in:
Axel Kohlmeyer
2025-07-08 02:09:30 -04:00
parent 0502d421b0
commit 2b8b84788b

View File

@ -171,29 +171,26 @@ restrictions discussed below.
If the *hybrid/scaled* style is used instead of *hybrid/overlay*,
contributions from sub-styles are weighted by their scale factors, which
may be fractional or even negative. Furthermore the scale factor for
each sub-style may a constant, an *equal* style variable, or an *atom*
style variable. Variable scale factors may change during the simulation.
Different sub-styles may use different scale factor styles.
In the case of a sub-style scale factor that is an *atom* style variable,
the force contribution to each atom from that sub-style is weighted
by the value of the variable for that atom, while the contribution
from that sub-style to the global potential energy is zero.
All other contributions to the per-atom energy, per-atom
virial, and global virial (if not obtained from forces)
from that sub-style are zero.
This enables
switching smoothly between two different pair styles or two different
parameter sets during a run in a similar fashion as could be done
with :doc:`fix adapt <fix_adapt>` or :doc:`fix alchemy <fix_alchemy>`.
All pair styles that will be used are listed as "sub-styles" following
the *hybrid* or *hybrid/overlay* keyword, in any order. In case of the
*hybrid/scaled* pair style, each sub-style is prefixed with a scale
factor. The scale factor is either a floating point number or an
*equal* or *atom*
style (or equivalent) variable. Each sub-style's name is followed by
its usual arguments, as illustrated in the examples above. See the doc
pages of the individual pair styles for a listing and explanation of the
appropriate arguments for them.
each sub-style may be a constant, an *equal* style variable, or an
*atom* style variable. Variable scale factors may change during the
simulation. Different sub-styles may use different scale factor styles.
In the case of a sub-style scale factor that is an *atom* style
variable, the force contribution to each atom from that sub-style is
weighted by the value of the variable for that atom, while the
contribution from that sub-style to the global potential energy is zero.
All other contributions to the per-atom energy, per-atom virial, and
global virial (if not obtained from forces) from that sub-style are
zero. This enables switching smoothly between two different pair styles
or two different parameter sets during a run in a similar fashion as
could be done with :doc:`fix adapt <fix_adapt>` or :doc:`fix alchemy
<fix_alchemy>`. All pair styles that will be used are listed as
"sub-styles" following the *hybrid* or *hybrid/overlay* keyword, in any
order. In case of the *hybrid/scaled* pair style, each sub-style is
prefixed with a scale factor. The scale factor is either a floating
point number or an *equal* or *atom* style (or equivalent) variable.
Each sub-style's name is followed by its usual arguments, as illustrated
in the examples above. See the doc pages of the individual pair styles
for a listing and explanation of the appropriate arguments for them.
Note that an individual pair style can be used multiple times as a
sub-style. For efficiency reasons this should only be done if your