compute ti command
Syntax
compute ID group ti keyword args ...
ID, group-ID are documented in compute command
ti = style name of this compute command
one or more attribute/arg pairs may be appended
keyword = pair style (lj/cut, gauss, born, etc.) or tail or kspace
pair style args = atype v_name1 v_name2 atype = atom type (see asterisk form below) v_name1 = variable with name1 that is energy scale factor and function of lambda v_name2 = variable with name2 that is derivative of v_name1 with respect to lambda tail args = atype v_name1 v_name2 atype = atom type (see asterisk form below) v_name1 = variable with name1 that is energy tail correction scale factor and function of lambda v_name2 = variable with name2 that is derivative of v_name1 with respect to lambda kspace args = atype v_name1 v_name2 atype = atom type (see asterisk form below) v_name1 = variable with name1 that is K-Space scale factor and function of lambda v_name2 = variable with name2 that is derivative of v_name1 with respect to lambda
Examples
compute 1 all ti lj/cut 1 v_lj v_dlj coul/long 2 v_c v_dc kspace 1 v_ks v_dks
compute 1 all ti lj/cut 1*3 v_lj v_dlj coul/long * v_c v_dc kspace * v_ks v_dks
Description
Define a computation that calculates the derivative of the interaction potential with respect to lambda, the coupling parameter used in a thermodynamic integration. This derivative can be used to infer a free energy difference resulting from an alchemical simulation, as described in Eike.
Typically this compute will be used in conjunction with the
fix adapt command which can perform alchemical
transformations by adjusting the strength of an interaction potential
as a simulation runs, as defined by one or more
pair_style or kspace_style
commands. This scaling is done via a prefactor on the energy, forces,
virial calculated by the pair or
Assume that the unscaled energy of a pair_style or kspace_style is
given by
where
which is the derivative of the system’s scaled potential energy
To perform this calculation, you provide one or more atom types as
atype. The variable atype can be specified in one of two ways.
An explicit numeric value can be used, as in the first example above, or a
wildcard asterisk can be used in place of or in conjunction with the
atype argument to select multiple atom types. This takes the form
“*” or “*n” or “m*” or “m*n”. If
You also specify two functions, as equal-style variables.
The first is specified as v_name1, where name1 is the name of the
variable, and is
An alchemical simulation may use several pair potentials together,
invoked via the pair_style hybrid or hybrid/overlay
command. The total
For each term, you can specify a different (or the same) scale factor
by the two variables that you list. Again, these will typically
correspond toe the scale factors applied to these various potentials
and the
More details about the exact functional forms for the computation of
Output info
This compute calculates a global scalar, namely
The scalar value calculated by this compute is “extensive”.
The scalar value will be in energy units.
Restrictions
This compute is part of the EXTRA-COMPUTE package. It is only enabled if LAMMPS was built with that package. See the Build package page for more info.
Default
none
(Eike) Eike and Maginn, Journal of Chemical Physics, 124, 164503 (2006).