(git:6a2e663)
qs_density_matrices Module Reference

collects routines that calculate density matrices More...

Functions/Subroutines

subroutine, public calculate_w_matrix_ot (mo_set, mo_deriv, w_matrix, s_matrix)
 Calculate the W matrix from the MO coefs, MO derivs could overwrite the mo_derivs for increased memory efficiency. More...
 
subroutine, public calculate_wz_matrix (mo_set, psi1, ks_matrix, w_matrix)
 Calculate the response W matrix from the MO eigenvectors, MO eigenvalues, and the MO occupation numbers. Only works if they are eigenstates. More...
 
subroutine, public calculate_whz_matrix (c0vec, hzm, w_matrix, focc, nocc)
 Calculate the Wz matrix from the MO eigenvectors, MO eigenvalues, and the MO occupation numbers. Only works if they are eigenstates. More...
 
subroutine, public calculate_wx_matrix (mos_occ, xvec, ks_matrix, w_matrix)
 Calculate the excited state W matrix from the MO eigenvectors, KS matrix. More...
 
subroutine, public calculate_xwx_matrix (mos_occ, xvec, s_matrix, ks_matrix, w_matrix, eval)
 Calculate the excited state W matrix from the MO eigenvectors, KS matrix. More...
 

Detailed Description

collects routines that calculate density matrices

Note
first version : most routines imported
Author
JGH (2020-01)

Function/Subroutine Documentation

◆ calculate_w_matrix_ot()

subroutine, public qs_density_matrices::calculate_w_matrix_ot ( type(mo_set_type), intent(in)  mo_set,
type(dbcsr_type), pointer  mo_deriv,
type(dbcsr_type), pointer  w_matrix,
type(dbcsr_type), pointer  s_matrix 
)

Calculate the W matrix from the MO coefs, MO derivs could overwrite the mo_derivs for increased memory efficiency.

Parameters
mo_settype containing the full matrix of the MO coefs mo_deriv:
mo_deriv...
w_matrixsparse matrix
s_matrixsparse matrix for the overlap error
History
Creation (JV)
Author
MK

Definition at line 209 of file qs_density_matrices.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculate_wz_matrix()

subroutine, public qs_density_matrices::calculate_wz_matrix ( type(mo_set_type), intent(in)  mo_set,
type(cp_fm_type), intent(in)  psi1,
type(dbcsr_type), pointer  ks_matrix,
type(dbcsr_type), pointer  w_matrix 
)

Calculate the response W matrix from the MO eigenvectors, MO eigenvalues, and the MO occupation numbers. Only works if they are eigenstates.

Parameters
mo_settype containing the full matrix of the MO and the eigenvalues
psi1response orbitals
ks_matrixKohn-Sham sparse matrix
w_matrixsparse matrix
History
adapted from calculate_w_matrix_1
Author
JGH

Definition at line 363 of file qs_density_matrices.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculate_whz_matrix()

subroutine, public qs_density_matrices::calculate_whz_matrix ( type(cp_fm_type), intent(in)  c0vec,
type(dbcsr_type), pointer  hzm,
type(dbcsr_type), pointer  w_matrix,
real(kind=dp), intent(in)  focc,
integer, intent(in)  nocc 
)

Calculate the Wz matrix from the MO eigenvectors, MO eigenvalues, and the MO occupation numbers. Only works if they are eigenstates.

Parameters
c0vec...
hzm...
w_matrixsparse matrix
focc...
nocc...
History
adapted from calculate_w_matrix_1
Author
JGH

Definition at line 424 of file qs_density_matrices.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculate_wx_matrix()

subroutine, public qs_density_matrices::calculate_wx_matrix ( type(cp_fm_type), intent(in)  mos_occ,
type(cp_fm_type), intent(in)  xvec,
type(dbcsr_type), pointer  ks_matrix,
type(dbcsr_type), pointer  w_matrix 
)

Calculate the excited state W matrix from the MO eigenvectors, KS matrix.

Parameters
mos_occ...
xvec...
ks_matrix...
w_matrix...
History
adapted from calculate_wz_matrix
Author
JGH

Definition at line 474 of file qs_density_matrices.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculate_xwx_matrix()

subroutine, public qs_density_matrices::calculate_xwx_matrix ( type(cp_fm_type), intent(in)  mos_occ,
type(cp_fm_type), intent(in)  xvec,
type(dbcsr_type), pointer  s_matrix,
type(dbcsr_type), pointer  ks_matrix,
type(dbcsr_type), pointer  w_matrix,
real(kind=dp), intent(in)  eval 
)

Calculate the excited state W matrix from the MO eigenvectors, KS matrix.

Parameters
mos_occ...
xvec...
s_matrix...
ks_matrix...
w_matrix...
eval...
History
adapted from calculate_wz_matrix
Author
JGH

Definition at line 517 of file qs_density_matrices.F.

Here is the call graph for this function:
Here is the caller graph for this function: