diff --git a/doc/src/Howto_spins.rst b/doc/src/Howto_spins.rst index 63d5d8f4e7..8ca220f596 100644 --- a/doc/src/Howto_spins.rst +++ b/doc/src/Howto_spins.rst @@ -30,10 +30,10 @@ can be coupled to another Langevin thermostat applied to the atoms using :doc:`fix langevin ` in order to simulate thermostatted spin-lattice systems. -The magnetic damping can also be applied -using :doc:`fix langevin/spin `. -It allows to either dissipate the thermal energy of the Langevin -thermostat, or to perform a relaxation of the magnetic configuration +The magnetic damping can also be applied +using :doc:`fix langevin/spin `. +It allows to either dissipate the thermal energy of the Langevin +thermostat, or to perform a relaxation of the magnetic configuration toward an equilibrium state. The command :doc:`fix setforce/spin ` allows to set the @@ -54,10 +54,10 @@ All the computed magnetic properties can be output by two main commands. The first one is :doc:`compute spin `, that enables to evaluate magnetic averaged quantities, such as the total magnetization of the system along x, y, or z, the spin temperature, or -the magnetic energy. The second command -is :doc:`compute property/atom `. -It enables to output all the per atom magnetic quantities. Typically, -the orientation of a given magnetic spin, or the magnetic force +the magnetic energy. The second command +is :doc:`compute property/atom `. +It enables to output all the per atom magnetic quantities. Typically, +the orientation of a given magnetic spin, or the magnetic force acting on this spin. ---------- diff --git a/doc/src/min_modify.rst b/doc/src/min_modify.rst index 8ef89fa16c..1b57a39064 100644 --- a/doc/src/min_modify.rst +++ b/doc/src/min_modify.rst @@ -109,8 +109,8 @@ norm is replaced by the spin-torque norm. Keywords *alpha_damp* and *discrete_factor* only make sense when a :doc:`min_spin ` command is declared. -Keyword *alpha_damp* defines an analog of a magnetic damping. -It defines a relaxation rate toward an equilibrium for a given +Keyword *alpha_damp* defines an analog of a magnetic damping. +It defines a relaxation rate toward an equilibrium for a given magnetic system. Keyword *discrete_factor* defines a discretization factor for the adaptive timestep used in the *spin* minimization. diff --git a/src/SPIN/compute_spin.cpp b/src/SPIN/compute_spin.cpp index 66145a1063..b6a863d22f 100644 --- a/src/SPIN/compute_spin.cpp +++ b/src/SPIN/compute_spin.cpp @@ -43,7 +43,7 @@ using namespace MathConst; /* ---------------------------------------------------------------------- */ ComputeSpin::ComputeSpin(LAMMPS *lmp, int narg, char **arg) : - Compute(lmp, narg, arg), pair(nullptr), spin_pairs(nullptr), + Compute(lmp, narg, arg), pair(nullptr), spin_pairs(nullptr), lockprecessionspin(nullptr) { if ((narg != 3) && (narg != 4)) error->all(FLERR,"Illegal compute compute/spin command");