.. index:: pair: class; rgpot::IPIPot .. _doxid-classrgpot_1_1_i_p_i_pot: class rgpot::IPIPot =================== .. toctree:: :hidden: Overview ~~~~~~~~ Server-side i-PI socket potential. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class IPIPot: public rgpot::Potential< IPIPot > { public: // construction :target:`IPIPot`(const :ref:`IPIConfig`& config); :target:`IPIPot`(const IPIPot&); :target:`~IPIPot`(); // methods IPIPot& :target:`operator=`(const IPIPot&); void :target:`forceImpl`(const :ref:`ForceInput`& in, :ref:`ForceOut`* out) const; virtual :ref:`PotCaps` :ref:`caps`() const; virtual uint64_t :ref:`paramsKey`() const; const :ref:`IPIConfig`& :target:`config`() const; const std::string& :ref:`endpoint`() const; bool :ref:`hasStress`() const; bool :ref:`copyStress`(double out[9]) const; }; .. _details-classrgpot_1_1_i_p_i_pot: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Server-side i-PI socket potential. Methods ------- .. index:: pair: function; caps .. _doxid-classrgpot_1_1_i_p_i_pot_1a9c57a616e415ce7f538d5a4d6d8565dc: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`PotCaps` caps() const One connection and one driver. Stress is the Cauchy tensor. .. index:: pair: function; paramsKey .. _doxid-classrgpot_1_1_i_p_i_pot_1a61e8e34de3fe64aae205edfac35d4670: .. 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; endpoint .. _doxid-classrgpot_1_1_i_p_i_pot_1aa22421a44258f2704a3ac5543980767c: .. ref-code-block:: cpp :class: doxyrest-title-code-block const std::string& endpoint() const Bound address. A requested TCP port of 0 is the kernel's choice. .. index:: pair: function; hasStress .. _doxid-classrgpot_1_1_i_p_i_pot_1aa9f88df793d966a751ca04c6f9208bdc: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool hasStress() const True after a force call that published Cauchy stress. .. index:: pair: function; copyStress .. _doxid-classrgpot_1_1_i_p_i_pot_1a28e56624e04f72d9e47295fe9a7b716c: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool copyStress(double out[9]) const Copies the last Cauchy stress, row-major. Returns false when none.