.. index:: pair: class; rgpot::EAMTablePot .. _doxid-classrgpot_1_1_e_a_m_table_pot: class rgpot::EAMTablePot ======================== .. toctree:: :hidden: Overview ~~~~~~~~ Tabulated :ref:`EAM ` or Finnis-Sinclair energy and forces. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class EAMTablePot: public rgpot::Potential< EAMTablePot > { public: // construction :target:`EAMTablePot`(const :ref:`EAMTableConfig`& c); :target:`EAMTablePot`(const :ref:`EAMTable`& table, bool periodic, bool stress, double skin = 1.0); // methods 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); bool :ref:`listReused`() const; std::uint64_t :ref:`listBuilds`() const; }; .. _details-classrgpot_1_1_e_a_m_table_pot: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Tabulated :ref:`EAM ` or Finnis-Sinclair energy and forces. Methods ------- .. index:: pair: function; caps .. _doxid-classrgpot_1_1_e_a_m_table_pot_1a2122ac46ebec870874a97954ecc78c7c: .. 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_e_a_m_table_pot_1a0f9f20dd31dab48146a8fe42b5b5719e: .. 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_e_a_m_table_pot_1a159c44b35d9bf6d432c69fd7909ed956: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Locality` locality() const The density, the embedding argument and phi all stop at the table cutoff. The staged evaluation exchanges rho. .. index:: pair: function; forcePerAtom .. _doxid-classrgpot_1_1_e_a_m_table_pot_1a9c62a0a5e6fe076a16aee90744f679ab: .. 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 F_a(rho_i), and each phi_ab and pair virial split half to each atom, as pair_style eam tallies eatom and vatom. .. index:: pair: function; densityStage .. _doxid-classrgpot_1_1_e_a_m_table_pot_1a5cd71bcf5d05c37939f2b7f8fe2196ec: .. ref-code-block:: cpp :class: doxyrest-title-code-block void densityStage(const :ref:`HalfList`& list, double* densities) const :ref:`Staged.hpp ` : adds rho_ab(r) to the density of each atom of a pair. .. index:: pair: function; forceStage .. _doxid-classrgpot_1_1_e_a_m_table_pot_1a8b637c324addbf4ea04434ccb6942049: .. 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 ` : F_a(rho_i) of each owned atom and the pair forces with F'(rho) of both atoms, tallied as forcePerAtom tallies them. .. index:: pair: function; setNeighbourMode .. _doxid-classrgpot_1_1_e_a_m_table_pot_1a8ce47046230061976213fdbf6f4dd285: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setNeighbourMode(nlist::Mode mode) Stream walks the cells on every call and keeps no list. .. index:: pair: function; listReused .. _doxid-classrgpot_1_1_e_a_m_table_pot_1a1e0b65080627ade9e29da4c953be2fa1: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool listReused() const True when the last forceImpl or forcePerAtom kept the pair list. .. index:: pair: function; listBuilds .. _doxid-classrgpot_1_1_e_a_m_table_pot_1aafaf6131c47fe6019c8aa77f6a60aeb6: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::uint64_t listBuilds() const Pair lists built by forceImpl and forcePerAtom so far.