|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Namespaces | |
| namespace | ModuleBase |
| namespace | GlobalV |
| namespace | base_device |
| namespace | ModuleSymmetry |
Classes | |
| struct | ST_env |
| read-only environment for building S/T matrix elements. More... | |
| struct | ST_elem |
| one S/T matrix element <phi_1 | O | phi_2>. More... | |
| struct | NL_env |
| read-only environment for building the nonlocal <psi|beta><beta|psi> matrix elements. More... | |
| struct | NL_elem |
| identity of one nonlocal matrix element <psi1|beta><beta|psi2>. More... | |
| class | Parallel_Blkcyclic |
| Parallel block-cyclic matrix distribution. More... | |
| class | Parallel_Orbitals |
| struct | GetTypeReal |
| struct | GetTypeReal< std::complex< float > > |
| Specialization of GetTypeReal for std::complex<float>. More... | |
| struct | GetTypeReal< std::complex< double > > |
| Specialization of GetTypeReal for std::complex<double>. More... | |
| class | BlasConnector |
| class | SepPot |
| Sep Potential for DFT-1/2 etc. More... | |
| class | Sep_Cell |
| class | Magnetism |
| Class for magnetism calculations. More... | |
| struct | Lattice |
| Lattice information. More... | |
| class | pseudo |
| Class for storing pseudopotential data. More... | |
| class | Atom_pseudo |
| Atom_pseudo class for atom pseudopotential data. More... | |
| class | Atom |
| Atom class for storing atom information. More... | |
| class | BaseCell |
| class | NonlocalInfoBase |
| Abstract base class for non-local pseudopotential information. More... | |
| class | UnitCell |
| Provide the basic information about unitcell. More... | |
| class | FAtom |
| A class containing atom position, type and index. More... | |
| class | Grid |
| class | AdjacentAtomInfo |
| Struct of array for packing the Adjacent atom information. More... | |
| class | Grid_Driver |
| Grid_Driver class for neighbor search interface. More... | |
| class | Record_adj |
| struct | NL_pair |
Typedefs | |
| typedef std::tuple< int, int, int, int > | key_tuple |
| typedef std::vector< FAtom > | AtomMap |
Functions | |
| template<typename TK> | |
| void | allocate_dm (module_dm::Setup_DM< TK > &dmat, const K_Vectors *kv, const Parallel_Orbitals *pv, const int nspin) |
| template void | allocate_dm< double > (module_dm::Setup_DM< double > &, const K_Vectors *, const Parallel_Orbitals *, const int) |
| template void | allocate_dm< std::complex< double > > (module_dm::Setup_DM< std::complex< double > > &, const K_Vectors *, const Parallel_Orbitals *, const int) |
| void | assemble_print_force (const UnitCell &ucell, const bool istestf, const vdw::VdwResult *vdw_result, const Exx_Info &exx_info, ModuleSymmetry::Symmetry *symm, const std::string &dpks_out_type, const LCAOForceParts &parts, const double force_threshold, ModuleBase::matrix &fcs) |
| void | assemble_print_stress (const UnitCell &ucell, const bool istests, const vdw::VdwResult *vdw_result, const Exx_Info &exx_info, ModuleSymmetry::Symmetry *symm, const std::string &dpks_out_type, const LCAOStressParts &sparts, ModuleBase::matrix &scs) |
| void | cal_vdw_fields_fs (const vdw::VdwResult *vdw_result, UnitCell &ucell, surchem &solvent, ModulePW::PW_Basis *rhopw, const pseudopot_cell_vl &locpp, const bool isforce, const bool isstress, LCAOForceParts &parts, LCAOStressParts &sparts, const elecstate::TDFieldManager *td_field) |
| template<typename T> | |
| void | cal_exx_fs (const UnitCell &ucell, const bool isforce, const bool isstress, const bool is_rt, const Exx_Info &exx_info, Exx_NAO< T > &exx_nao, LCAOForceParts &parts, LCAOStressParts &sparts) |
| template<typename T> | |
| void | cal_dftu_fs (UnitCell &ucell, const Grid_Driver &gd, Parallel_Orbitals &pv, const LCAO_Orbitals &orb, const K_Vectors &kv, module_dm::Setup_DM< T > &dmat, const TwoCenterBundle &two_center_bundle, Plus_U_Base &dftu, const bool isforce, const bool isstress, LCAOForceParts &parts, LCAOStressParts &sparts) |
| template<typename T> | |
| void | cal_deepks_fs (const UnitCell &ucell, const Grid_Driver &gd, Parallel_Orbitals &pv, const LCAO_Orbitals &orb, const K_Vectors &kv, const bool isforce, const bool isstress, Setup_DeePKS< T > &deepks, LCAOForceParts &parts, LCAOStressParts &sparts) |
| template void | cal_exx_fs< double > (const UnitCell &, const bool, const bool, const bool, const Exx_Info &, Exx_NAO< double > &, LCAOForceParts &, LCAOStressParts &) |
| template void | cal_exx_fs< std::complex< double > > (const UnitCell &, const bool, const bool, const bool, const Exx_Info &, Exx_NAO< std::complex< double > > &, LCAOForceParts &, LCAOStressParts &) |
| template void | cal_dftu_fs< double > (UnitCell &, const Grid_Driver &, Parallel_Orbitals &, const LCAO_Orbitals &, const K_Vectors &, module_dm::Setup_DM< double > &, const TwoCenterBundle &, Plus_U_Base &, const bool, const bool, LCAOForceParts &, LCAOStressParts &) |
| template void | cal_dftu_fs< std::complex< double > > (UnitCell &, const Grid_Driver &, Parallel_Orbitals &, const LCAO_Orbitals &, const K_Vectors &, module_dm::Setup_DM< std::complex< double > > &, const TwoCenterBundle &, Plus_U_Base &, const bool, const bool, LCAOForceParts &, LCAOStressParts &) |
| template void | cal_deepks_fs< double > (const UnitCell &, const Grid_Driver &, Parallel_Orbitals &, const LCAO_Orbitals &, const K_Vectors &, const bool, const bool, Setup_DeePKS< double > &, LCAOForceParts &, LCAOStressParts &) |
| template void | cal_deepks_fs< std::complex< double > > (const UnitCell &, const Grid_Driver &, Parallel_Orbitals &, const LCAO_Orbitals &, const K_Vectors &, const bool, const bool, Setup_DeePKS< std::complex< double > > &, LCAOForceParts &, LCAOStressParts &) |
| template<typename T> | |
| void | DeePKS_init (const UnitCell &ucell, Parallel_Orbitals &pv, const int &nks, const LCAO_Orbitals &orb, LCAO_Deepks< T > &ld, std::ofstream &ofs) |
| template void | DeePKS_init< double > (const UnitCell &ucell, Parallel_Orbitals &pv, const int &nks, const LCAO_Orbitals &orb, LCAO_Deepks< double > &ld, std::ofstream &ofs) |
| template void | DeePKS_init< std::complex< double > > (const UnitCell &ucell, Parallel_Orbitals &pv, const int &nks, const LCAO_Orbitals &orb, LCAO_Deepks< std::complex< double > > &ld, std::ofstream &ofs) |
| void | init_basis_lcao (Parallel_Orbitals &pv, const double &onsite_radius, const double &lcao_ecut, const double &lcao_dk, const double &lcao_dr, const double &lcao_rmax, UnitCell &ucell, TwoCenterBundle &two_center_bundle, LCAO_Orbitals &orb) |
| void | build_Nonlocal_mu_new (const Parallel_Orbitals &pv, ForceStressArrays &fsr, double *HlocR, const bool &calc_deri, const UnitCell &ucell, const LCAO_Orbitals &orb, const TwoCenterIntegrator &intor_orb_beta, const Grid_Driver *GridD) |
| void | set_force (const Parallel_Orbitals &pv, const int &iw1_all, const int &iw2_all, const double &vx, const double &vy, const double &vz, const char &dtype, double *dsloc_x, double *dsloc_y, double *dsloc_z, double *dhloc_fixed_x, double *dhloc_fixed_y, double *dhloc_fixed_z) |
| set the elements of force-related matrices in LCAO method | |
| void | single_overlap (const ST_env &env, const ST_elem &e, int &nnr, int &total_nnr, double *olm, double *HSloc) |
| set each element without derivatives | |
| void | single_deriv (const ST_env &env, const ST_elem &e, ForceStressArrays &fsr, int &nnr, int &total_nnr, double *olm) |
| set each element of T matrices | |
| void | build_ST_new (ForceStressArrays &fsr, const char &dtype, const bool &cal_deri, const bool &cal_stress, const UnitCell &ucell, const LCAO_Orbitals &orb, const Parallel_Orbitals &pv, const TwoCenterBundle &two_center_bundle, const Grid_Driver *GridD, double *SHlocR, bool cal_syns=false, double dmax=0.0) |
| set the elements of S and T matrices | |
| void | zeros_HSR (const char &mtype, LCAO_HS_Arrays &HS_arrays) |
| set zeros for HSR matrices | |
| template<typename T> | |
| void | set_mat2d (const int &global_ir, const int &global_ic, const T &v, const Parallel_Orbitals &pv, T *mat) |
| void | sscal_ (const int *N, const float *alpha, float *X, const int *incX) |
| void | dscal_ (const int *N, const double *alpha, double *X, const int *incX) |
| void | cscal_ (const int *N, const std::complex< float > *alpha, std::complex< float > *X, const int *incX) |
| void | zscal_ (const int *N, const std::complex< double > *alpha, std::complex< double > *X, const int *incX) |
| void | saxpy_ (const int *N, const float *alpha, const float *X, const int *incX, float *Y, const int *incY) |
| void | daxpy_ (const int *N, const double *alpha, const double *X, const int *incX, double *Y, const int *incY) |
| void | caxpy_ (const int *N, const std::complex< float > *alpha, const std::complex< float > *X, const int *incX, std::complex< float > *Y, const int *incY) |
| void | zaxpy_ (const int *N, const std::complex< double > *alpha, const std::complex< double > *X, const int *incX, std::complex< double > *Y, const int *incY) |
| void | scopy_ (const int *n, const float *a, const int *incx, float *b, const int *incy) |
| void | dcopy_ (const int *n, const double *a, const int *incx, double *b, const int *incy) |
| void | ccopy_ (const int *n, const std::complex< float > *a, const int *incx, std::complex< float > *b, const int *incy) |
| void | zcopy_ (const int *n, const std::complex< double > *a, const int *incx, std::complex< double > *b, const int *incy) |
| float | sdot_ (const int *N, const float *X, const int *incX, const float *Y, const int *incY) |
| double | ddot_ (const int *N, const double *X, const int *incX, const double *Y, const int *incY) |
| float | snrm2_ (const int *n, const float *X, const int *incX) |
| double | dnrm2_ (const int *n, const double *X, const int *incX) |
| float | scnrm2_ (const int *n, const std::complex< float > *X, const int *incX) |
| double | dznrm2_ (const int *n, const std::complex< double > *X, const int *incX) |
| void | sgemv_ (const char *transa, const int *m, const int *n, const float *alpha, const float *a, const int *lda, const float *x, const int *incx, const float *beta, float *y, const int *incy) |
| void | dgemv_ (const char *transa, const int *m, const int *n, const double *alpha, const double *a, const int *lda, const double *x, const int *incx, const double *beta, double *y, const int *incy) |
| void | cgemv_ (const char *trans, const int *m, const int *n, const std::complex< float > *alpha, const std::complex< float > *a, const int *lda, const std::complex< float > *x, const int *incx, const std::complex< float > *beta, std::complex< float > *y, const int *incy) |
| void | zgemv_ (const char *trans, const int *m, const int *n, const std::complex< double > *alpha, const std::complex< double > *a, const int *lda, const std::complex< double > *x, const int *incx, const std::complex< double > *beta, std::complex< double > *y, const int *incy) |
| void | dsymv_ (const char *uplo, const int *n, const double *alpha, const double *a, const int *lda, const double *x, const int *incx, const double *beta, double *y, const int *incy) |
| void | dger_ (const int *m, const int *n, const double *alpha, const double *x, const int *incx, const double *y, const int *incy, double *a, const int *lda) |
| void | zgerc_ (const int *m, const int *n, const std::complex< double > *alpha, const std::complex< double > *x, const int *incx, const std::complex< double > *y, const int *incy, std::complex< double > *a, const int *lda) |
| void | ctrmm_ (const char *side, const char *uplo, const char *trans, const char *diag, const int *m, const int *n, const std::complex< float > *alpha, const std::complex< float > *a, const int *lda, std::complex< float > *b, const int *ldb) |
| void | ztrmm_ (const char *side, const char *uplo, const char *trans, const char *diag, const int *m, const int *n, const std::complex< double > *alpha, const std::complex< double > *a, const int *lda, std::complex< double > *b, const int *ldb) |
| void | sgemm_ (const char *transa, const char *transb, const int *m, const int *n, const int *k, const float *alpha, const float *a, const int *lda, const float *b, const int *ldb, const float *beta, float *c, const int *ldc) |
| void | dgemm_ (const char *transa, const char *transb, const int *m, const int *n, const int *k, const double *alpha, const double *a, const int *lda, const double *b, const int *ldb, const double *beta, double *c, const int *ldc) |
| void | cgemm_ (const char *transa, const char *transb, const int *m, const int *n, const int *k, const std::complex< float > *alpha, const std::complex< float > *a, const int *lda, const std::complex< float > *b, const int *ldb, const std::complex< float > *beta, std::complex< float > *c, const int *ldc) |
| void | zgemm_ (const char *transa, const char *transb, const int *m, const int *n, const int *k, const std::complex< double > *alpha, const std::complex< double > *a, const int *lda, const std::complex< double > *b, const int *ldb, const std::complex< double > *beta, std::complex< double > *c, const int *ldc) |
| void | ssymm_ (const char *side, const char *uplo, const int *m, const int *n, const float *alpha, const float *a, const int *lda, const float *b, const int *ldb, const float *beta, float *c, const int *ldc) |
| void | dsymm_ (const char *side, const char *uplo, const int *m, const int *n, const double *alpha, const double *a, const int *lda, const double *b, const int *ldb, const double *beta, double *c, const int *ldc) |
| void | csymm_ (const char *side, const char *uplo, const int *m, const int *n, const std::complex< float > *alpha, const std::complex< float > *a, const int *lda, const std::complex< float > *b, const int *ldb, const std::complex< float > *beta, std::complex< float > *c, const int *ldc) |
| void | zsymm_ (const char *side, const char *uplo, const int *m, const int *n, const std::complex< double > *alpha, const std::complex< double > *a, const int *lda, const std::complex< double > *b, const int *ldb, const std::complex< double > *beta, std::complex< double > *c, const int *ldc) |
| void | chemm_ (const char *side, const char *uplo, const int *m, const int *n, const std::complex< float > *alpha, const std::complex< float > *a, const int *lda, const std::complex< float > *b, const int *ldb, const std::complex< float > *beta, std::complex< float > *c, const int *ldc) |
| void | zhemm_ (const char *side, const char *uplo, const int *m, const int *n, const std::complex< double > *alpha, const std::complex< double > *a, const int *lda, const std::complex< double > *b, const int *ldb, const std::complex< double > *beta, std::complex< double > *c, const int *ldc) |
| void | dtrsm_ (const char *side, const char *uplo, const char *transa, const char *diag, const int *m, const int *n, const double *alpha, const double *a, const int *lda, double *b, const int *ldb) |
| void | ztrsm_ (const char *side, const char *uplo, const char *transa, const char *diag, const int *m, const int *n, const std::complex< double > *alpha, const std::complex< double > *a, const int *lda, std::complex< double > *b, const int *ldb) |
| void | cherk_ (const char *uplo, const char *trans, const int *n, const int *k, const float *alpha, const std::complex< float > *a, const int *lda, const float *beta, std::complex< float > *c, const int *ldc) |
| void | zherk_ (const char *uplo, const char *trans, const int *n, const int *k, const double *alpha, const std::complex< double > *a, const int *lda, const double *beta, std::complex< double > *c, const int *ldc) |
| void | dsyrk_ (const char *uplo, const char *trans, const int *n, const int *k, const double *alpha, const double *a, const int *lda, const double *beta, double *c, const int *ldc) |
| void | filter_adjs (const std::vector< bool > &is_adj, AdjacentAtomInfo &adjs) |
| Filter adjacent atoms based on boolean mask. | |
| template<typename TK> | |
| void | set_psi_occ_dm_chg (const K_Vectors &kv, psi::Psi< TK > *&psi, const Parallel_Orbitals &pv, elecstate::ElecState *pelec, module_dm::Setup_DM< TK > &dmat, Charge &chr, const Input_para &inp) |
| set up wave functions, occupation numbers, density matrix and charge density | |
| template<typename TK> | |
| void | set_pot (UnitCell &ucell, K_Vectors &kv, Structure_Factor &sf, const ModulePW::PW_Basis &pw_rho, const ModulePW::PW_Basis &pw_rhod, elecstate::ElecState *pelec, const LCAO_Orbitals &orb, Parallel_Orbitals &pv, pseudopot_cell_vl &locpp, Plus_U_Base &dftu, surchem &solvent, Exx_NAO< TK > &exx_nao, Setup_DeePKS< TK > &deepks, const Input_para &inp, Exx_Info &exx_info) |
| set up potentials, including local pseudopotentials, +U potential, solvent potential, exx potential and deepks potential | |
| template<typename TK> | |
| void | init_dm_from_file (const std::string &readin_dir, const int nspin, module_dm::Setup_DM< TK > &dmat, const UnitCell &ucell, const Parallel_Orbitals *pv) |
| read in DMR from file, and save it into dmat | |
| template<typename TK> | |
| void | init_chg_dm (const std::string &readin_dir, const int nspin, module_dm::Setup_DM< TK > &dmat, const UnitCell &ucell, const Parallel_Orbitals *pv, Charge *chr, const K_Vectors &kv, const int istep, const int out_app_flag, const std::string &ks_solver) |
| initialize charge density from density matrix file (init_chg=dm) This function reads DMR from file and converts it to charge density | |
| template<typename TK> | |
| void | init_hr_from_file (const std::string hrfile, hamilt::HContainer< TK > *hmat, const UnitCell &ucell, const Parallel_Orbitals *pv) |
| read in HR from file, and save it into hmat | |
| template<typename TK, typename TR> | |
| void | init_chg_hr (const std::string &readin_dir, const int nspin, hamilt::Hamilt< TK > *p_hamilt, const UnitCell &ucell, const Parallel_Orbitals *pv, psi::Psi< TK > &psi, elecstate::ElecState *pelec, module_dm::DensityMatrix< TK, double > &dm, Charge &chr, const std::string &ks_solver) |
| initialize charge density from Hamiltonian matrix file (init_chg=hr) Reads HR from file(s), diagonalizes to get wavefunctions, then computes charge density. For nspin=2, reads both hrs1_nao.csr (spin-up) and hrs2_nao.csr (spin-down) into the two halves of HamiltLCAO::hRS2. | |
| template void | set_mat2d< double > (const int &global_ir, const int &global_ic, const double &v, const Parallel_Orbitals &pv, double *HSloc) |
| template void | set_mat2d< std::complex< double > > (const int &global_ir, const int &global_ic, const std::complex< double > &v, const Parallel_Orbitals &pv, std::complex< double > *HSloc) |
| void | dm2rho (std::vector< hamilt::HContainer< double > * > &dmr, const int nspin, Charge *chr, const double nelec, const double omega, const bool skip_normalize) |
| void | dm2tau (std::vector< hamilt::HContainer< double > * > &dmr, const int nspin, Charge *chr) |
| typedef std::vector<FAtom> LCAO_domain::AtomMap |
| typedef std::tuple<int, int, int, int> LCAO_domain::key_tuple |
| void LCAO_domain::allocate_dm | ( | module_dm::Setup_DM< TK > & | dmat, |
| const K_Vectors * | kv, | ||
| const Parallel_Orbitals * | pv, | ||
| const int | nspin ) |
| template void LCAO_domain::allocate_dm< double > | ( | module_dm::Setup_DM< double > & | , |
| const K_Vectors * | , | ||
| const Parallel_Orbitals * | , | ||
| const int | ) |
| template void LCAO_domain::allocate_dm< std::complex< double > > | ( | module_dm::Setup_DM< std::complex< double > > & | , |
| const K_Vectors * | , | ||
| const Parallel_Orbitals * | , | ||
| const int | ) |
| void LCAO_domain::assemble_print_force | ( | const UnitCell & | ucell, |
| const bool | istestf, | ||
| const vdw::VdwResult * | vdw_result, | ||
| const Exx_Info & | exx_info, | ||
| ModuleSymmetry::Symmetry * | symm, | ||
| const std::string & | dpks_out_type, | ||
| const LCAOForceParts & | parts, | ||
| const double | force_threshold, | ||
| ModuleBase::matrix & | fcs ) |
| void LCAO_domain::assemble_print_stress | ( | const UnitCell & | ucell, |
| const bool | istests, | ||
| const vdw::VdwResult * | vdw_result, | ||
| const Exx_Info & | exx_info, | ||
| ModuleSymmetry::Symmetry * | symm, | ||
| const std::string & | dpks_out_type, | ||
| const LCAOStressParts & | sparts, | ||
| ModuleBase::matrix & | scs ) |
| void LCAO_domain::build_Nonlocal_mu_new | ( | const Parallel_Orbitals & | pv, |
| ForceStressArrays & | fsr, | ||
| double * | HlocR, | ||
| const bool & | calc_deri, | ||
| const UnitCell & | ucell, | ||
| const LCAO_Orbitals & | orb, | ||
| const TwoCenterIntegrator & | intor_orb_beta, | ||
| const Grid_Driver * | GridD ) |
| void LCAO_domain::build_ST_new | ( | ForceStressArrays & | fsr, |
| const char & | dtype, | ||
| const bool & | cal_deri, | ||
| const bool & | cal_stress, | ||
| const UnitCell & | ucell, | ||
| const LCAO_Orbitals & | orb, | ||
| const Parallel_Orbitals & | pv, | ||
| const TwoCenterBundle & | two_center_bundle, | ||
| const Grid_Driver * | GridD, | ||
| double * | SHlocR, | ||
| bool | cal_syns = false, | ||
| double | dmax = 0.0 ) |
set the elements of S and T matrices
| void LCAO_domain::cal_deepks_fs | ( | const UnitCell & | ucell, |
| const Grid_Driver & | gd, | ||
| Parallel_Orbitals & | pv, | ||
| const LCAO_Orbitals & | orb, | ||
| const K_Vectors & | kv, | ||
| const bool | isforce, | ||
| const bool | isstress, | ||
| Setup_DeePKS< T > & | deepks, | ||
| LCAOForceParts & | parts, | ||
| LCAOStressParts & | sparts ) |
| template void LCAO_domain::cal_deepks_fs< double > | ( | const UnitCell & | , |
| const Grid_Driver & | , | ||
| Parallel_Orbitals & | , | ||
| const LCAO_Orbitals & | , | ||
| const K_Vectors & | , | ||
| const bool | , | ||
| const bool | , | ||
| Setup_DeePKS< double > & | , | ||
| LCAOForceParts & | , | ||
| LCAOStressParts & | ) |
| template void LCAO_domain::cal_deepks_fs< std::complex< double > > | ( | const UnitCell & | , |
| const Grid_Driver & | , | ||
| Parallel_Orbitals & | , | ||
| const LCAO_Orbitals & | , | ||
| const K_Vectors & | , | ||
| const bool | , | ||
| const bool | , | ||
| Setup_DeePKS< std::complex< double > > & | , | ||
| LCAOForceParts & | , | ||
| LCAOStressParts & | ) |
| void LCAO_domain::cal_dftu_fs | ( | UnitCell & | ucell, |
| const Grid_Driver & | gd, | ||
| Parallel_Orbitals & | pv, | ||
| const LCAO_Orbitals & | orb, | ||
| const K_Vectors & | kv, | ||
| module_dm::Setup_DM< T > & | dmat, | ||
| const TwoCenterBundle & | two_center_bundle, | ||
| Plus_U_Base & | dftu, | ||
| const bool | isforce, | ||
| const bool | isstress, | ||
| LCAOForceParts & | parts, | ||
| LCAOStressParts & | sparts ) |
atomic forces from DFT+U (Quxin version)
| template void LCAO_domain::cal_dftu_fs< double > | ( | UnitCell & | , |
| const Grid_Driver & | , | ||
| Parallel_Orbitals & | , | ||
| const LCAO_Orbitals & | , | ||
| const K_Vectors & | , | ||
| module_dm::Setup_DM< double > & | , | ||
| const TwoCenterBundle & | , | ||
| Plus_U_Base & | , | ||
| const bool | , | ||
| const bool | , | ||
| LCAOForceParts & | , | ||
| LCAOStressParts & | ) |
| template void LCAO_domain::cal_dftu_fs< std::complex< double > > | ( | UnitCell & | , |
| const Grid_Driver & | , | ||
| Parallel_Orbitals & | , | ||
| const LCAO_Orbitals & | , | ||
| const K_Vectors & | , | ||
| module_dm::Setup_DM< std::complex< double > > & | , | ||
| const TwoCenterBundle & | , | ||
| Plus_U_Base & | , | ||
| const bool | , | ||
| const bool | , | ||
| LCAOForceParts & | , | ||
| LCAOStressParts & | ) |
| void LCAO_domain::cal_exx_fs | ( | const UnitCell & | ucell, |
| const bool | isforce, | ||
| const bool | isstress, | ||
| const bool | is_rt, | ||
| const Exx_Info & | exx_info, | ||
| Exx_NAO< T > & | exx_nao, | ||
| LCAOForceParts & | parts, | ||
| LCAOStressParts & | sparts ) |
| template void LCAO_domain::cal_exx_fs< double > | ( | const UnitCell & | , |
| const bool | , | ||
| const bool | , | ||
| const bool | , | ||
| const Exx_Info & | , | ||
| Exx_NAO< double > & | , | ||
| LCAOForceParts & | , | ||
| LCAOStressParts & | ) |
| template void LCAO_domain::cal_exx_fs< std::complex< double > > | ( | const UnitCell & | , |
| const bool | , | ||
| const bool | , | ||
| const bool | , | ||
| const Exx_Info & | , | ||
| Exx_NAO< std::complex< double > > & | , | ||
| LCAOForceParts & | , | ||
| LCAOStressParts & | ) |
| void LCAO_domain::cal_vdw_fields_fs | ( | const vdw::VdwResult * | vdw_result, |
| UnitCell & | ucell, | ||
| surchem & | solvent, | ||
| ModulePW::PW_Basis * | rhopw, | ||
| const pseudopot_cell_vl & | locpp, | ||
| const bool | isforce, | ||
| const bool | isstress, | ||
| LCAOForceParts & | parts, | ||
| LCAOStressParts & | sparts, | ||
| const elecstate::TDFieldManager * | td_field ) |
forces and stress from vdw
external-field forces
| void LCAO_domain::caxpy_ | ( | const int * | N, |
| const std::complex< float > * | alpha, | ||
| const std::complex< float > * | X, | ||
| const int * | incX, | ||
| std::complex< float > * | Y, | ||
| const int * | incY ) |
| void LCAO_domain::ccopy_ | ( | const int * | n, |
| const std::complex< float > * | a, | ||
| const int * | incx, | ||
| std::complex< float > * | b, | ||
| const int * | incy ) |
| void LCAO_domain::cgemm_ | ( | const char * | transa, |
| const char * | transb, | ||
| const int * | m, | ||
| const int * | n, | ||
| const int * | k, | ||
| const std::complex< float > * | alpha, | ||
| const std::complex< float > * | a, | ||
| const int * | lda, | ||
| const std::complex< float > * | b, | ||
| const int * | ldb, | ||
| const std::complex< float > * | beta, | ||
| std::complex< float > * | c, | ||
| const int * | ldc ) |
| void LCAO_domain::cgemv_ | ( | const char * | trans, |
| const int * | m, | ||
| const int * | n, | ||
| const std::complex< float > * | alpha, | ||
| const std::complex< float > * | a, | ||
| const int * | lda, | ||
| const std::complex< float > * | x, | ||
| const int * | incx, | ||
| const std::complex< float > * | beta, | ||
| std::complex< float > * | y, | ||
| const int * | incy ) |
| void LCAO_domain::chemm_ | ( | const char * | side, |
| const char * | uplo, | ||
| const int * | m, | ||
| const int * | n, | ||
| const std::complex< float > * | alpha, | ||
| const std::complex< float > * | a, | ||
| const int * | lda, | ||
| const std::complex< float > * | b, | ||
| const int * | ldb, | ||
| const std::complex< float > * | beta, | ||
| std::complex< float > * | c, | ||
| const int * | ldc ) |
| void LCAO_domain::cherk_ | ( | const char * | uplo, |
| const char * | trans, | ||
| const int * | n, | ||
| const int * | k, | ||
| const float * | alpha, | ||
| const std::complex< float > * | a, | ||
| const int * | lda, | ||
| const float * | beta, | ||
| std::complex< float > * | c, | ||
| const int * | ldc ) |
| void LCAO_domain::cscal_ | ( | const int * | N, |
| const std::complex< float > * | alpha, | ||
| std::complex< float > * | X, | ||
| const int * | incX ) |
| void LCAO_domain::csymm_ | ( | const char * | side, |
| const char * | uplo, | ||
| const int * | m, | ||
| const int * | n, | ||
| const std::complex< float > * | alpha, | ||
| const std::complex< float > * | a, | ||
| const int * | lda, | ||
| const std::complex< float > * | b, | ||
| const int * | ldb, | ||
| const std::complex< float > * | beta, | ||
| std::complex< float > * | c, | ||
| const int * | ldc ) |
| void LCAO_domain::ctrmm_ | ( | const char * | side, |
| const char * | uplo, | ||
| const char * | trans, | ||
| const char * | diag, | ||
| const int * | m, | ||
| const int * | n, | ||
| const std::complex< float > * | alpha, | ||
| const std::complex< float > * | a, | ||
| const int * | lda, | ||
| std::complex< float > * | b, | ||
| const int * | ldb ) |
| void LCAO_domain::daxpy_ | ( | const int * | N, |
| const double * | alpha, | ||
| const double * | X, | ||
| const int * | incX, | ||
| double * | Y, | ||
| const int * | incY ) |
| void LCAO_domain::dcopy_ | ( | const int * | n, |
| const double * | a, | ||
| const int * | incx, | ||
| double * | b, | ||
| const int * | incy ) |
| double LCAO_domain::ddot_ | ( | const int * | N, |
| const double * | X, | ||
| const int * | incX, | ||
| const double * | Y, | ||
| const int * | incY ) |
| void LCAO_domain::DeePKS_init | ( | const UnitCell & | ucell, |
| Parallel_Orbitals & | pv, | ||
| const int & | nks, | ||
| const LCAO_Orbitals & | orb, | ||
| LCAO_Deepks< T > & | ld, | ||
| std::ofstream & | ofs ) |
| template void LCAO_domain::DeePKS_init< double > | ( | const UnitCell & | ucell, |
| Parallel_Orbitals & | pv, | ||
| const int & | nks, | ||
| const LCAO_Orbitals & | orb, | ||
| LCAO_Deepks< double > & | ld, | ||
| std::ofstream & | ofs ) |
| template void LCAO_domain::DeePKS_init< std::complex< double > > | ( | const UnitCell & | ucell, |
| Parallel_Orbitals & | pv, | ||
| const int & | nks, | ||
| const LCAO_Orbitals & | orb, | ||
| LCAO_Deepks< std::complex< double > > & | ld, | ||
| std::ofstream & | ofs ) |
| void LCAO_domain::dgemm_ | ( | const char * | transa, |
| const char * | transb, | ||
| const int * | m, | ||
| const int * | n, | ||
| const int * | k, | ||
| const double * | alpha, | ||
| const double * | a, | ||
| const int * | lda, | ||
| const double * | b, | ||
| const int * | ldb, | ||
| const double * | beta, | ||
| double * | c, | ||
| const int * | ldc ) |
| void LCAO_domain::dgemv_ | ( | const char * | transa, |
| const int * | m, | ||
| const int * | n, | ||
| const double * | alpha, | ||
| const double * | a, | ||
| const int * | lda, | ||
| const double * | x, | ||
| const int * | incx, | ||
| const double * | beta, | ||
| double * | y, | ||
| const int * | incy ) |
| void LCAO_domain::dger_ | ( | const int * | m, |
| const int * | n, | ||
| const double * | alpha, | ||
| const double * | x, | ||
| const int * | incx, | ||
| const double * | y, | ||
| const int * | incy, | ||
| double * | a, | ||
| const int * | lda ) |
| void LCAO_domain::dm2rho | ( | std::vector< hamilt::HContainer< double > * > & | dmr, |
| const int | nspin, | ||
| Charge * | chr, | ||
| const double | nelec, | ||
| const double | omega, | ||
| const bool | skip_normalize ) |
| void LCAO_domain::dm2tau | ( | std::vector< hamilt::HContainer< double > * > & | dmr, |
| const int | nspin, | ||
| Charge * | chr ) |
| double LCAO_domain::dnrm2_ | ( | const int * | n, |
| const double * | X, | ||
| const int * | incX ) |
| void LCAO_domain::dscal_ | ( | const int * | N, |
| const double * | alpha, | ||
| double * | X, | ||
| const int * | incX ) |
| void LCAO_domain::dsymm_ | ( | const char * | side, |
| const char * | uplo, | ||
| const int * | m, | ||
| const int * | n, | ||
| const double * | alpha, | ||
| const double * | a, | ||
| const int * | lda, | ||
| const double * | b, | ||
| const int * | ldb, | ||
| const double * | beta, | ||
| double * | c, | ||
| const int * | ldc ) |
| void LCAO_domain::dsymv_ | ( | const char * | uplo, |
| const int * | n, | ||
| const double * | alpha, | ||
| const double * | a, | ||
| const int * | lda, | ||
| const double * | x, | ||
| const int * | incx, | ||
| const double * | beta, | ||
| double * | y, | ||
| const int * | incy ) |
| void LCAO_domain::dsyrk_ | ( | const char * | uplo, |
| const char * | trans, | ||
| const int * | n, | ||
| const int * | k, | ||
| const double * | alpha, | ||
| const double * | a, | ||
| const int * | lda, | ||
| const double * | beta, | ||
| double * | c, | ||
| const int * | ldc ) |
| void LCAO_domain::dtrsm_ | ( | const char * | side, |
| const char * | uplo, | ||
| const char * | transa, | ||
| const char * | diag, | ||
| const int * | m, | ||
| const int * | n, | ||
| const double * | alpha, | ||
| const double * | a, | ||
| const int * | lda, | ||
| double * | b, | ||
| const int * | ldb ) |
| double LCAO_domain::dznrm2_ | ( | const int * | n, |
| const std::complex< double > * | X, | ||
| const int * | incX ) |
| void LCAO_domain::filter_adjs | ( | const std::vector< bool > & | is_adj, |
| AdjacentAtomInfo & | adjs ) |
Filter adjacent atoms based on boolean mask.
| is_adj | boolean mask indicating which atoms are adjacent |
| adjs | adjacent atom information to filter |
| void LCAO_domain::init_basis_lcao | ( | Parallel_Orbitals & | pv, |
| const double & | onsite_radius, | ||
| const double & | lcao_ecut, | ||
| const double & | lcao_dk, | ||
| const double & | lcao_dr, | ||
| const double & | lcao_rmax, | ||
| UnitCell & | ucell, | ||
| TwoCenterBundle & | two_center_bundle, | ||
| LCAO_Orbitals & | orb ) |
| void LCAO_domain::init_chg_dm | ( | const std::string & | readin_dir, |
| const int | nspin, | ||
| module_dm::Setup_DM< TK > & | dmat, | ||
| const UnitCell & | ucell, | ||
| const Parallel_Orbitals * | pv, | ||
| Charge * | chr, | ||
| const K_Vectors & | kv, | ||
| const int | istep, | ||
| const int | out_app_flag, | ||
| const std::string & | ks_solver ) |
initialize charge density from density matrix file (init_chg=dm) This function reads DMR from file and converts it to charge density
| readin_dir | directory containing dmrs*_nao.csr files |
| nspin | number of spin components (1 or 2) |
| dmat | density matrix object |
| ucell | unit cell |
| pv | parallel orbitals |
| chr | charge density object |
| kv | k-point metadata used to locate and validate DM(k) files |
| istep | ionic step of the DM(k) record to read |
| out_app_flag | output mode used by the run that wrote DM(k) |
| ks_solver | solver that determines the destination DM(k) storage order |
| void LCAO_domain::init_chg_hr | ( | const std::string & | readin_dir, |
| const int | nspin, | ||
| hamilt::Hamilt< TK > * | p_hamilt, | ||
| const UnitCell & | ucell, | ||
| const Parallel_Orbitals * | pv, | ||
| psi::Psi< TK > & | psi, | ||
| elecstate::ElecState * | pelec, | ||
| module_dm::DensityMatrix< TK, double > & | dm, | ||
| Charge & | chr, | ||
| const std::string & | ks_solver ) |
initialize charge density from Hamiltonian matrix file (init_chg=hr) Reads HR from file(s), diagonalizes to get wavefunctions, then computes charge density. For nspin=2, reads both hrs1_nao.csr (spin-up) and hrs2_nao.csr (spin-down) into the two halves of HamiltLCAO::hRS2.
| TK | k-space type (double or complex<double>) |
| TR | real-space type (double) |
| readin_dir | directory containing hrs*_nao.csr files |
| nspin | number of spin components |
| p_hamilt | pointer to Hamilt base class (will be dynamic_cast to HamiltLCAO) |
| ucell | unit cell |
| pv | parallel orbitals |
| psi | wave function object |
| pelec | electronic state |
| dm | density matrix |
| chr | charge density |
| ks_solver | solver method name |
| void LCAO_domain::init_dm_from_file | ( | const std::string & | readin_dir, |
| const int | nspin, | ||
| module_dm::Setup_DM< TK > & | dmat, | ||
| const UnitCell & | ucell, | ||
| const Parallel_Orbitals * | pv ) |
read in DMR from file, and save it into dmat
| readin_dir | directory containing dmrs*_nao.csr files |
| nspin | number of spin components (1 or 2) |
| void LCAO_domain::init_hr_from_file | ( | const std::string | hrfile, |
| hamilt::HContainer< TK > * | hmat, | ||
| const UnitCell & | ucell, | ||
| const Parallel_Orbitals * | pv ) |
read in HR from file, and save it into hmat
| void LCAO_domain::saxpy_ | ( | const int * | N, |
| const float * | alpha, | ||
| const float * | X, | ||
| const int * | incX, | ||
| float * | Y, | ||
| const int * | incY ) |
| float LCAO_domain::scnrm2_ | ( | const int * | n, |
| const std::complex< float > * | X, | ||
| const int * | incX ) |
| void LCAO_domain::scopy_ | ( | const int * | n, |
| const float * | a, | ||
| const int * | incx, | ||
| float * | b, | ||
| const int * | incy ) |
| float LCAO_domain::sdot_ | ( | const int * | N, |
| const float * | X, | ||
| const int * | incX, | ||
| const float * | Y, | ||
| const int * | incY ) |
| void LCAO_domain::set_force | ( | const Parallel_Orbitals & | pv, |
| const int & | iw1_all, | ||
| const int & | iw2_all, | ||
| const double & | vx, | ||
| const double & | vy, | ||
| const double & | vz, | ||
| const char & | dtype, | ||
| double * | dsloc_x, | ||
| double * | dsloc_y, | ||
| double * | dsloc_z, | ||
| double * | dhloc_fixed_x, | ||
| double * | dhloc_fixed_y, | ||
| double * | dhloc_fixed_z ) |
set the elements of force-related matrices in LCAO method
| void LCAO_domain::set_mat2d | ( | const int & | global_ir, |
| const int & | global_ic, | ||
| const T & | v, | ||
| const Parallel_Orbitals & | pv, | ||
| T * | mat ) |
| template void LCAO_domain::set_mat2d< double > | ( | const int & | global_ir, |
| const int & | global_ic, | ||
| const double & | v, | ||
| const Parallel_Orbitals & | pv, | ||
| double * | HSloc ) |
| template void LCAO_domain::set_mat2d< std::complex< double > > | ( | const int & | global_ir, |
| const int & | global_ic, | ||
| const std::complex< double > & | v, | ||
| const Parallel_Orbitals & | pv, | ||
| std::complex< double > * | HSloc ) |
| void LCAO_domain::set_pot | ( | UnitCell & | ucell, |
| K_Vectors & | kv, | ||
| Structure_Factor & | sf, | ||
| const ModulePW::PW_Basis & | pw_rho, | ||
| const ModulePW::PW_Basis & | pw_rhod, | ||
| elecstate::ElecState * | pelec, | ||
| const LCAO_Orbitals & | orb, | ||
| Parallel_Orbitals & | pv, | ||
| pseudopot_cell_vl & | locpp, | ||
| Plus_U_Base & | dftu, | ||
| surchem & | solvent, | ||
| Exx_NAO< TK > & | exx_nao, | ||
| Setup_DeePKS< TK > & | deepks, | ||
| const Input_para & | inp, | ||
| Exx_Info & | exx_info ) |
set up potentials, including local pseudopotentials, +U potential, solvent potential, exx potential and deepks potential
1) init local pseudopotentials
2) init potentials
4) init exact exchange calculations
5) init deepks
| void LCAO_domain::set_psi_occ_dm_chg | ( | const K_Vectors & | kv, |
| psi::Psi< TK > *& | psi, | ||
| const Parallel_Orbitals & | pv, | ||
| elecstate::ElecState * | pelec, | ||
| module_dm::Setup_DM< TK > & | dmat, | ||
| Charge & | chr, | ||
| const Input_para & | inp ) |
set up wave functions, occupation numbers, density matrix and charge density
1) init electronic wave function psi
2) read psi from file
3) set occupations, tddft does not need to set occupations in the first scf
4) init DMK, but DMR is constructed in before_scf()
| void LCAO_domain::sgemm_ | ( | const char * | transa, |
| const char * | transb, | ||
| const int * | m, | ||
| const int * | n, | ||
| const int * | k, | ||
| const float * | alpha, | ||
| const float * | a, | ||
| const int * | lda, | ||
| const float * | b, | ||
| const int * | ldb, | ||
| const float * | beta, | ||
| float * | c, | ||
| const int * | ldc ) |
| void LCAO_domain::sgemv_ | ( | const char * | transa, |
| const int * | m, | ||
| const int * | n, | ||
| const float * | alpha, | ||
| const float * | a, | ||
| const int * | lda, | ||
| const float * | x, | ||
| const int * | incx, | ||
| const float * | beta, | ||
| float * | y, | ||
| const int * | incy ) |
| void LCAO_domain::single_deriv | ( | const ST_env & | env, |
| const ST_elem & | e, | ||
| ForceStressArrays & | fsr, | ||
| int & | nnr, | ||
| int & | total_nnr, | ||
| double * | olm ) |
set each element of T matrices
| void LCAO_domain::single_overlap | ( | const ST_env & | env, |
| const ST_elem & | e, | ||
| int & | nnr, | ||
| int & | total_nnr, | ||
| double * | olm, | ||
| double * | HSloc ) |
set each element without derivatives
| float LCAO_domain::snrm2_ | ( | const int * | n, |
| const float * | X, | ||
| const int * | incX ) |
| void LCAO_domain::sscal_ | ( | const int * | N, |
| const float * | alpha, | ||
| float * | X, | ||
| const int * | incX ) |
| void LCAO_domain::ssymm_ | ( | const char * | side, |
| const char * | uplo, | ||
| const int * | m, | ||
| const int * | n, | ||
| const float * | alpha, | ||
| const float * | a, | ||
| const int * | lda, | ||
| const float * | b, | ||
| const int * | ldb, | ||
| const float * | beta, | ||
| float * | c, | ||
| const int * | ldc ) |
| void LCAO_domain::zaxpy_ | ( | const int * | N, |
| const std::complex< double > * | alpha, | ||
| const std::complex< double > * | X, | ||
| const int * | incX, | ||
| std::complex< double > * | Y, | ||
| const int * | incY ) |
| void LCAO_domain::zcopy_ | ( | const int * | n, |
| const std::complex< double > * | a, | ||
| const int * | incx, | ||
| std::complex< double > * | b, | ||
| const int * | incy ) |
| void LCAO_domain::zeros_HSR | ( | const char & | mtype, |
| LCAO_HS_Arrays & | HS_arrays ) |
set zeros for HSR matrices
| void LCAO_domain::zgemm_ | ( | const char * | transa, |
| const char * | transb, | ||
| const int * | m, | ||
| const int * | n, | ||
| const int * | k, | ||
| const std::complex< double > * | alpha, | ||
| const std::complex< double > * | a, | ||
| const int * | lda, | ||
| const std::complex< double > * | b, | ||
| const int * | ldb, | ||
| const std::complex< double > * | beta, | ||
| std::complex< double > * | c, | ||
| const int * | ldc ) |
| void LCAO_domain::zgemv_ | ( | const char * | trans, |
| const int * | m, | ||
| const int * | n, | ||
| const std::complex< double > * | alpha, | ||
| const std::complex< double > * | a, | ||
| const int * | lda, | ||
| const std::complex< double > * | x, | ||
| const int * | incx, | ||
| const std::complex< double > * | beta, | ||
| std::complex< double > * | y, | ||
| const int * | incy ) |
| void LCAO_domain::zgerc_ | ( | const int * | m, |
| const int * | n, | ||
| const std::complex< double > * | alpha, | ||
| const std::complex< double > * | x, | ||
| const int * | incx, | ||
| const std::complex< double > * | y, | ||
| const int * | incy, | ||
| std::complex< double > * | a, | ||
| const int * | lda ) |
| void LCAO_domain::zhemm_ | ( | const char * | side, |
| const char * | uplo, | ||
| const int * | m, | ||
| const int * | n, | ||
| const std::complex< double > * | alpha, | ||
| const std::complex< double > * | a, | ||
| const int * | lda, | ||
| const std::complex< double > * | b, | ||
| const int * | ldb, | ||
| const std::complex< double > * | beta, | ||
| std::complex< double > * | c, | ||
| const int * | ldc ) |
| void LCAO_domain::zherk_ | ( | const char * | uplo, |
| const char * | trans, | ||
| const int * | n, | ||
| const int * | k, | ||
| const double * | alpha, | ||
| const std::complex< double > * | a, | ||
| const int * | lda, | ||
| const double * | beta, | ||
| std::complex< double > * | c, | ||
| const int * | ldc ) |
| void LCAO_domain::zscal_ | ( | const int * | N, |
| const std::complex< double > * | alpha, | ||
| std::complex< double > * | X, | ||
| const int * | incX ) |
| void LCAO_domain::zsymm_ | ( | const char * | side, |
| const char * | uplo, | ||
| const int * | m, | ||
| const int * | n, | ||
| const std::complex< double > * | alpha, | ||
| const std::complex< double > * | a, | ||
| const int * | lda, | ||
| const std::complex< double > * | b, | ||
| const int * | ldb, | ||
| const std::complex< double > * | beta, | ||
| std::complex< double > * | c, | ||
| const int * | ldc ) |
| void LCAO_domain::ztrmm_ | ( | const char * | side, |
| const char * | uplo, | ||
| const char * | trans, | ||
| const char * | diag, | ||
| const int * | m, | ||
| const int * | n, | ||
| const std::complex< double > * | alpha, | ||
| const std::complex< double > * | a, | ||
| const int * | lda, | ||
| std::complex< double > * | b, | ||
| const int * | ldb ) |
| void LCAO_domain::ztrsm_ | ( | const char * | side, |
| const char * | uplo, | ||
| const char * | transa, | ||
| const char * | diag, | ||
| const int * | m, | ||
| const int * | n, | ||
| const std::complex< double > * | alpha, | ||
| const std::complex< double > * | a, | ||
| const int * | lda, | ||
| std::complex< double > * | b, | ||
| const int * | ldb ) |