ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
chg_atomic_detail.h
Go to the documentation of this file.
1#ifndef CHG_ATOMIC_DETAIL_H
2#define CHG_ATOMIC_DETAIL_H
3
4// Internal helpers for atomic_rho (chg_atomic.cpp).
5// Not part of the public module_charge API: only chg_atomic.cpp and
6// chg_atomic_inner.cpp are expected to include this header.
7
8#include <vector>
9
13
14#include <ostream>
15
16namespace module_charge
17{
18namespace detail
19{
20
30
32std::vector<double> compute_rhoatm(const Atom& atom,
33 int mesh,
34 std::ostream& ofs_warning);
35
37std::vector<double> compute_rho_lgl(const Atom& atom,
38 const ModulePW::PW_Basis* rhopw,
39 const UnitCell& ucell,
40 const std::vector<double>& rhoatm,
41 int test_charge,
42 double omega,
43 std::ostream& ofs_warning);
44
47
50 int startmag_type,
51 double start_mag,
52 const Atom& atom);
53
56 double start_mag,
57 const Atom& atom,
58 bool domag,
59 bool domag_z);
60
63 const Atom& atom,
64 bool domag,
65 bool domag_z);
66
69void normalize_and_check(double** rho_in,
70 const ModuleBase::ComplexMatrix& rho_g3d,
71 const ModulePW::PW_Basis* rhopw,
72 int spin_number_need,
73 double omega,
74 std::ostream& ofs_warning,
75 double nelec);
76
77} // namespace detail
78} // namespace module_charge
79
80#endif // CHG_ATOMIC_DETAIL_H
Atom class for storing atom information.
Definition atom_spec.h:14
Definition complexmatrix.h:11
A class which can convert a function of "r" to the corresponding linear superposition of plane waves ...
Definition pw_basis.h:60
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition chg_atomic_detail.h:19
void fill_rho_g3d_nspin4_type1(RhoG3dCtx &ctx, double start_mag, const Atom &atom, bool domag, bool domag_z)
Fill rho_g3d for nspin==4, startmag_type==1 case.
Definition chg_atomic_inner.cpp:243
void fill_rho_g3d_nspin4_type2(RhoG3dCtx &ctx, const Atom &atom, bool domag, bool domag_z)
Fill rho_g3d for nspin==4, startmag_type==2 case.
Definition chg_atomic_inner.cpp:284
std::vector< double > compute_rho_lgl(const Atom &atom, const ModulePW::PW_Basis *rhopw, const UnitCell &ucell, const std::vector< double > &rhoatm, int test_charge, double omega, std::ostream &ofs_warning)
Compute the 1D charge in G space from rhoatm.
Definition chg_atomic_inner.cpp:81
void fill_rho_g3d_nspin2(RhoG3dCtx &ctx, int startmag_type, double start_mag, const Atom &atom)
Fill rho_g3d for nspin==2 case (both startmag_type 1 and 2).
Definition chg_atomic_inner.cpp:191
std::vector< double > compute_rhoatm(const Atom &atom, int mesh, std::ostream &ofs_warning)
Compute the radial atomic charge density rhoatm from pseudopotential.
Definition chg_atomic_inner.cpp:22
void normalize_and_check(double **rho_in, const ModuleBase::ComplexMatrix &rho_g3d, const ModulePW::PW_Basis *rhopw, int spin_number_need, double omega, std::ostream &ofs_warning, double nelec)
Definition chg_atomic_inner.cpp:339
void fill_rho_g3d_nspin1(RhoG3dCtx &ctx)
Fill rho_g3d for nspin==1 case.
Definition chg_atomic_inner.cpp:178
Charge-density symmetrization free functions.
Definition charge.h:18
Context bundling commonly-used data for rho_g3d fill helpers.
Definition chg_atomic_detail.h:23
int it
Definition chg_atomic_detail.h:28
const ModulePW::PW_Basis * rhopw
Definition chg_atomic_detail.h:27
const ModuleBase::ComplexMatrix & strucFac
Definition chg_atomic_detail.h:25
ModuleBase::ComplexMatrix & rho_g3d
Definition chg_atomic_detail.h:24
const std::vector< double > & rho_lgl
Definition chg_atomic_detail.h:26