The Sep_Cell class is container for Sep potential.
More...
#include <sep_cell.h>
|
| | 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 |
|
| 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
|
The Sep_Cell class is container for Sep potential.
◆ Sep_Cell()
◆ ~Sep_Cell()
◆ bcast_sep_cell()
| void Sep_Cell::bcast_sep_cell |
( |
| ) |
|
Broadcasts the Sep_Cell object to all processes.
◆ get_ntype()
| int Sep_Cell::get_ntype |
( |
| ) |
const |
|
inline |
◆ get_omega()
| double Sep_Cell::get_omega |
( |
| ) |
const |
|
inline |
◆ get_sep_enable()
| const std::vector< bool > & Sep_Cell::get_sep_enable |
( |
| ) |
const |
|
inline |
◆ get_seps()
| const std::vector< SepPot > & Sep_Cell::get_seps |
( |
| ) |
const |
|
inline |
◆ get_tpiba2()
| double Sep_Cell::get_tpiba2 |
( |
| ) |
const |
|
inline |
◆ init()
| void Sep_Cell::init |
( |
const int | ntype_in | ) |
|
Sets the number of atom types and initializes internal vectors.
- Parameters
-
| ntype_in | number of atom types |
◆ 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
-
| ifpos | input file stream |
| pp_dir | pseudopotential directory |
| ofs_running | output file stream for running log |
| ucell_atom_label | atom 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
◆ set_omega()
| void Sep_Cell::set_omega |
( |
const double | omega_in, |
|
|
const double | tpiba2_in ) |
Sets omega and tpiba2.
- Parameters
-
| omega_in | unit cell volume |
| tpiba2_in | tpiba squared |
◆ ntype
◆ omega
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
The documentation for this class was generated from the following files:
- /home/runner/work/abacus-develop/abacus-develop/source/source_cell/sep_cell.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_cell/module_symmetry/test/symm_rho_soc_test.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_cell/module_symmetry/test/symm_test_analysis.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_cell/module_symmetry/test/symm_test_symtrz.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_cell/sep_cell.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_cell/test/klist_test.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_cell/test/klist_test_para.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_cell/test/little_group_test.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_cell/test/qlist_test.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_cell/test/reciprocal_grid_test.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_cell/test/support/mock_unitcell.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_esolver/test/for_test.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_estate/module_dm/unittests/tmp_mocks.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_estate/unittests/test_elecstate.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_estate/unittests/test_elecstate_print.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_estate/unittests/test_elecstate_pw.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_estate/unittests/test_pot_pcc.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_estate/unittests/test_pot_sccs.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_estate/unittests/test_potential_new.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_hamilt/module_gint/test/tmp_mocks.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_hamilt/module_hcontainer/unittests/tmp_mocks.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_hamilt/module_surchem/test/setcell.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_hamilt/module_vdw/unittests/test_vdw.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_hamilt/module_xc/test/xc3_mock.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_hamilt/module_xc/unittests/test_xc_functional_ncgga_sf.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_dos/unittests/for_testing_klist.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/unittests/for_testing_klist.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/unittests/test_bessel_basis.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/unittests/test_output_log.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/unittests/test_read_wf2rho_pw.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/unittests/tmp_mocks.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_lcao/module_dftu/unittests/test_dftu_nao_folding.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_lcao/module_dftu/unittests/test_dftu_nao_fs_accum.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_lcao/module_dftu/unittests/test_dftu_nao_fs_k.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_lcao/module_dftu/unittests/test_dftu_nao_fs_r.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_lcao/module_dftu/unittests/test_dftu_nao_fs_reduce.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_lcao/module_lr/ri_benchmark/test/ri_benchmark_test.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_lcao/module_lr/unittests/test_pot_grad_xc.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_lcao/module_lr/unittests/test_pot_hxc_lrtd.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_lcao/module_lr/unittests/test_xc_kernel.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_lcao/module_operator_lcao/test/tmp_mocks.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_lcao/module_ri/module_exx_symmetry/test/symm_rotation_test.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_lcao/module_rt/test/snap_psb_half_tddft_test.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_lcao/test/tmp_mocks.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_pw/module_dfpt/unittests/test_dfpt_mocks.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_relax/unittests/for_test.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_relax/unittests/relax_test.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_relax/unittests/test_ions_move_lbfgs.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_relax/unittests/test_relax_nsync.cpp