ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
read_pp_ucell.h
Go to the documentation of this file.
1
5#ifndef READ_PP_UCELL_H
6#define READ_PP_UCELL_H
7
8#include "unitcell.h"
9#include "cal_atoms_info.h"
10
11namespace unitcell {
12
40 AtomsInfoResult read_pseudo(std::ofstream& ofs, UnitCell& ucell,
41 const std::string& pseudo_dir,
42 const std::string& global_out_dir,
43 const bool out_element_info,
44 const std::string& dft_functional,
45 const bool lspinorb,
46 const double pseudo_rcut,
47 const double soc_lambda,
48 const int nspin,
49 const int npol,
50 const std::string& basis_type,
51 const std::string& esolver_type,
52 const std::string& init_wfc,
53 const int nbands,
54 const bool two_fermi,
55 const double nelec_delta,
56 const std::string& smearing_method,
57 const std::string& ks_solver,
58 const int bndpar,
59 const double nelec,
60 const double nupdown);
61
74 void read_cell_pseudopots(const std::string& fn, std::ofstream& log, UnitCell& ucell,
75 const std::string& global_out_dir,
76 const std::string& dft_functional,
77 const bool lspinorb,
78 const double pseudo_rcut,
79 const double soc_lambda);
80
87 void print_unitcell_pseudo(const std::string& fn, UnitCell& ucell);
88
105 void cal_nwfc(std::ofstream& log, UnitCell& ucell,Atom* atoms, const int nspin, const int nlocal, const int npol,
106 const std::string& basis_type, const std::string& esolver_type, const std::string& init_wfc, const int nbands);
107
117 void cal_meshx(int& meshx,const Atom* atoms, const int ntype);
118
130 void cal_natomwfc(std::ofstream& log,int& natomwfc,const int ntype,const Atom* atoms,const int nspin);
131
139 void compare_atom_labels(const std::string& label1, const std::string& label2);
140
141}
142
143#endif // READ_PP_UCELL_H
CalAtomsInfo class for calculating atom information.
Free functions for extracting atom/orbital info from Atom array.
Definition bcast_cell.cpp:8
AtomsInfoResult read_pseudo(std::ofstream &ofs, UnitCell &ucell, const std::string &pseudo_dir, const std::string &global_out_dir, const bool out_element_info, const std::string &dft_functional, const bool lspinorb, const double pseudo_rcut, const double soc_lambda, const int nspin, const int npol, const std::string &basis_type, const std::string &esolver_type, const std::string &init_wfc, const int nbands, const bool two_fermi, const double nelec_delta, const std::string &smearing_method, const std::string &ks_solver, const int bndpar, const double nelec, const double nupdown)
Read pseudopotential files and calculate atom information.
Definition read_pp_ucell.cpp:18
void cal_nwfc(std::ofstream &log, UnitCell &ucell, Atom *atoms, const int nspin, const int nlocal, const int npol, const std::string &basis_type, const std::string &esolver_type, const std::string &init_wfc, const int nbands)
Calculate the total number of local basis.
Definition cal_wfc.cpp:5
void read_cell_pseudopots(const std::string &pp_dir, std::ofstream &log, UnitCell &ucell, const std::string &global_out_dir, const std::string &dft_functional, const bool lspinorb, const double pseudo_rcut, const double soc_lambda)
Read pseudopotential from files for each type of atom.
Definition read_pp_ucell.cpp:267
void cal_natomwfc(std::ofstream &log, int &natomwfc, const int ntype, const Atom *atoms, const int nspin)
Calculate natomwfc.
Definition cal_wfc.cpp:131
void print_unitcell_pseudo(const std::string &fn, UnitCell &ucell)
Print unit cell pseudopotential information.
Definition read_pp_ucell.cpp:393
void cal_meshx(int &meshx, const Atom *atoms, const int ntype)
Calculate meshx.
Definition cal_wfc.cpp:118
void compare_atom_labels(const std::string &label1, const std::string &label2)
Check consistency between two atom labels from STRU and pseudo or orb file.
Definition read_pp_ucell.cpp:408