ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
pseudo.h
Go to the documentation of this file.
1
6#ifndef PSEUDO_H
7#define PSEUDO_H
8
9#include <cstdint>
11#include "source_base/matrix.h"
13
17class pseudo
18{
19 public:
20 pseudo();
21 ~pseudo();
22
24 bool has_so = false;
25 int nv = 0;
26 std::string psd;
27 std::string pp_type;
28 bool tvanp = false;
29 bool nlcc = false;
30 std::string xc_func;
31 double zv = 0;
32 double etotps = 0.0;
33 double ecutwfc = 0.0;
34 double ecutrho = 0.0;
35 int lmax = 0;
36 int mesh = 0;
37 int nchi = 0;
38 int nbeta = 0;
39 int nqlc = 0;
40 int kkbeta = 0;
41
42 std::vector<std::string> els = {};
43 std::vector<int> lchi = {};
44 std::vector<double> oc = {};
45
46 std::vector<double> jjj = {};
47 std::vector<double> jchi = {};
48 std::vector<int> nn = {};
49
51 std::vector<double> vloc_at = {};
52
54 std::vector<double> r = {};
55 std::vector<double> rab = {};
56
58 std::vector<double> rho_atc = {};
59
61 std::vector<double> rho_at = {};
62
65
67 int msh = 0;
68 double rcut = 0.0;
69
71 std::vector<int> lll = {};
72
76
78 int nh = 0;
79
88 void check_betar();
89
90 void print_pseudo_h(std::ofstream& ofs) const;
91 void print_pseudo_atom(std::ofstream& ofs) const;
92 void print_pseudo_vl(std::ofstream& ofs) const;
93 void print_pseudo(std::ofstream& ofs) const;
94};
95
96#endif // PSEUDO_H
Definition matrix.h:15
double float array
Definition realarray.h:21
int mesh
number of point in the radial mesh
Definition pseudo.h:36
std::vector< double > rho_atc
PP_NLCC.
Definition pseudo.h:58
void print_pseudo_h(std::ofstream &ofs) const
Definition pseudo.cpp:82
double ecutwfc
suggested cut-off for wfc
Definition pseudo.h:33
~pseudo()
Definition symm_rho_soc_test.cpp:30
std::vector< int > lchi
lchi[nchi]
Definition pseudo.h:43
void print_pseudo(std::ofstream &ofs) const
Definition pseudo.cpp:46
ModuleBase::matrix chi
PP_PSWFC.
Definition pseudo.h:64
std::vector< int > nn
Definition pseudo.h:48
std::vector< double > jjj
total angual momentum, jjj[nbeta]
Definition pseudo.h:46
std::string psd
Element label.
Definition pseudo.h:26
std::vector< double > vloc_at
PP_LOCAL - Local pseudopotentials.
Definition pseudo.h:51
std::vector< int > lll
PP_BETA.
Definition pseudo.h:71
std::vector< double > jchi
jchi(nwfc), added by zhengdy-soc
Definition pseudo.h:47
double etotps
total energy
Definition pseudo.h:32
double zv
z valence
Definition pseudo.h:31
bool nlcc
Non linear core corrections(bool).
Definition pseudo.h:29
void print_pseudo_vl(std::ofstream &ofs) const
Definition pseudo.cpp:74
int kkbeta
kkbeta, point where the beta are zero
Definition pseudo.h:40
std::vector< std::string > els
els[nchi]
Definition pseudo.h:42
void check_betar()
Check the input data for non-normal numbers in the betar. Subsequent values following non-normal numb...
Definition pseudo.cpp:18
int lmax
maximum angular momentum component
Definition pseudo.h:35
int msh
PP_OTHER.
Definition pseudo.h:67
void print_pseudo_atom(std::ofstream &ofs) const
Definition pseudo.cpp:58
bool has_so
PP_HEADER.
Definition pseudo.h:24
std::vector< double > oc
oc[nchi]
Definition pseudo.h:44
double ecutrho
suggested cut-off for rho
Definition pseudo.h:34
int nbeta
number of projectors
Definition pseudo.h:38
double rcut
cut-off radius
Definition pseudo.h:68
std::string pp_type
Pseudo type ( NC or US ).
Definition pseudo.h:27
int nv
UPF file version number.
Definition pseudo.h:25
int nqlc
number of angular momenta in Q
Definition pseudo.h:39
std::vector< double > rab
derivative of the radial mesh, rab[0:mesh-1]
Definition pseudo.h:55
pseudo()
Definition symm_rho_soc_test.cpp:29
int nh
PP_OTHER.
Definition pseudo.h:78
ModuleBase::realArray qfuncl
USPP - Ultrasoft pseudopotential.
Definition pseudo.h:81
std::vector< double > r
PP_MESH.
Definition pseudo.h:54
int nchi
nwfc,number of wavefunctions
Definition pseudo.h:37
ModuleBase::matrix betar
(nbeta, mesh), radial beta_{mu} functions
Definition pseudo.h:75
bool tvanp
.true. if Ultrasoft
Definition pseudo.h:28
ModuleBase::matrix dion
PP_DIJ.
Definition pseudo.h:74
std::vector< double > rho_at
PP_RHOATOM.
Definition pseudo.h:61
std::string xc_func
Exch-Corr type.
Definition pseudo.h:30
ModuleBase::matrix qqq
qqq(nbeta,nbeta) q_{mu,nu}
Definition pseudo.h:82