ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
dfpt_test Namespace Reference

Classes

struct  atomtype_
 one atom species: label + cartesian coordinates of its sites More...
struct  stru_
 hand-written structure table consumed by construct_ucell More...

Functions

stru_ cubic_carbon_stru ()
void construct_ucell (UnitCell &ucell, const stru_ &stru)
void setup_cell (UnitCell &ucell, ModuleBase::Matrix3 &latvec)
void make_coulomb_atom (UnitCell &ucell)
void make_nc_atom (UnitCell &ucell)
void make_two_atom_cell (UnitCell &ucell)
void make_nlcc_two_atom_cell (UnitCell &ucell)
void setup_bases (ModulePW::PW_Basis &pw_rho, ModulePW::PW_Basis_K &pw_wfc, ModuleCell::QList &qlist, ModuleDFPT::DFPT_PW_Data &data, const UnitCell &ucell, const ModuleBase::Vector3< double > &k_d, const ModuleBase::Vector3< double > &q_d, int nbands, ModuleBase::Vector3< double > &q_cart)
double vloc_coulomb (double zv, double omega, double g2_bohr)
std::complex< double > analytic_dvloc (const UnitCell &ucell, const ModuleBase::Vector3< double > &tau, int dir, const ModuleBase::Vector3< double > &w)
long long fkey (int ix, int iy, int iz)
long long gkey (const ModuleBase::Vector3< double > &g, double a)

Variables

constexpr double lat0 = 1.8897261254578281
constexpr double ecutwfc = 2.5
constexpr double rho_mult = 9.0
constexpr double cubic_edge = 10.0
constexpr double nlcc_sigma = 1.5
constexpr double nlcc_core_charge = 0.24

Function Documentation

◆ analytic_dvloc()

std::complex< double > dfpt_test::analytic_dvloc ( const UnitCell & ucell,
const ModuleBase::Vector3< double > & tau,
int dir,
const ModuleBase::Vector3< double > & w )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ construct_ucell()

void dfpt_test::construct_ucell ( UnitCell & ucell,
const stru_ & stru )

Build the UnitCell from the structure table: lattice vectors and latvec / G / GT, per-type tau / taud (cartesian -> direct through Mathzone), and the iat2it / iat2ia running-index tables real cells always carry. The caller owns the UnitCell (and its atoms array).

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

◆ cubic_carbon_stru()

stru_ dfpt_test::cubic_carbon_stru ( )

The default test structure: a cubic 1x1x1 carbon cell (O_h / Pm-3m, single atom at the origin).

Here is the caller graph for this function:

◆ fkey()

long long dfpt_test::fkey ( int ix,
int iy,
int iz )
Here is the caller graph for this function:

◆ gkey()

long long dfpt_test::gkey ( const ModuleBase::Vector3< double > & g,
double a )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ make_coulomb_atom()

void dfpt_test::make_coulomb_atom ( UnitCell & ucell)
Here is the caller graph for this function:

◆ make_nc_atom()

void dfpt_test::make_nc_atom ( UnitCell & ucell)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ make_nlcc_two_atom_cell()

void dfpt_test::make_nlcc_two_atom_cell ( UnitCell & ucell)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ make_two_atom_cell()

void dfpt_test::make_two_atom_cell ( UnitCell & ucell)
Here is the caller graph for this function:

◆ setup_bases()

void dfpt_test::setup_bases ( ModulePW::PW_Basis & pw_rho,
ModulePW::PW_Basis_K & pw_wfc,
ModuleCell::QList & qlist,
ModuleDFPT::DFPT_PW_Data & data,
const UnitCell & ucell,
const ModuleBase::Vector3< double > & k_d,
const ModuleBase::Vector3< double > & q_d,
int nbands,
ModuleBase::Vector3< double > & q_cart )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setup_cell()

void dfpt_test::setup_cell ( UnitCell & ucell,
ModuleBase::Matrix3 & latvec )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vloc_coulomb()

double dfpt_test::vloc_coulomb ( double zv,
double omega,
double g2_bohr )
Here is the caller graph for this function:

Variable Documentation

◆ cubic_edge

double dfpt_test::cubic_edge = 10.0
constexpr

◆ ecutwfc

double dfpt_test::ecutwfc = 2.5
constexpr

◆ lat0

double dfpt_test::lat0 = 1.8897261254578281
constexpr

◆ nlcc_core_charge

double dfpt_test::nlcc_core_charge = 0.24
constexpr

◆ nlcc_sigma

double dfpt_test::nlcc_sigma = 1.5
constexpr

◆ rho_mult

double dfpt_test::rho_mult = 9.0
constexpr