ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Sep_Cell Class Reference

The Sep_Cell class is container for Sep potential. More...

#include <sep_cell.h>

Collaboration diagram for 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

Detailed Description

The Sep_Cell class is container for Sep potential.

Constructor & Destructor Documentation

◆ Sep_Cell()

Sep_Cell::Sep_Cell ( )
inlinenoexcept
Here is the caller graph for this function:

◆ ~Sep_Cell()

Sep_Cell::~Sep_Cell ( )
inlinedefaultnoexcept

Member Function Documentation

◆ bcast_sep_cell()

void Sep_Cell::bcast_sep_cell ( )

Broadcasts the Sep_Cell object to all processes.

Here is the call graph for this function:

◆ get_ntype()

int Sep_Cell::get_ntype ( ) const
inline
Here is the caller graph for this function:

◆ get_omega()

double Sep_Cell::get_omega ( ) const
inline
Here is the caller graph for this function:

◆ get_sep_enable()

const std::vector< bool > & Sep_Cell::get_sep_enable ( ) const
inline
Here is the caller graph for this function:

◆ get_seps()

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

Getter methods.

Here is the caller graph for this function:

◆ get_tpiba2()

double Sep_Cell::get_tpiba2 ( ) const
inline
Here is the caller graph for this function:

◆ init()

void Sep_Cell::init ( const int ntype_in)

Sets the number of atom types and initializes internal vectors.

Parameters
ntype_innumber of atom types
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_sep_potentials()

int 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

read sep potential files

need to add following lines in STRU file, and order of elements must match ATOMIC_SPECIES. SEP_FILES symbol is_enable r_in r_out r_power enhence_a

example Li 0 F 1 F_pbe_50.sep 0.0 2.0 20.0 1.0

Here is the call graph for this function:

◆ set_omega()

void 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 Sep_Cell::ntype
private

number of atom types

◆ omega

double Sep_Cell::omega
private

unit cell data for VSep

unit cell Volume

◆ sep_enable

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

Whether self potential is enabled for each atom type.

◆ seps

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

Self potentials for each atom type.

◆ tpiba2

double Sep_Cell::tpiba2
private

tpiba ^ 2


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