![]() |
(git:b77b4be)
|
Methods related to (\cal S)^2 (i.e. spin) More...
Functions/Subroutines | |
subroutine, public | compute_s_square (mos, matrix_s, s_square, s_square_ideal, mo_derivs, strength) |
Compute the expectation value <(\cal S)^2> of the single determinant defined by the spin up (alpha) and spin down (beta) orbitals. | |
subroutine, public | s2_restraint (mos, matrix_s, mo_derivs, energy, s2_restraint_control, just_energy) |
restrains/constrains the value of s2 in a calculation | |
Methods related to (\cal S)^2 (i.e. spin)
subroutine, public s_square_methods::compute_s_square | ( | type(mo_set_type), dimension(:), intent(in) | mos, |
type(dbcsr_p_type), dimension(:), pointer | matrix_s, | ||
real(kind=dp), intent(out) | s_square, | ||
real(kind=dp), intent(out) | s_square_ideal, | ||
type(cp_fm_type), dimension(:), intent(inout), optional | mo_derivs, | ||
real(kind=dp), intent(in), optional | strength | ||
) |
Compute the expectation value <(\cal S)^2> of the single determinant defined by the spin up (alpha) and spin down (beta) orbitals.
mos | [in] MO set with all MO information including the alpha and beta MO coefficients |
matrix_s | [in] AO overlap matrix S (do not mix with the spin operator (\cal S)) |
s_square | [out] <(\cal S)^2> including potential spin contaminations |
s_square_ideal | [out] Ideal value for <(\cal S)^2> without any spin contaminations |
mo_derivs | [inout] If present, add the derivative of s_square wrt the MOs to mo_derivs |
strength | [in] Strength for constraining or restraining (\cal S)^2 |
Definition at line 65 of file s_square_methods.F.
subroutine, public s_square_methods::s2_restraint | ( | type(mo_set_type), dimension(:), intent(in) | mos, |
type(dbcsr_p_type), dimension(:), pointer | matrix_s, | ||
type(cp_fm_type), dimension(:), intent(inout) | mo_derivs, | ||
real(kind=dp) | energy, | ||
type(s2_restraint_type), pointer | s2_restraint_control, | ||
logical | just_energy | ||
) |
restrains/constrains the value of s2 in a calculation
mos | input |
matrix_s | input |
mo_derivs | inout if present, add the derivative of s_square wrt mos to mo_derivs |
energy | ... |
s2_restraint_control | ... |
just_energy | ... |
Definition at line 189 of file s_square_methods.F.