.. index:: pair: namespace; gpr::potentials .. _doxid-namespacegpr_1_1potentials: namespace gpr::potentials ========================= .. toctree:: :hidden: struct_gpr_potentials_NwchemNumericalSettings.rst class_gpr_potentials_CbeMethaneOracle.rst class_gpr_potentials_NwchemGradientOracle.rst Overview ~~~~~~~~ Analytical test potentials and potentials built from a fitted GP. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block namespace potentials { // structs struct :ref:`NwchemNumericalSettings`; // classes class :ref:`CbeMethaneOracle`; class :ref:`NwchemGradientOracle`; // global variables double :target:`MULLER_BROWN_MINIMA`[3][2] = { {-0.558224, 1.441726}, {0.623499, 0.028038}, {-0.050011, 0.466694}, }; double :target:`MULLER_BROWN_SADDLES`[2][2] = { {-0.822002, 0.624313}, {0.212487, 0.292988}, }; double :target:`LEPS_REACTANT`[2] = {0.742, 4.0}; double :target:`LEPS_PRODUCT`[2] = {4.0, 0.742}; double :target:`LEPS_SADDLE`[2] = {0.929, 0.929}; // global functions std::pair> :ref:`lj_energy_gradient`(const std::vector& x, double epsilon = 1.0, double sigma = 1.0); std::pair> :ref:`muller_brown_energy_gradient`(const std::vector& xy); std::pair> :ref:`leps_energy_gradient`(const std::vector& r); } // namespace potentials .. _details-namespacegpr_1_1potentials: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Analytical test potentials and potentials built from a fitted GP. Global Functions ---------------- .. index:: pair: function; lj_energy_gradient .. _doxid-namespacegpr_1_1potentials_1a012ce09d0d019e9614aad8291b6ac0dd: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::pair> lj_energy_gradient(const std::vector& x, double epsilon = 1.0, double sigma = 1.0) Lennard-Jones energy and gradient for N atoms in 3D. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - x - Flat coordinate vector [x1,y1,z1,x2,y2,z2,...], size 3\*N * - epsilon - LJ well depth * - sigma - LJ zero-crossing distance .. rubric:: Returns: (energy, gradient) pair .. index:: pair: function; muller_brown_energy_gradient .. _doxid-namespacegpr_1_1potentials_1add36ed485ddb0ca91a8c24ba4e04a35a: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::pair> muller_brown_energy_gradient(const std::vector& xy) Muller-Brown 2D potential. Three minima and two saddle points on a 2D surface. Classic benchmark for NEB and dimer methods. Evaluated by rgpot's built-in model with the published parameters (K. Muller and L. D. Brown, Theoret. Chim. Acta 53, 75 (1979)). .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - xy - 2-element vector [x, y] .. rubric:: Returns: (energy, gradient) pair; a failed evaluation is a NaN energy .. index:: pair: function; leps_energy_gradient .. _doxid-namespacegpr_1_1potentials_1ab8de00d9533966c256abd1d200d07af4: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::pair> leps_energy_gradient(const std::vector& r) LEPS (London-Eyring-Polanyi-Sato) potential for collinear A+BC. 2D potential in (r_AB, r_BC) coordinates for the collinear reaction A + BC -> AB + C. Classic benchmark for NEB and dimer methods. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - r - 2-element vector [r_AB, r_BC] .. rubric:: Returns: (energy, gradient) pair