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

Class for storing pseudopotential data. More...

#include <pseudo.h>

Inheritance diagram for pseudo:
Collaboration diagram for pseudo:

Public Member Functions

 pseudo ()
 ~pseudo ()
void check_betar ()
 Check the input data for non-normal numbers in the betar. Subsequent values following non-normal numbers will be reset to zero to prevent potential computational issues arising from invalid data.
void print_pseudo_h (std::ofstream &ofs) const
void print_pseudo_atom (std::ofstream &ofs) const
void print_pseudo_vl (std::ofstream &ofs) const
void print_pseudo (std::ofstream &ofs) const

Public Attributes

bool has_so = false
 PP_HEADER.
int nv = 0
 UPF file version number.
std::string psd
 Element label.
std::string pp_type
 Pseudo type ( NC or US ).
bool tvanp = false
 .true. if Ultrasoft
bool nlcc = false
 Non linear core corrections(bool).
std::string xc_func
 Exch-Corr type.
double zv = 0
 z valence
double etotps = 0.0
 total energy
double ecutwfc = 0.0
 suggested cut-off for wfc
double ecutrho = 0.0
 suggested cut-off for rho
int lmax = 0
 maximum angular momentum component
int mesh = 0
 number of point in the radial mesh
int nchi = 0
 nwfc,number of wavefunctions
int nbeta = 0
 number of projectors
int nqlc = 0
 number of angular momenta in Q
int kkbeta = 0
 kkbeta, point where the beta are zero
std::vector< std::string > els = {}
 els[nchi]
std::vector< int > lchi = {}
 lchi[nchi]
std::vector< double > oc = {}
 oc[nchi]
std::vector< double > jjj = {}
 total angual momentum, jjj[nbeta]
std::vector< double > jchi = {}
 jchi(nwfc), added by zhengdy-soc
std::vector< int > nn = {}
std::vector< double > vloc_at = {}
 PP_LOCAL - Local pseudopotentials.
std::vector< double > r = {}
 PP_MESH.
std::vector< double > rab = {}
 derivative of the radial mesh, rab[0:mesh-1]
std::vector< double > rho_atc = {}
 PP_NLCC.
std::vector< double > rho_at = {}
 PP_RHOATOM.
ModuleBase::matrix chi
 PP_PSWFC.
int msh = 0
 PP_OTHER.
double rcut = 0.0
 cut-off radius
std::vector< int > lll = {}
 PP_BETA.
ModuleBase::matrix dion
 PP_DIJ.
ModuleBase::matrix betar
 (nbeta, mesh), radial beta_{mu} functions
int nh = 0
 PP_OTHER.
ModuleBase::realArray qfuncl
 USPP - Ultrasoft pseudopotential.
ModuleBase::matrix qqq
 qqq(nbeta,nbeta) q_{mu,nu}

Detailed Description

Class for storing pseudopotential data.

Constructor & Destructor Documentation

◆ pseudo()

pseudo::pseudo ( )
inline
  • Tested functions:
    • vdw::make_vdw(): Based on the value of INPUT.vdw_method, construct Vdwd2 or Vdwd3 class, and do the initialization.
    • vdw::Vdw::evaluate(): Calculate the requested vdW energy, force and stress in one evaluation. The stress is checked against finite differences of the energy under homogeneous strain of the cell and atoms.
    • Vdwd2Parameters::initial_parameters()
    • native s-dftd3-compatible D3 adapter

◆ ~pseudo()

pseudo::~pseudo ( )
inline

Member Function Documentation

◆ check_betar()

void pseudo::check_betar ( )

Check the input data for non-normal numbers in the betar. Subsequent values following non-normal numbers will be reset to zero to prevent potential computational issues arising from invalid data.

Here is the caller graph for this function:

◆ print_pseudo()

void pseudo::print_pseudo ( std::ofstream & ofs) const
Here is the call graph for this function:

◆ print_pseudo_atom()

void pseudo::print_pseudo_atom ( std::ofstream & ofs) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_pseudo_h()

void pseudo::print_pseudo_h ( std::ofstream & ofs) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_pseudo_vl()

void pseudo::print_pseudo_vl ( std::ofstream & ofs) const
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ betar

ModuleBase::matrix pseudo::betar

(nbeta, mesh), radial beta_{mu} functions

◆ chi

ModuleBase::matrix pseudo::chi

PP_PSWFC.

radial atomic orbitals, chi(nchi, mesh)

◆ dion

ModuleBase::matrix pseudo::dion

◆ ecutrho

double pseudo::ecutrho = 0.0

suggested cut-off for rho

◆ ecutwfc

double pseudo::ecutwfc = 0.0

suggested cut-off for wfc

◆ els

std::vector<std::string> pseudo::els = {}

els[nchi]

◆ etotps

double pseudo::etotps = 0.0

total energy

◆ has_so

bool pseudo::has_so = false

PP_HEADER.

if .true. includes spin-orbit

◆ jchi

std::vector<double> pseudo::jchi = {}

jchi(nwfc), added by zhengdy-soc

◆ jjj

std::vector<double> pseudo::jjj = {}

total angual momentum, jjj[nbeta]

◆ kkbeta

int pseudo::kkbeta = 0

kkbeta, point where the beta are zero

◆ lchi

std::vector<int> pseudo::lchi = {}

lchi[nchi]

◆ lll

std::vector<int> pseudo::lll = {}

PP_BETA.

lll(nbeta), angular momentum of the beta function

◆ lmax

int pseudo::lmax = 0

maximum angular momentum component

◆ mesh

int pseudo::mesh = 0

number of point in the radial mesh

◆ msh

int pseudo::msh = 0

PP_OTHER.

number of points up to rcut

◆ nbeta

int pseudo::nbeta = 0

number of projectors

◆ nchi

int pseudo::nchi = 0

nwfc,number of wavefunctions

◆ nh

int pseudo::nh = 0

PP_OTHER.

number of beta functions per atomic type

◆ nlcc

bool pseudo::nlcc = false

Non linear core corrections(bool).

◆ nn

std::vector<int> pseudo::nn = {}

◆ nqlc

int pseudo::nqlc = 0

number of angular momenta in Q

◆ nv

int pseudo::nv = 0

UPF file version number.

◆ oc

std::vector<double> pseudo::oc = {}

oc[nchi]

◆ pp_type

std::string pseudo::pp_type

Pseudo type ( NC or US ).

◆ psd

std::string pseudo::psd

Element label.

◆ qfuncl

ModuleBase::realArray pseudo::qfuncl

USPP - Ultrasoft pseudopotential.

qfuncl(2*lmax+1,nbeta*(nbeta+1)/2,mesh) Q_{mu,nu}(|r|) function for |r|> r_L

◆ qqq

ModuleBase::matrix pseudo::qqq

qqq(nbeta,nbeta) q_{mu,nu}

◆ r

std::vector<double> pseudo::r = {}

PP_MESH.

radial logaritmic mesh, r[0:mesh-1]

◆ rab

std::vector<double> pseudo::rab = {}

derivative of the radial mesh, rab[0:mesh-1]

◆ rcut

double pseudo::rcut = 0.0

cut-off radius

◆ rho_at

std::vector<double> pseudo::rho_at = {}

PP_RHOATOM.

radial atomic charge density, rho_at[0:mesh-1]

◆ rho_atc

std::vector<double> pseudo::rho_atc = {}

PP_NLCC.

radial core charge density, rho_atc[0:mesh-1]

◆ tvanp

bool pseudo::tvanp = false

.true. if Ultrasoft

◆ vloc_at

std::vector<double> pseudo::vloc_at = {}

PP_LOCAL - Local pseudopotentials.

[mesh], local potential( = pseudopot_upf.vloc )

◆ xc_func

std::string pseudo::xc_func

Exch-Corr type.

◆ zv

double pseudo::zv = 0

z valence


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