.. index:: pair: class; rgpot::SuttonChenPot .. _doxid-classrgpot_1_1_sutton_chen_pot: class rgpot::SuttonChenPot ========================== .. toctree:: :hidden: Overview ~~~~~~~~ Sutton-Chen energy and analytic forces. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class SuttonChenPot: public rgpot::Potential< SuttonChenPot > { public: // construction :target:`SuttonChenPot`(); :target:`SuttonChenPot`(const :ref:`SuttonChenConfig`& c); // methods const :ref:`SuttonChenConfig`& :target:`config`() const; virtual :ref:`PotCaps` :ref:`caps`() const; virtual uint64_t :ref:`paramsKey`() const; :ref:`Locality` :ref:`locality`() const; void :target:`forceImpl`(const :ref:`ForceInput`& in, :ref:`ForceOut`* out) const; void :ref:`forcePerAtom`(const :ref:`ForceInput`& in, :ref:`ForceOut`* out, const :ref:`PerAtomOut`& atoms) const; void :ref:`densityStage`(const :ref:`HalfList`& list, double* densities) const; void :ref:`forceStage`(const :ref:`HalfList`& list, const double* densities, double* forces, :ref:`StageTally`* tally) const; void :ref:`setNeighbourMode`(nlist::Mode mode); void :ref:`setPairTermLimit`(std::size_t pairs); }; .. _details-classrgpot_1_1_sutton_chen_pot: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Sutton-Chen energy and analytic forces. Methods ------- .. index:: pair: function; caps .. _doxid-classrgpot_1_1_sutton_chen_pot_1a56287af325d76d7298706b1f2bbf1dae: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`PotCaps` caps() const Concurrency and evaluation capabilities of this potential. Multi-threaded callers (NEB images, dimer endpoints) derive their sharing and cloning policy from this instead of hard-coded lists. .. index:: pair: function; paramsKey .. _doxid-classrgpot_1_1_sutton_chen_pot_1a15c3e151689d2de7d6fefc87c5baf4c5: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual uint64_t paramsKey() const Fingerprint of the potential's parameter set. Mixed into the result-cache key so results never cross parameter sets. Implementations hash their config field by field (see :ref:`ParamHash.hpp `) plus a kernel-version salt that changes whenever the numerics change. The default (0) suits parameter-free potentials whose numerics never changed. .. index:: pair: function; locality .. _doxid-classrgpot_1_1_sutton_chen_pot_1a2b528590b5122208d569c92fee485f74: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Locality` locality() const The density and the pair term both stop at the cutoff. A cutoff <= 0 keeps every pair, so there is no finite range. The staged evaluation exchanges rho. .. index:: pair: function; forcePerAtom .. _doxid-classrgpot_1_1_sutton_chen_pot_1a11800e8657c668c4d1835e54638a95e1: .. ref-code-block:: cpp :class: doxyrest-title-code-block void forcePerAtom(const :ref:`ForceInput`& in, :ref:`ForceOut`* out, const :ref:`PerAtomOut`& atoms) const forceImpl plus per-atom terms: each atom's embedding -epsilon c sqrt(rho_i), and each pair energy and virial split half to each atom. .. index:: pair: function; densityStage .. _doxid-classrgpot_1_1_sutton_chen_pot_1acc6093bdcb2177693a5a64e1dc709301: .. ref-code-block:: cpp :class: doxyrest-title-code-block void densityStage(const :ref:`HalfList`& list, double* densities) const :ref:`Staged.hpp ` : adds (a / r)^m to the density of each atom of a pair. .. index:: pair: function; forceStage .. _doxid-classrgpot_1_1_sutton_chen_pot_1a6bdc469b8315067d3b479353527d8bac: .. ref-code-block:: cpp :class: doxyrest-title-code-block void forceStage(const :ref:`HalfList`& list, const double* densities, double* forces, :ref:`StageTally`* tally) const :ref:`Staged.hpp ` : -epsilon c sqrt(rho_i) of each owned atom and the pair forces with the embedding weights of both atoms, tallied as forcePerAtom tallies them. .. index:: pair: function; setNeighbourMode .. _doxid-classrgpot_1_1_sutton_chen_pot_1a824dbf86319385df3d1a0e3221a7ef66: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setNeighbourMode(nlist::Mode mode) Stored Verlet list or a streaming cell walk. .. index:: pair: function; setPairTermLimit .. _doxid-classrgpot_1_1_sutton_chen_pot_1a40fac4a3cc3d2a5e7991296b539371d4: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setPairTermLimit(std::size_t pairs) Pairs, over all threads, whose density-pass powers the force pass reads back. It computes the rest again, with the same bits. The default keeps 32 MiB of terms.