ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
LR::LR_Force< TK > Class Template Reference

#include <lr_force.h>

Collaboration diagram for LR::LR_Force< TK >:

Public Member Functions

 LR_Force (const UnitCell &ucell, const std::vector< ModuleBase::Vector3< double > > &kvec_d, const Parallel_Orbitals &pv, const ModulePW::PW_Basis &rhodpw, const ModulePW::PW_Basis &rhopw, const pseudopot_cell_vl &locpp, const Structure_Factor &sf, const Grid_Driver &gd, const TwoCenterBundle &two_center_bundle, const ForceSettings &settings, std::ofstream &running_log)
ModuleBase::matrix cal_force_hamilt_gs_dm_relaxed_diff (const module_dm::DensityMatrix< TK, double > &relaxed_diff_dm, const module_dm::DensityMatrix< TK, double > &dm_gs, const bool reproduce_gs=false, const PotHxcLR *pot_hxc_gs=nullptr)
ModuleBase::matrix cal_force_overlap_edm (const module_dm::DensityMatrix< TK, double > &edm)
ModuleBase::matrix cal_force_hxc_dmtrans (const module_dm::DensityMatrix< TK, double > &dm_trans, const PotHxcLR &pot_hxc)
ModuleBase::matrix cal_force_gxc_dmtrans (const module_dm::DensityMatrix< TK, double > &dm_trans, const module_dm::DensityMatrix< TK, double > &dm_gs, const PotGradXCLR &pot_grad)
ModuleBase::matrix cal_force_gxc_dmtrans_openshell (const module_dm::DensityMatrix< TK, double > &dm_trans, const module_dm::DensityMatrix< TK, double > &dm_gs, const PotGradXCLR &pot_grad)
ModuleBase::matrix reproduce_force_gs (const K_Vectors &kv, const module_dm::DensityMatrix< TK, double > &dm_gs, const module_dm::DensityMatrix< TK, double > &edm_gs)
 reproduce the force of the ground state
ModuleBase::matrix reproduce_force_gs_loc (const module_dm::DensityMatrix< TK, double > &dm_gs, const elecstate::Potential &pot_gs)
 repreduce the ground state local term

Protected Member Functions

void dm_to_charge (const module_dm::DensityMatrix< TK, double > &dm, Charge &chr_out)
std::unique_ptr< elecstate::Potential > dm_to_hxc_potential (const module_dm::DensityMatrix< TK, double > &dm)
std::unique_ptr< elecstate::Potential > local_potential ()

Protected Attributes

const UnitCell & ucell_
const std::vector< ModuleBase::Vector3< double > > & kvec_d_
const Parallel_Orbitals & pv_
const ModulePW::PW_Basis & rhodpw_
const ModulePW::PW_Basis & rhopw_
const pseudopot_cell_vl & locpp_
const Structure_Factor & sf_
const Grid_Driver & gd_
const TwoCenterBundle & two_center_bundle_
std::ofstream & ofs_running_
 Explicit configuration and log borrowed/passed at the ESolver wiring point.
const int nspin_
const bool test_force_
const bool vl_in_h_
const bool vh_in_h_
const std::string dft_functional_
double etxc_ = 0.0
double vtxc_ = 0.0

Constructor & Destructor Documentation

◆ LR_Force()

template<typename TK>
LR::LR_Force< TK >::LR_Force ( const UnitCell & ucell,
const std::vector< ModuleBase::Vector3< double > > & kvec_d,
const Parallel_Orbitals & pv,
const ModulePW::PW_Basis & rhodpw,
const ModulePW::PW_Basis & rhopw,
const pseudopot_cell_vl & locpp,
const Structure_Factor & sf,
const Grid_Driver & gd,
const TwoCenterBundle & two_center_bundle,
const ForceSettings & settings,
std::ofstream & running_log )
inline
Parameters
running_logfor 2-center integrals

Member Function Documentation

◆ cal_force_gxc_dmtrans()

template<typename TK>
ModuleBase::matrix LR::LR_Force< TK >::cal_force_gxc_dmtrans ( const module_dm::DensityMatrix< TK, double > & dm_trans,
const module_dm::DensityMatrix< TK, double > & dm_gs,
const PotGradXCLR & pot_grad )

3b. the $g^{xc}$ half of $\partial_x K^{S/T}[D^X]D^X$: $\int v^{(2)}[\rho^X,\rho^X](r)\,\partial_x\rho^\text{gs}(r)|_\text{basis}$

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

◆ cal_force_gxc_dmtrans_openshell()

template<typename TK>
ModuleBase::matrix LR::LR_Force< TK >::cal_force_gxc_dmtrans_openshell ( const module_dm::DensityMatrix< TK, double > & dm_trans,
const module_dm::DensityMatrix< TK, double > & dm_gs,
const PotGradXCLR & pot_grad )

3b'. open-shell version: $\sum_\tau\int v^{(2)}_\tau[\rho^X,\rho^X]\, \partial_x\rho^\text{gs}_\tau|_\text{basis}$. Both transition-density channels enter each $v^{(2)}_\tau$, so this cannot be a per-channel loop over the above.

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

◆ cal_force_hamilt_gs_dm_relaxed_diff()

template<typename TK>
ModuleBase::matrix LR::LR_Force< TK >::cal_force_hamilt_gs_dm_relaxed_diff ( const module_dm::DensityMatrix< TK, double > & relaxed_diff_dm,
const module_dm::DensityMatrix< TK, double > & dm_gs,
const bool reproduce_gs = false,
const PotHxcLR * pot_hxc_gs = nullptr )
  1. $Tr[H_{GS}^x * (T+D^Z)]$, where GS=groud state and $(T+D^Z)$ is the relaxed difference density matrix
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cal_force_hxc_dmtrans()

template<typename TK>
ModuleBase::matrix LR::LR_Force< TK >::cal_force_hxc_dmtrans ( const module_dm::DensityMatrix< TK, double > & dm_trans,
const PotHxcLR & pot_hxc )
  1. $\sum_{mnkl}(mn|f_{Hxc}|kl)^x *D^X *D^X$
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cal_force_overlap_edm()

template<typename TK>
ModuleBase::matrix LR::LR_Force< TK >::cal_force_overlap_edm ( const module_dm::DensityMatrix< TK, double > & edm)
  1. $Tr[S^x * (EDM)]
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dm_to_charge()

template<typename TK>
void LR::LR_Force< TK >::dm_to_charge ( const module_dm::DensityMatrix< TK, double > & dm,
Charge & chr_out )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dm_to_hxc_potential()

template<typename TK>
std::unique_ptr< elecstate::Potential > LR::LR_Force< TK >::dm_to_hxc_potential ( const module_dm::DensityMatrix< TK, double > & dm)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ local_potential()

template<typename TK>
std::unique_ptr< elecstate::Potential > LR::LR_Force< TK >::local_potential ( )
protected
Here is the caller graph for this function:

◆ reproduce_force_gs()

template<typename TK>
ModuleBase::matrix LR::LR_Force< TK >::reproduce_force_gs ( const K_Vectors & kv,
const module_dm::DensityMatrix< TK, double > & dm_gs,
const module_dm::DensityMatrix< TK, double > & edm_gs )

reproduce the force of the ground state

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

◆ reproduce_force_gs_loc()

template<typename TK>
ModuleBase::matrix LR::LR_Force< TK >::reproduce_force_gs_loc ( const module_dm::DensityMatrix< TK, double > & dm_gs,
const elecstate::Potential & pot_gs )

repreduce the ground state local term

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

Member Data Documentation

◆ dft_functional_

template<typename TK>
const std::string LR::LR_Force< TK >::dft_functional_
protected

◆ etxc_

template<typename TK>
double LR::LR_Force< TK >::etxc_ = 0.0
protected

◆ gd_

template<typename TK>
const Grid_Driver& LR::LR_Force< TK >::gd_
protected

◆ kvec_d_

template<typename TK>
const std::vector<ModuleBase::Vector3<double> >& LR::LR_Force< TK >::kvec_d_
protected

◆ locpp_

template<typename TK>
const pseudopot_cell_vl& LR::LR_Force< TK >::locpp_
protected

◆ nspin_

template<typename TK>
const int LR::LR_Force< TK >::nspin_
protected

◆ ofs_running_

template<typename TK>
std::ofstream& LR::LR_Force< TK >::ofs_running_
protected

Explicit configuration and log borrowed/passed at the ESolver wiring point.

◆ pv_

template<typename TK>
const Parallel_Orbitals& LR::LR_Force< TK >::pv_
protected

◆ rhodpw_

template<typename TK>
const ModulePW::PW_Basis& LR::LR_Force< TK >::rhodpw_
protected

◆ rhopw_

template<typename TK>
const ModulePW::PW_Basis& LR::LR_Force< TK >::rhopw_
protected

◆ sf_

template<typename TK>
const Structure_Factor& LR::LR_Force< TK >::sf_
protected

◆ test_force_

template<typename TK>
const bool LR::LR_Force< TK >::test_force_
protected

◆ two_center_bundle_

template<typename TK>
const TwoCenterBundle& LR::LR_Force< TK >::two_center_bundle_
protected

◆ ucell_

template<typename TK>
const UnitCell& LR::LR_Force< TK >::ucell_
protected

◆ vh_in_h_

template<typename TK>
const bool LR::LR_Force< TK >::vh_in_h_
protected

◆ vl_in_h_

template<typename TK>
const bool LR::LR_Force< TK >::vl_in_h_
protected

◆ vtxc_

template<typename TK>
double LR::LR_Force< TK >::vtxc_ = 0.0
protected

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