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

Immutable shared environment for the DFT+U force/stress kernels. More...

#include <dftu_nao_fs_k.h>

Collaboration diagram for DFTU_LCAO::DftuFsEnv:

Public Member Functions

 DftuFsEnv (Plus_U_Base &dftu, const UnitCell &ucell, const Grid_Driver &gd, const Parallel_Orbitals &pv, ForceStressArrays &fsr, const std::vector< double > &orb_cutoff, const std::string &ks_solver)
Plus_U_Base & dftu () const
 DFT+U state; the onsite-potential builders take it non-const.
const UnitCell & ucell () const
const Grid_Driver & gd () const
const Parallel_Orbitals & pv () const
ForceStressArrays & fsr () const
 Folded dS/dH matrix arrays; buffers are filled by the caller.
const std::vector< double > & orb_cutoff () const
const std::string & ks_solver () const
int npol () const

Private Attributes

Plus_U_Base * dftu_
const UnitCell * ucell_
const Grid_Driver * gd_
const Parallel_Orbitals * pv_
ForceStressArrays * fsr_
const std::vector< double > * orb_cutoff_
std::string ks_solver_

Detailed Description

Immutable shared environment for the DFT+U force/stress kernels.

Bundles the system objects (unit cell, neighbor grid, orbital parallelization, folded-matrix arrays and DFT+U state) together with the scalar configuration (orbital cutoffs, ks_solver name and spinor count) that stays constant for one force/stress calculation. It holds no per-k-point data: density matrices, k vectors and output matrices remain explicit function arguments.

Constructor & Destructor Documentation

◆ DftuFsEnv()

DFTU_LCAO::DftuFsEnv::DftuFsEnv ( Plus_U_Base & dftu,
const UnitCell & ucell,
const Grid_Driver & gd,
const Parallel_Orbitals & pv,
ForceStressArrays & fsr,
const std::vector< double > & orb_cutoff,
const std::string & ks_solver )
inline
Here is the call graph for this function:

Member Function Documentation

◆ dftu()

Plus_U_Base & DFTU_LCAO::DftuFsEnv::dftu ( ) const
inline

DFT+U state; the onsite-potential builders take it non-const.

Here is the caller graph for this function:

◆ fsr()

ForceStressArrays & DFTU_LCAO::DftuFsEnv::fsr ( ) const
inline

Folded dS/dH matrix arrays; buffers are filled by the caller.

Here is the caller graph for this function:

◆ gd()

const Grid_Driver & DFTU_LCAO::DftuFsEnv::gd ( ) const
inline
Here is the caller graph for this function:

◆ ks_solver()

const std::string & DFTU_LCAO::DftuFsEnv::ks_solver ( ) const
inline
Here is the caller graph for this function:

◆ npol()

int DFTU_LCAO::DftuFsEnv::npol ( ) const
inline
Here is the caller graph for this function:

◆ orb_cutoff()

const std::vector< double > & DFTU_LCAO::DftuFsEnv::orb_cutoff ( ) const
inline
Here is the caller graph for this function:

◆ pv()

const Parallel_Orbitals & DFTU_LCAO::DftuFsEnv::pv ( ) const
inline
Here is the caller graph for this function:

◆ ucell()

const UnitCell & DFTU_LCAO::DftuFsEnv::ucell ( ) const
inline
Here is the caller graph for this function:

Member Data Documentation

◆ dftu_

Plus_U_Base* DFTU_LCAO::DftuFsEnv::dftu_
private

◆ fsr_

ForceStressArrays* DFTU_LCAO::DftuFsEnv::fsr_
private

◆ gd_

const Grid_Driver* DFTU_LCAO::DftuFsEnv::gd_
private

◆ ks_solver_

std::string DFTU_LCAO::DftuFsEnv::ks_solver_
private

◆ orb_cutoff_

const std::vector<double>* DFTU_LCAO::DftuFsEnv::orb_cutoff_
private

◆ pv_

const Parallel_Orbitals* DFTU_LCAO::DftuFsEnv::pv_
private

◆ ucell_

const UnitCell* DFTU_LCAO::DftuFsEnv::ucell_
private

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