.. index:: pair: namespace; rgpot_lenosky .. _doxid-namespacergpot__lenosky: namespace rgpot_lenosky ======================= .. toctree:: :hidden: Overview ~~~~~~~~ Lenosky tight-binding-fit silicon in gather form. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block namespace rgpot_lenosky { // global variables real(wp), dimension(0:9), parameter :ref:`cof_phi` = [ 6.92994_wp, -0.43995_wp, -1.70123_wp, -1.62473_wp, -0.99696_wp, -0.27391_wp, -0.02499_wp, -0.01784_wp, -0.00961_wp, 0.0_wp]; // global functions pure subroutine :ref:`splint`(type(:ref:`spline_t`), intent(in) sp, real(wp), dimension(0:), intent(in) ya, real(wp), dimension(0:), intent(in) y2a, real(wp), intent(in) x, real(wp), intent(out) y, real(wp), intent(out) yp); subroutine, public :ref:`lenosky_energy_forces`(real(wp), dimension(:, :), intent(in), contiguous positions, real(wp), dimension(3, 3), intent(in) cell, type(:ref:`lenosky_params_t`), intent(in) par, type(:ref:`neighbor_table_t`), intent(inout) table, real(wp), intent(out) energy, real(wp), dimension(:, :), intent(out), contiguous forces, integer, intent(out) status, character(len=:), intent(out), allocatable errmsg); } // namespace rgpot_lenosky .. _details-namespacergpot__lenosky: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Lenosky tight-binding-fit silicon in gather form. Atom ``i`` carries a pair sum and an embedding term evaluated at a local density built from two- and three-body pieces: dens_i = sum_j rho(r_ij) + sum\_{j`), intent(in) sp, real(wp), dimension(0:), intent(in) ya, real(wp), dimension(0:), intent(in) y2a, real(wp), intent(in) x, real(wp), intent(out) y, real(wp), intent(out) yp) Cubic spline value and derivative, linear outside the knot range. .. index:: pair: function; lenosky_energy_forces .. _doxid-namespacergpot__lenosky_1ae41fa93d7b4d7787734f3b33b807ac84: .. ref-code-block:: cpp :class: doxyrest-title-code-block subroutine, public lenosky_energy_forces(real(wp), dimension(:, :), intent(in), contiguous positions, real(wp), dimension(3, 3), intent(in) cell, type(:ref:`lenosky_params_t`), intent(in) par, type(:ref:`neighbor_table_t`), intent(inout) table, real(wp), intent(out) energy, real(wp), dimension(:, :), intent(out), contiguous forces, integer, intent(out) status, character(len=:), intent(out), allocatable errmsg) Energy and forces for ``positions`` (3 x natoms) in ``cell``.