(git:34ef472)
qs_linres_current.F File Reference

Go to the source code of this file.

Modules

module  qs_linres_current
 given the response wavefunctions obtained by the application of the (rxp), p, and ((dk-dl)xp) operators, here the current density vector (jx, jy, jz) is computed for the 3 directions of the magnetic field (Bx, By, Bz)
 

Functions/Subroutines

subroutine, public qs_linres_current::current_build_current (current_env, qs_env, iB)
 First calculate the density matrixes, for each component of the current they are 3 because of the r dependent terms Next it collocates on the grid to have J(r) In the GAPW case one need to collocate on the PW grid only the soft part while the rest goes on Lebedev grids The contributions to the shift and to the susceptibility will be calculated separately and added only at the end The calculation of the shift tensor is performed on the position of the atoms and on other selected points in real space summing up the contributions from the PW grid current density and the local densities Spline interpolation is used. More...
 
subroutine, public qs_linres_current::calculate_jrho_resp (mat_d0, mat_jp, mat_jp_rii, mat_jp_riii, iB, idir, current_rs, current_gs, qs_env, current_env, soft_valid, retain_rsgrid)
 Calculation of the idir component of the response current density in the presence of a constant magnetic field in direction iB the current density is collocated on the pw grid in real space. More...
 
subroutine, public qs_linres_current::current_build_chi (current_env, qs_env, iB)
 ... More...