Classes | |
| class | AffineCoordinateChart |
| class | CoordinateChart |
| struct | CutoffPair |
| class | ElementPairContactFloor |
| class | InternalCoordinateChart |
| class | InternalCoordinateRetractionFailed |
| class | InternalCoordinateSet |
| class | PairBox |
| struct | PrimitiveInternal |
| struct | ReactiveAtomTypes |
| class | UndefinedInternalCoordinate |
Enumerations | |
| enum class | RetractionStatus { Retracted , AngleDomain , Failed } |
| enum class | PrimitiveKind { Bond , Angle , Dihedral , LinearBend } |
| enum class | BondGraphKind { Gabriel , RelativeNeighborhood } |
Functions | |
| std::vector< CutoffPair > | cutoffNeighbors (const double *positions, std::size_t count, const std::array< double, 9 > &cell, const std::array< bool, 3 > &periodic, double cutoff) |
| bool | angleIsCollinear (double sin2) |
| std::vector< PrimitiveInternal > | resolveCollinearAngles (const std::vector< PrimitiveInternal > &primitives, const Eigen::VectorXd &positions, const std::array< double, 9 > &cell) |
| std::vector< PrimitiveInternal > | primitiveTopologyFromBondGraph (int n_atoms, const std::vector< std::pair< int, int > > &bonds) |
| std::vector< PrimitiveInternal > | resolveCollinearAngles (const std::vector< PrimitiveInternal > &primitives, const std::vector< Eigen::VectorXd > &geometries, const std::array< double, 9 > &cell) |
| std::vector< std::pair< int, int > > | gabrielBondGraph (int n_atoms, const Eigen::VectorXd &positions, const std::vector< char > &moving_atoms, const std::array< double, 9 > &cell) |
| std::vector< std::pair< int, int > > | relativeNeighborhoodBondGraph (int n_atoms, const Eigen::VectorXd &positions, const std::vector< char > &moving_atoms, const std::array< double, 9 > &cell) |
| std::vector< std::pair< int, int > > | bondGraph (int n_atoms, const Eigen::VectorXd &positions, const std::vector< char > &moving_atoms, BondGraphKind kind, const std::array< double, 9 > &cell) |
| std::vector< std::pair< int, int > > | unionBondGraph (int n_atoms, const std::vector< Eigen::VectorXd > &geometries, const std::vector< char > &moving_atoms, BondGraphKind kind, const std::array< double, 9 > &cell) |
| std::vector< PrimitiveInternal > | primitiveTopologyFromGeometry (int n_atoms, const Eigen::VectorXd &positions, const std::vector< char > &moving_atoms, BondGraphKind kind, const std::array< double, 9 > &cell) |
| int | countBonds (const std::vector< PrimitiveInternal > &primitives) |
| int | countAngles (const std::vector< PrimitiveInternal > &primitives) |
| int | countDihedrals (const std::vector< PrimitiveInternal > &primitives) |
| Eigen::VectorXd | sellaInternalTrust (const InternalCoordinateSet &coordinates) |
| Eigen::VectorXd | scaleCartesianStepToInternalTrust (const InternalCoordinateSet &coordinates, const Eigen::VectorXd &positions, const Eigen::VectorXd &cartesian_step, const Eigen::VectorXd &internal_trust_per_primitive) |
| Eigen::VectorXd | retractRestrictedStep (const InternalCoordinateSet &coordinates, const Eigen::VectorXd &positions, const Eigen::VectorXd &cartesian_step, const Eigen::VectorXd &internal_trust_per_primitive) |
| Eigen::MatrixXd | constraintFreeBasis (const Eigen::MatrixXd &constraint_jacobian) |
| bool | cellIsZero (const double cell[9]) noexcept |
| Isolated molecule: every entry of the ASE-style 3x3 cell is zero. | |
| bool | cellIsZero (const std::array< double, 9 > &cell) noexcept |
| bool | cellIsVacuumBox (const double cell[9]) noexcept |
| bool | cellIsVacuumBox (const std::array< double, 9 > &cell) noexcept |
| bool | cellIsMicLattice (const double cell[9]) noexcept |
| Nonzero ASE 3x3 that is not the 25 A vacuum convention. | |
| bool | cellIsMicLattice (const std::array< double, 9 > &cell) noexcept |
| bool | copyMicLattice (double dest[9], const double src[9]) noexcept |
| Copy src onto dest only when src is a MIC lattice. | |
| std::array< double, 9 > | micLattice (const double cell[9]) noexcept |
| std::array< double, 9 > | micLattice (const std::array< double, 9 > &cell) noexcept |
| std::array< bool, 3 > | cellPeriodicAxes (const double cell[9]) noexcept |
| double | uniqueImageRadius (const double cell[9]) noexcept |
| double | uniqueImageRadius (const std::array< double, 9 > &cell) noexcept |
| void | zeroOpenAxes (double cell[9], const std::array< bool, 3 > &periodic) noexcept |
| Eigen::VectorXd | flatMinimumImageDisplacement (const PairBox *box, const Eigen::VectorXd &from, const Eigen::VectorXd &to) |
| double | minimumPairDistance (const Eigen::VectorXd &positions, const std::array< double, 9 > &cell, Eigen::Index moving_count=-1) |
| double | minimumContactDistance (const Eigen::VectorXd &positions, const std::array< double, 9 > &cell, double cutoff, Eigen::Index moving_count=-1) |
| template<class Distance> | |
| Eigen::VectorXd | limitPairDistanceStep (const Eigen::VectorXd &positions, const Eigen::VectorXd &proposed, double floor, Distance &&distance) |
| double | covalentRadius (int atomic_number) |
| std::vector< std::pair< int, int > > | covalentBondGraph (const Eigen::VectorXd &positions, const std::vector< int > &atomic_numbers, const std::array< double, 9 > &cell) |
| ReactiveAtomTypes | assignReactiveAtomTypes (const Eigen::VectorXd &reactant, const Eigen::VectorXd &product, const std::vector< int > &atomic_numbers, const std::vector< Index_t > &types, const std::unordered_map< std::string, Index_t > &atomtypes, const std::array< double, 9 > &cell) |
Variables | |
| constexpr std::array< double, 97 > | kCorderoRadiusPm |
|
strong |
| Enumerator | |
|---|---|
| Gabriel | |
| RelativeNeighborhood | |
Definition at line 98 of file InternalCoordinates.h.
|
strong |
Definition at line 51 of file InternalCoordinates.h.
|
strong |
Definition at line 36 of file InternalCoordinates.h.
|
nodiscard |
Treat a bending plane as unresolved when sin^2(theta) <= machine epsilon, consistent with the 1/sqrt(epsilon) conditioning limit for chart inverses.
Definition at line 483 of file InternalCoordinates.cpp.
|
nodiscard |
Split each element's atom type into a spectator and a reactive type.
The Sexpat kernel fits one length scale per pair of atom types, so with types by element alone the transferring hydrogen shares its C-H length scale with every spectator C-H bond, whose inverse distance barely moves along the path; the fit lands between the two and the misfit surfaces as learned noise far above the oracle's own spread. An atom is reactive when its covalent bond set differs between reactant and product; every such atom of element Z receives the type "Z<Z>*", so the reactive pairs are fitted on their own. Requires matching atom counts and elements.
Definition at line 52 of file ReactiveAtomTypes.cpp.
|
nodiscard |
All distances, the Gabriel diametric ball and the lune test use the minimum-image convention of ~cell~ (minimage); an all-zero cell is vacuum.
Definition at line 808 of file InternalCoordinates.cpp.
|
inlinenodiscardnoexcept |
Nonzero ASE 3x3 that is not the 25 A vacuum convention.
Definition at line 56 of file MinImage.h.
|
inlinenodiscardnoexcept |
Definition at line 61 of file MinImage.h.
|
inlinenodiscardnoexcept |
Baker / Hermes 25 A cubic vacuum box. Oracle and CON convention (omitted-cell fallback, Baker endpoints), not a periodic lattice. Off-diagonal entries may be cos(90 deg) leftovers from expanding CON lengths and angles.
Definition at line 39 of file MinImage.h.
|
inlinenodiscardnoexcept |
Definition at line 49 of file MinImage.h.
|
inlinenodiscardnoexcept |
Isolated molecule: every entry of the ASE-style 3x3 cell is zero.
Definition at line 22 of file MinImage.h.
|
inlinenodiscardnoexcept |
Definition at line 30 of file MinImage.h.
|
inlinenodiscardnoexcept |
Axes of an ASE row-major cell that are periodic: the rows that are not zero. A periodic lattice has no zero row, so a zero row marks an open axis: a slab periodic in x and y carries a zero third row.
Definition at line 93 of file MinImage.h.
|
nodiscard |
Definition at line 2046 of file InternalCoordinates.cpp.
|
inlinenoexcept |
Copy src onto dest only when src is a MIC lattice.
Definition at line 68 of file MinImage.h.
|
nodiscard |
Definition at line 849 of file InternalCoordinates.cpp.
|
nodiscard |
Definition at line 841 of file InternalCoordinates.cpp.
|
nodiscard |
Definition at line 857 of file InternalCoordinates.cpp.
|
nodiscard |
Chemical bond graph: pair (a, b) is bonded when its minimum-image distance is below 1.25 (R_a + R_b) with R the covalent radii, the conventional bond-perception tolerance. An all-zero cell is vacuum.
Definition at line 26 of file ReactiveAtomTypes.cpp.
|
nodiscard |
Covalent radius in Å (Cordero et al., Dalton Trans. 2008, 2832; the low-spin values for Mn, Fe and Co, sp3 carbon). Throws for an atomic number outside the table.
Definition at line 15 of file ReactiveAtomTypes.cpp.
| std::vector< CutoffPair > gpr::geometry::cutoffNeighbors | ( | const double * | positions, |
| std::size_t | count, | ||
| const std::array< double, 9 > & | cell, | ||
| const std::array< bool, 3 > & | periodic, | ||
| double | cutoff ) |
Half list of pairs inside a cutoff. Displacements belong to the caller's geometry convention; this function only supplies topology and image labels. Each call owns its allocation. A fully open cell calls linkcell pairs_open. Any periodic axis calls pairs_within_pbc. The command-line searches default to one neighbour thread per rank; RAYON_NUM_THREADS controls linkcell's pool.
Definition at line 16 of file CutoffNeighbors.cpp.
|
inlinenodiscard |
Per-atom displacement of a flat xyzxyz vector. A null box, or a box that is not periodic, returns to - from.
Definition at line 259 of file MinImage.h.
|
nodiscard |
Open diametric-ball graph (Gabriel and Sokal 1969). Scale-free: no radial cutoff. Frozen-frozen pairs are omitted when a moving-atom mask is supplied.
Definition at line 792 of file InternalCoordinates.cpp.
| Eigen::VectorXd gpr::geometry::limitPairDistanceStep | ( | const Eigen::VectorXd & | positions, |
| const Eigen::VectorXd & | proposed, | ||
| double | floor, | ||
| Distance && | distance ) |
Keep a proposed Cartesian geometry inside a fixed contact domain. A seed outside the domain may increase its minimum distance; it cannot compress further. Feasible proposals, including outward motion at the boundary, pass through. The lower bracket always holds a feasible point.
Definition at line 75 of file PairDistanceDomain.h.
|
inlinenodiscardnoexcept |
Definition at line 76 of file MinImage.h.
|
inlinenodiscardnoexcept |
Definition at line 84 of file MinImage.h.
|
inline |
Minimum distance capped at the contact radius. Vesin supplies candidates; MinImage owns their distances. Frozen atoms follow the moving coordinates, and frozen-frozen contacts do not constrain the moving domain.
Definition at line 44 of file PairDistanceDomain.h.
|
inline |
Shortest pair distance under the minimum image, the metric every contact floor, step cap and limiter in the band shares. One routine keeps a floor set from the endpoints and a floor enforced on a step in the same rounding. At least one atom of each pair lies before moving_count, when specified.
Definition at line 22 of file PairDistanceDomain.h.
|
nodiscard |
Definition at line 577 of file InternalCoordinates.cpp.
|
nodiscard |
Definition at line 830 of file InternalCoordinates.cpp.
|
nodiscard |
Relative neighborhood graph (Toussaint 1980). Strict Gabriel subgraph: edge (a,b) exists iff no k has both distances to a and b smaller than the distance between a and b. Same moving-atom rule, no cutoff.
Definition at line 800 of file InternalCoordinates.cpp.
|
nodiscard |
Replace every valence angle that is collinear at ~positions~ by the pair of linear bends with orthogonal references, and drop every dihedral whose inner triple is collinear (its plane is undefined). Angles that are not collinear are returned unchanged.
Definition at line 521 of file InternalCoordinates.cpp.
|
nodiscard |
Same over several geometries (a path): an angle collinear at ANY of them becomes the bend pair (references from the first geometry where it is collinear), a dihedral with an inner triple collinear at any is dropped. A chart built from a path topology is evaluated at every geometry of the path, so collinearity anywhere on it breaks the valence angle there.
Definition at line 717 of file InternalCoordinates.cpp.
|
nodiscard |
MaxInternalStep, then Gauss-Newton retraction onto the linearized internal-coordinate target. A valence target outside the angle chart returns the scaled Cartesian trial. Any other failure throws ~InternalCoordinateRetractionFailed~.
Definition at line 1834 of file InternalCoordinates.cpp.
|
nodiscard |
Scale a Cartesian step so no linearized primitive change exceeds its trust radius (Sella MaxInternalStep). An empty trust vector uses ~sellaInternalTrust~.
Definition at line 1806 of file InternalCoordinates.cpp.
|
nodiscard |
Sella restricted_step.MaxInternalStep radii: 0.2 Å for bonds and linear bends, 0.2 rad for valence angles, 0.3 rad for dihedrals.
Definition at line 1787 of file InternalCoordinates.cpp.
|
nodiscard |
Union of per-geometry bond graphs. A forming or breaking pair that is an edge at any listed geometry stays in the set.
Definition at line 816 of file InternalCoordinates.cpp.
|
inlinenodiscardnoexcept |
Radius inside which every pair displacement has one nearest image.
h_i is the length of lattice row i orthogonal to the span of the other periodic rows: the cell volume divided by the area of the other two rows for a bulk cell, the in-plane row spacing for a slab, or the row length for a wire. A sphere of radius min_i h_i / 2 fits inside the cell parallelepiped and so inside the Wigner-Seitz cell, whose boundary is where the nearest image changes and a pair displacement turns discontinuously. Zero for a cell that is not a MIC lattice.
Definition at line 112 of file MinImage.h.
|
inlinenodiscardnoexcept |
Definition at line 128 of file MinImage.h.
|
inlinenoexcept |
Copy of cell with the rows of the open axes of periodic set to zero, the form every distance consumer reads a periodicity mask from.
Definition at line 136 of file MinImage.h.
|
inlineconstexpr |
Cordero 2008 covalent radii (single-bond), indexed by atomic number Z = 1..96. Units: picometres. Z = 0 sentinel reserved for the "unknown / dummy" entry the lookup uses when Z is out of range.
Definition at line 14 of file CorderoRadii.h.