ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
chg_atomic.h
Go to the documentation of this file.
1#ifndef CHG_ATOMIC_H
2#define CHG_ATOMIC_H
3
6
7#include <ostream>
8
9class UnitCell;
10
11namespace module_charge
12{
13
16{
17 double nelec;
19 bool domag;
20 bool domag_z;
21 std::ostream& ofs_warning;
22};
23
24// Superposition of atomic charges contained in the array rho_at
25// (read from pseudopotential files).
26void atomic_rho(const int spin_number_need,
27 const double& omega,
28 double** rho_in,
29 const ModuleBase::ComplexMatrix& strucFac,
30 const UnitCell& ucell,
31 const ModulePW::PW_Basis* rhopw,
32 const AtomicRhoCfg& cfg);
33
34} // namespace module_charge
35
36#endif // CHG_ATOMIC_H
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
Charge-density symmetrization free functions.
Definition charge.h:18
void atomic_rho(const int spin_number_need, const double &omega, double **rho_in, const ModuleBase::ComplexMatrix &strucFac, const UnitCell &ucell, const ModulePW::PW_Basis *rhopw, const AtomicRhoCfg &cfg)
Definition chg_atomic.cpp:16
Configuration for atomic_rho, replacing GlobalV/PARAM reads.
Definition chg_atomic.h:16
bool domag_z
whether to compute z-only magnetization
Definition chg_atomic.h:20
int test_charge
verbosity flag (PARAM.inp.test_charge)
Definition chg_atomic.h:18
bool domag
whether to compute magnetization (PARAM.globalv.domag)
Definition chg_atomic.h:19
double nelec
target total electron number (PARAM.inp.nelec)
Definition chg_atomic.h:17
std::ostream & ofs_warning
warning output stream
Definition chg_atomic.h:21