namespace dimer¶
Overview¶
namespace dimer {
// typedefs
typedef uint32_t Index_t;
// classes
class Dimer;
class SphereRotation;
// global functions
Eigen::MatrixXd rigid_motion_basis(const gpr::Coord& R, bool rotations = true);
double project_out_rot_trans_with_feedback(const gpr::Coord& R, Eigen::VectorXd& step);
} // namespace dimer
Detailed Documentation¶
Global Functions¶
Eigen::MatrixXd rigid_motion_basis(const gpr::Coord& R, bool rotations = true)
Build an orthonormal basis for rigid-body translations and rotations.
This function constructs a basis for the 3 translational and 3 rotational degrees of freedom. It then orthonormalizes that basis with classical Gram-Schmidt, dropping any vector whose residual norm is at most 1e-9 (linear molecules lose one rotation). Periodic systems use translations only.
Parameters:
R |
The current atomic coordinates, used to define the rotational basis. |
rotations |
Include rotational directions for non-periodic systems. |
Returns:
Orthonormal rigid-motion directions as columns. Orthonormal Cartesian symmetry directions as contiguous columns. Periodic systems request translations only; linear molecules lose one rotation.
double project_out_rot_trans_with_feedback(const gpr::Coord& R, Eigen::VectorXd& step)
Project rigid-body motion out of a Cartesian optimization step.
Parameters:
R |
Current atomic coordinates defining the rigid-motion basis. |
step |
The 3N-dimensional optimization step, modified in place. |
Returns:
L2 norm of the rigid-motion component removed from the step.