ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
ModuleDFPT::DFPT_Q0 Class Reference

q -> 0 response: dielectric tensor, Born charges, LO-TO (C6). More...

#include <dfpt_q0.h>

Collaboration diagram for ModuleDFPT::DFPT_Q0:

Classes

struct  StarMember

Public Member Functions

 DFPT_Q0 ()=default
 ~DFPT_Q0 ()=default
void init (UnitCell &ucell, ModulePW::PW_Basis *pw_rho, ModulePW::PW_Basis_K *pw_wfc, DFPT_Pert *pert)
void compute_eps (const ModuleBase::matrix &wg, DFPT_PW_Data &data)
void compute_born (const psi::Psi< std::complex< double > > &psi, const ModuleBase::matrix &wg, const ModuleBase::matrix &eig, DFPT_PW_Data &data)
void compute_q0_response (DFPT_PW_Data &data)
void pos_matrix (const psi::Psi< std::complex< double > > &psi, const ModuleBase::matrix &eig, std::vector< std::vector< std::vector< ModuleBase::Vector3< std::complex< double > > > > > &r_mat)
void build_stars (int nk)

Static Public Member Functions

static void rotate_tensor (const ModuleBase::Matrix3 &r, const ModuleBase::matrix &chi, double(&chi_rot)[9])

Public Attributes

std::vector< std::vector< StarMember > > stars_
 [ik] -> star members

Private Attributes

UnitCell * ucell_ = nullptr
ModulePW::PW_Basis * pw_rho_ = nullptr
ModulePW::PW_Basis_K * pw_wfc_ = nullptr
DFPT_Pert * pert_ = nullptr

Detailed Description

q -> 0 response: dielectric tensor, Born charges, LO-TO (C6).

The position operator is ill-defined for periodic states, so the periodic-gauge matrix elements are obtained through the velocity (commutator) form (Gonze & Lee, PRB 55, 10355 (1997)), m != n: <u_m|r_dir|u_n> = -i <u_m|dH/dk_dir|u_n> / (tpiba (eps_m - eps_n)), dH/dk_dir = 2 tpiba^2 (k+G)_dir (diagonal kinetic part)

  • dV_nl/dk_dir (build_vkb_dk; V_loc is k-independent), with the k derivative in dimensionless 2*pi/lat0 units (matching build_vkb_dk) so r comes out in bohr; [r, V_U] of DFT+U is a documented U0 reservation (the onsite projector is nonlocal, so the commutator does not vanish with U on).

Dielectric tensor (insulating, ABACUS Ry a.u. with wg carrying the spin degeneracy; the extra 1/(eps_c - eps_v) is the length-gauge denominator, consistent with the oscillator-strength sum rule): eps_ab = delta_ab + (8 pi / Omega) sum_{k,v occ,c emp} wg

  • Re[<u_v|r_a|u_c><u_c|r_b|u_v>] / (eps_c - eps_v) Born charges from dP/dtau, the screened displacement leg paired with the SOLVED conduction-projected position response (QE zstar_eu/add_zstar_ue anchoring; Gonze-Lee screened form). The position leg Y^a_{k,v} = P_c x_a|psi_{k,v}>, (H(k)-eps_v) Y = P_c [H,x_a]|psi_v>, with the commutator rhs [H,x_a]|psi> = -(i/tpiba) dH/dk_a|psi> (the same velocity operator as above), is solved exactly by Sternheimer solves in DFPT_PW (solve_pos_resp, stashed per direction in the shared data) and therefore carries the complete conduction-space response; the eigenvector-truncated r-matrix contraction of the du form is only its nbands-cut approximation. With dpsi^kappa(scf) the converged q = 0 Sternheimer displacement responses: Z*_k,ab = Z_k delta_ab - 2 sum_{k,v occ} wg
    • Re <dpsi^{k,b}_scf,v | Y^a_v> (wg carries the spin degeneracy, so the prefactor is the -2*wk of add_zstar_ue). By the symmetry of the mixed second derivative of the total energy this equals the transposed leg -2*sum wg*Re<dpsi^E_a(scf)|dV_ext^{k,b}|psi_v> that QE's zstar_eu computes with the electric-field responses; only one leg is needed. The dpsi^kappa Sternheimer gauge (<psi_occ|dpsi> = 0) drops the occupied-occupied block of x exactly. The diamond C7 target (Z* -> 0 by inversion + ASR) requires the screened dpsi. With a symmetry-reduced k list both sums run over the irreducible k and each partial tensor chi(k) is star-averaged: the physical partial at a rotated star member Rk is R chi(k) R^T, and atom-resolved (Born) partials are credited to the image atom under R. With symmetry off the stored list is the full mesh and the star machinery degenerates to the identity. The absolute calibration of both expressions is pinned by the diamond end-to-end test in C7 (structure/symmetry by the C6 tests).

Constructor & Destructor Documentation

◆ DFPT_Q0()

ModuleDFPT::DFPT_Q0::DFPT_Q0 ( )
default

◆ ~DFPT_Q0()

ModuleDFPT::DFPT_Q0::~DFPT_Q0 ( )
default

Member Function Documentation

◆ build_stars()

void ModuleDFPT::DFPT_Q0::build_stars ( int nk)

rebuild stars_ for the stored k list (nk points); falls back to a single identity member per k when the point group is unavailable (symmetry off / unreduced mesh) or an atom map fails

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

◆ compute_born()

void ModuleDFPT::DFPT_Q0::compute_born ( const psi::Psi< std::complex< double > > & psi,
const ModuleBase::matrix & wg,
const ModuleBase::matrix & eig,
DFPT_PW_Data & data )
Here is the call graph for this function:

◆ compute_eps()

void ModuleDFPT::DFPT_Q0::compute_eps ( const ModuleBase::matrix & wg,
DFPT_PW_Data & data )

SCF dielectric tensor (QE dielec.f90 form): eps = 1 - (16 pi / Omega) sum_k wg sum_v Re <Y^a_v|dpsi^E,b_v> consuming the converged E-field responses dpsi_efield and the bare position legs pos_resp stashed by DFPT_PW (solve_pos_resp / solve_efield_resp). Must run after both stashes are complete.

Here is the call graph for this function:

◆ compute_q0_response()

void ModuleDFPT::DFPT_Q0::compute_q0_response ( DFPT_PW_Data & data)
Here is the call graph for this function:

◆ init()

void ModuleDFPT::DFPT_Q0::init ( UnitCell & ucell,
ModulePW::PW_Basis * pw_rho,
ModulePW::PW_Basis_K * pw_wfc,
DFPT_Pert * pert )
Here is the call graph for this function:

◆ pos_matrix()

void ModuleDFPT::DFPT_Q0::pos_matrix ( const psi::Psi< std::complex< double > > & psi,
const ModuleBase::matrix & eig,
std::vector< std::vector< std::vector< ModuleBase::Vector3< std::complex< double > > > > > & r_mat )

position-operator matrix elements r_mat[ik][m][n].d = <u_{m,k}|r_d|u_{n,k}> (m != n), periodic gauge (velocity form); eig is the ground-state eigenvalue matrix (nk x nbands, Ry). Design-phase PT reference: no production caller since compute_eps moved to the SCF contraction (kept for the analytic serial tests and as the independent-particle cross-check; cleanup review P0-3).

Here is the call graph for this function:

◆ rotate_tensor()

void ModuleDFPT::DFPT_Q0::rotate_tensor ( const ModuleBase::Matrix3 & r,
const ModuleBase::matrix & chi,
double(&) chi_rot[9] )
static

chi_rot(a,b) = sum_{a'b'} R(a,a') R(b,b') chi(a',b') of a 3x3 partial tensor under a cartesian rotation

Here is the call graph for this function:

Member Data Documentation

◆ pert_

DFPT_Pert* ModuleDFPT::DFPT_Q0::pert_ = nullptr
private

◆ pw_rho_

ModulePW::PW_Basis* ModuleDFPT::DFPT_Q0::pw_rho_ = nullptr
private

◆ pw_wfc_

ModulePW::PW_Basis_K* ModuleDFPT::DFPT_Q0::pw_wfc_ = nullptr
private

◆ stars_

std::vector<std::vector<StarMember> > ModuleDFPT::DFPT_Q0::stars_

[ik] -> star members

◆ ucell_

UnitCell* ModuleDFPT::DFPT_Q0::ucell_ = nullptr
private

The documentation for this class was generated from the following files: