ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
LCAO_domain::Sep_Cell Class Reference
Collaboration diagram for LCAO_domain::Sep_Cell:

Public Member Functions

 Sep_Cell () noexcept
 ~Sep_Cell () noexcept
void init (const int ntype_in)
 Sets the number of atom types and initializes internal vectors.
void set_omega (const double omega_in, const double tpiba2_in)
 Sets omega and tpiba2.
int read_sep_potentials (std::ifstream &ifpos, const std::string &pp_dir, std::ofstream &ofs_running, std::vector< std::string > &ucell_atom_label)
 Reads self potentials from STRU file and xx.sep files.
void bcast_sep_cell ()
 Broadcasts the Sep_Cell object to all processes.
const std::vector< SepPot > & get_seps () const
 Getter methods.
int get_ntype () const
const std::vector< bool > & get_sep_enable () const
double get_omega () const
double get_tpiba2 () const

Private Attributes

std::vector< SepPot > seps
 Self potentials for each atom type.
int ntype
 number of atom types
std::vector< bool > sep_enable
 Whether self potential is enabled for each atom type.
double omega
 unit cell data for VSep
double tpiba2
 tpiba ^ 2

Constructor & Destructor Documentation

◆ Sep_Cell()

LCAO_domain::Sep_Cell::Sep_Cell ( )
noexcept

◆ ~Sep_Cell()

LCAO_domain::Sep_Cell::~Sep_Cell ( )
noexcept

Member Function Documentation

◆ bcast_sep_cell()

void LCAO_domain::Sep_Cell::bcast_sep_cell ( )

Broadcasts the Sep_Cell object to all processes.

◆ get_ntype()

int LCAO_domain::Sep_Cell::get_ntype ( ) const
inline

◆ get_omega()

double LCAO_domain::Sep_Cell::get_omega ( ) const
inline

◆ get_sep_enable()

const std::vector< bool > & LCAO_domain::Sep_Cell::get_sep_enable ( ) const
inline

◆ get_seps()

const std::vector< SepPot > & LCAO_domain::Sep_Cell::get_seps ( ) const
inline

Getter methods.

◆ get_tpiba2()

double LCAO_domain::Sep_Cell::get_tpiba2 ( ) const
inline

◆ init()

void LCAO_domain::Sep_Cell::init ( const int ntype_in)

Sets the number of atom types and initializes internal vectors.

Parameters
ntype_innumber of atom types

◆ read_sep_potentials()

int LCAO_domain::Sep_Cell::read_sep_potentials ( std::ifstream & ifpos,
const std::string & pp_dir,
std::ofstream & ofs_running,
std::vector< std::string > & ucell_atom_label )

Reads self potentials from STRU file and xx.sep files.

Parameters
ifposinput file stream
pp_dirpseudopotential directory
ofs_runningoutput file stream for running log
ucell_atom_labelatom labels from unit cell
Returns
true if successful, false otherwise

◆ set_omega()

void LCAO_domain::Sep_Cell::set_omega ( const double omega_in,
const double tpiba2_in )

Sets omega and tpiba2.

Parameters
omega_inunit cell volume
tpiba2_intpiba squared

Member Data Documentation

◆ ntype

int LCAO_domain::Sep_Cell::ntype
private

number of atom types

◆ omega

double LCAO_domain::Sep_Cell::omega
private

unit cell data for VSep

unit cell Volume

◆ sep_enable

std::vector<bool> LCAO_domain::Sep_Cell::sep_enable
private

Whether self potential is enabled for each atom type.

◆ seps

std::vector<SepPot> LCAO_domain::Sep_Cell::seps
private

Self potentials for each atom type.

◆ tpiba2

double LCAO_domain::Sep_Cell::tpiba2
private

tpiba ^ 2


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