ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
module_charge::InitRhoCfg Struct Reference

#include <chg_init.h>

Collaboration diagram for module_charge::InitRhoCfg:

Public Attributes

std::string init_chg
 charge initialization mode (PARAM.inp.init_chg)
std::string suffix
 system suffix for file names (PARAM.inp.suffix)
std::string esolver_type
 esolver type; "sdft" selects the band-group rank (PARAM.inp.esolver_type)
std::string global_readin_dir
 directory to read files from (PARAM.globalv.global_readin_dir)
double nelec = 0.0
 target total electron number (PARAM.inp.nelec)
int nbands = 0
 number of bands for wfc-based init (PARAM.inp.nbands)
int test_charge = 0
 verbosity flag (PARAM.inp.test_charge)
bool domag = false
 whether to compute magnetization (PARAM.globalv.domag)
bool domag_z = false
 whether to compute z-only magnetization (PARAM.globalv.domag_z)
bool meta_gga = false
 whether the functional is meta-GGA (XC_Functional::get_ked_flag())
int npol = 1
 number of polarization components (PARAM.globalv.npol)

Detailed Description

Configuration for charge-density initialization, replacing direct PARAM reads in init_rho. Callers fill this from the parsed input once per run.

Member Data Documentation

◆ domag

bool module_charge::InitRhoCfg::domag = false

whether to compute magnetization (PARAM.globalv.domag)

◆ domag_z

bool module_charge::InitRhoCfg::domag_z = false

whether to compute z-only magnetization (PARAM.globalv.domag_z)

◆ esolver_type

std::string module_charge::InitRhoCfg::esolver_type

esolver type; "sdft" selects the band-group rank (PARAM.inp.esolver_type)

◆ global_readin_dir

std::string module_charge::InitRhoCfg::global_readin_dir

directory to read files from (PARAM.globalv.global_readin_dir)

◆ init_chg

std::string module_charge::InitRhoCfg::init_chg

charge initialization mode (PARAM.inp.init_chg)

◆ meta_gga

bool module_charge::InitRhoCfg::meta_gga = false

whether the functional is meta-GGA (XC_Functional::get_ked_flag())

◆ nbands

int module_charge::InitRhoCfg::nbands = 0

number of bands for wfc-based init (PARAM.inp.nbands)

◆ nelec

double module_charge::InitRhoCfg::nelec = 0.0

target total electron number (PARAM.inp.nelec)

◆ npol

int module_charge::InitRhoCfg::npol = 1

number of polarization components (PARAM.globalv.npol)

◆ suffix

std::string module_charge::InitRhoCfg::suffix

system suffix for file names (PARAM.inp.suffix)

◆ test_charge

int module_charge::InitRhoCfg::test_charge = 0

verbosity flag (PARAM.inp.test_charge)


The documentation for this struct was generated from the following file: