pair_style spin/exchange command
pair_style spin/exchange/biquadratic command
Syntax
pair_style spin/exchange cutoff
pair_style spin/exchange/biquadratic cutoff
cutoff = global cutoff pair (distance in metal units)
Examples
pair_style spin/exchange 4.0
pair_coeff * * exchange 4.0 0.0446928 0.003496 1.4885
pair_coeff 1 2 exchange 6.0 -0.01575 0.0 1.965 offset yes
pair_style spin/exchange/biquadratic 4.0
pair_coeff * * biquadratic 4.0 0.05 0.03 1.48 0.05 0.03 1.48 offset no
pair_coeff 1 2 biquadratic 6.0 -0.01 0.0 1.9 0.0 0.1 19
Description
Style spin/exchange computes the exchange interaction between pairs of magnetic spins:
where
Style spin/exchange/biquadratic computes a biquadratic exchange interaction between pairs of magnetic spins:
where
The interatomic dependence of
where
The coefficients
When a spin/exchange/biquadratic pair style is defined, six coefficients
(three for
From this exchange interaction, each spin
with
More details about the derivation of these torques/forces are reported in (Tranchida).
For the spin/exchange and spin/exchange/biquadratic pair styles, the following coefficients must be defined for each pair of atoms types via the pair_coeff command as in the examples above, or in the data file or restart files read by the read_data or read_restart commands, and set in the following order:
(distance units) (energy units) (adim parameter) (distance units)
for the spin/exchange pair style, and:
(distance units) (energy units) (adim parameter) (distance units) (energy units) (adim parameter) (distance units)
for the spin/exchange/biquadratic pair style.
Note that
None of those coefficients is optional. If not specified, the spin/exchange pair style cannot be used.
Offsetting magnetic forces and energies:
For spin-lattice simulation, it can be useful to offset the mechanical forces and energies generated by the exchange interaction. The offset keyword allows to apply this offset. By setting offset to yes, the energy definitions above are replaced by:
for the spin/exchange pair style, and:
for the spin/exchange/biquadratic pair style.
Note that this offset only affects the calculation of the energy and mechanical forces. It does not modify the calculation of the precession vectors (and thus does no impact the purely magnetic properties). This ensures that when all spins are aligned, the magnetic energy and the associated mechanical forces (and thus the pressure generated by the magnetic potential) are null.
Note
This offset term can be very important when calculations such as equations of state (energy vs volume, or energy vs pressure) are being performed. Indeed, setting the offset term ensures that at the ground state of the crystal and at the equilibrium magnetic configuration (typically ferromagnetic), the pressure is null, as expected. Otherwise, magnetic forces could generate a residual pressure.
When the offset option is set to no, no offset is applied (also corresponding to the default option).
Restrictions
All the pair/spin styles are part of the SPIN package. These styles are only enabled if LAMMPS was built with this package, and if the atom_style “spin” was declared. See the Build package page for more info.
Default
The default offset keyword value is no.
(Tranchida) Tranchida, Plimpton, Thibaudeau and Thompson, Journal of Computational Physics, 372, 406-425, (2018).