.. index:: pair: class; gpr::geometry::ElementPairContactFloor .. _doxid-classgpr_1_1geometry_1_1_element_pair_contact_floor: class gpr::geometry::ElementPairContactFloor ============================================ .. toctree:: :hidden: Overview ~~~~~~~~ Contact floor of a molecular domain, one distance per atom pair. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class ElementPairContactFloor { public: // construction :target:`ElementPairContactFloor`(); :target:`ElementPairContactFloor`(double scalar_floor, std::vector atomic_numbers); // methods bool :target:`active`() const; double :ref:`scalar`() const; double :ref:`cutoff`() const; std::size_t :target:`atomCount`() const; double :ref:`floor`(std::size_t i, std::size_t j) const; double :ref:`elementFloor`(int Zi, int Zj) const; void :ref:`calibrateToGeometries`(const std::vector& references, const std::array& cell, Eigen::Index moving_count = -1); double :ref:`minimumRatio`(const Eigen::VectorXd& positions, const std::array& cell, Eigen::Index moving_count = -1) const; bool :ref:`violated`(const Eigen::VectorXd& positions, const std::array& cell, Eigen::Index moving_count = -1) const; Eigen::VectorXd :ref:`limitStep`(const Eigen::VectorXd& positions, const Eigen::VectorXd& proposed, const std::array& cell, Eigen::Index moving_count = -1) const; }; .. _details-classgpr_1_1geometry_1_1_element_pair_contact_floor: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Contact floor of a molecular domain, one distance per atom pair. The scalar floor is the legacy endpoint bound (r_limit times the shortest pair in the endpoints or the seed). It is one number for every pair, so a reaction that forms H2 (0.74 A) leaves every heavy-atom pair free down to 0.3 A: on H2CO, HCN+H2 and the formamide cation the band relaxed C-O and C-N to 0.54-0.67 A, the oracle answered with 100-130 eV/A, and the amplitude fit never recovered. With atomic numbers the floor of a pair is at least the radius at which the ZBL prior mean's repulsion switches on (0.75 of the Cordero covalent sum): the shortest distance real bonding reaches, and the edge of the domain in which the residual process is the whole model. The covalent radii describe chemical bonding, not every potential: a Lennard-Jones solid labelled Ar with sigma = 1 A holds its atoms 1.12 A apart, inside the 1.59 A Ar-Ar onset. calibrateToGeometries checks the floor against geometries the potential itself treats as ordinary (the relaxed endpoints). A pair type whose shortest contact there sits below its onset takes that contact in place of the covalent sum, keeping the same onset fraction of it; pair types the endpoints respect keep their covalent floor. Methods ------- .. index:: pair: function; scalar .. _doxid-classgpr_1_1geometry_1_1_element_pair_contact_floor_1a36e0be9401fea8be1d4775ddaa6fd7a4: .. ref-code-block:: cpp :class: doxyrest-title-code-block double scalar() const The legacy scalar bound (0 when disabled). .. index:: pair: function; cutoff .. _doxid-classgpr_1_1geometry_1_1_element_pair_contact_floor_1afcfd1233e88c7e4011e840a52abde6fa: .. ref-code-block:: cpp :class: doxyrest-title-code-block double cutoff() const The largest pair floor: no pair beyond it can violate the domain. .. index:: pair: function; floor .. _doxid-classgpr_1_1geometry_1_1_element_pair_contact_floor_1a496d993b59e4f150cd9b6e16a7bd6686: .. ref-code-block:: cpp :class: doxyrest-title-code-block double floor(std::size_t i, std::size_t j) const Floor of the pair (i, j); the scalar bound when a Z is unknown. .. index:: pair: function; elementFloor .. _doxid-classgpr_1_1geometry_1_1_element_pair_contact_floor_1a10356c2f45177b362a3f42c8d6a29dc7: .. ref-code-block:: cpp :class: doxyrest-title-code-block double elementFloor(int Zi, int Zj) const Element floor of the pair type (Zi, Zj) without the scalar bound: the ZBL repulsion onset, or the calibrated value for a pair type the reference geometries showed closer than its onset. .. index:: pair: function; calibrateToGeometries .. _doxid-classgpr_1_1geometry_1_1_element_pair_contact_floor_1acac34a6784226adcf264b65c73ed39d3: .. ref-code-block:: cpp :class: doxyrest-title-code-block void calibrateToGeometries(const std::vector& references, const std::array& cell, Eigen::Index moving_count = -1) Recalibrate the element floors against reference geometries (each laid out like the positions minimumRatio takes) that the potential treats as ordinary. For each pair type with a moving pair below its onset, the shortest such contact replaces the covalent sum, so the floor becomes the same onset fraction of that contact. Floors the references respect are left alone, as is the scalar bound. .. index:: pair: function; minimumRatio .. _doxid-classgpr_1_1geometry_1_1_element_pair_contact_floor_1ac2cdba84081e535103917b7ae7e71097: .. ref-code-block:: cpp :class: doxyrest-title-code-block double minimumRatio(const Eigen::VectorXd& positions, const std::array& cell, Eigen::Index moving_count = -1) const Smallest ratio of a pair distance to its floor over the moving pairs, capped at one. Below one the geometry is outside the domain; the ratio is the metric limitPairDistanceStep bisects against a floor of one. Frozen-frozen pairs (indices at or beyond moving_count) do not constrain the moving coordinates. .. index:: pair: function; violated .. _doxid-classgpr_1_1geometry_1_1_element_pair_contact_floor_1ad2045ba7a34c0e831dcb1047ca822931: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool violated(const Eigen::VectorXd& positions, const std::array& cell, Eigen::Index moving_count = -1) const True when some moving pair sits below its floor. .. index:: pair: function; limitStep .. _doxid-classgpr_1_1geometry_1_1_element_pair_contact_floor_1adcc93bc5429ac18606b8d54eb98ac553: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::VectorXd limitStep(const Eigen::VectorXd& positions, const Eigen::VectorXd& proposed, const std::array& cell, Eigen::Index moving_count = -1) const Keep the full Cartesian step inside the contact domain. Checking only the endpoint permits a long step to pass through a contact and emerge on the other side with a feasible pair distance.