#include <angmom_op_mat.h>
|
| | Angmom_op ()=delete |
| | Angmom_op (const std::string &orbital_dir, const UnitCell &ucell, const double &search_radius, const int tdestructor, const int tgrid, const int tatom, const bool searchpbc, const std::string &out_level, const bool gamma_only, std::ofstream *ptr_log=nullptr, const int rank=0) |
| | Construct a new Angular Momentum Expectation Calculator object.
|
| | ~Angmom_op ()=default |
| void | calculate (const std::string &prefix, const std::string &outdir, const UnitCell &ucell, const Parallel_Orbitals &pv, const int precision, const int rank, const int istep, const int out_app_flag) |
| | Calculate and write <phi_i|Lx/Ly/Lz|phi_j> matrix elements.
|
◆ Angmom_op() [1/2]
| ModuleIO::Angmom_op::Angmom_op |
( |
| ) |
|
|
delete |
◆ Angmom_op() [2/2]
| ModuleIO::Angmom_op::Angmom_op |
( |
const std::string & | orbital_dir, |
|
|
const UnitCell & | ucell, |
|
|
const double & | search_radius, |
|
|
const int | tdestructor, |
|
|
const int | tgrid, |
|
|
const int | tatom, |
|
|
const bool | searchpbc, |
|
|
const std::string & | out_level, |
|
|
const bool | gamma_only, |
|
|
std::ofstream * | ptr_log = nullptr, |
|
|
const int | rank = 0 ) |
Construct a new Angular Momentum Expectation Calculator object.
- Parameters
-
| orbital_dir | the directory of the orbital file |
| ucell | the unit cell object |
| search_radius | the search radius for the neighboring atoms |
| tdestructor | test flag, for destructor |
| tgrid | test flag, for grid |
| tatom | test flag, for atom input |
| searchpbc | |
| out_level | the output verbosity level |
| gamma_only | whether the calculation is gamma-only |
| ptr_log | pointer to the ofstream object for logging |
◆ ~Angmom_op()
| ModuleIO::Angmom_op::~Angmom_op |
( |
| ) |
|
|
default |
◆ calculate()
| void ModuleIO::Angmom_op::calculate |
( |
const std::string & | prefix, |
|
|
const std::string & | outdir, |
|
|
const UnitCell & | ucell, |
|
|
const Parallel_Orbitals & | pv, |
|
|
const int | precision, |
|
|
const int | rank, |
|
|
const int | istep, |
|
|
const int | out_app_flag ) |
Calculate and write <phi_i|Lx/Ly/Lz|phi_j> matrix elements.
- Parameters
-
| prefix | the suffix of the output files (currently unused; filenames are fixed as l{x,y,z}[g{step+1}]_nao.csr) |
| outdir | the output directory |
| ucell | the unit cell object |
| pv | the parallel orbital distribution, used for the global basis size of the CSR output |
| precision | the precision of the output |
| rank | the MPI rank |
| istep | the ionic step index; -1 for single-point runs |
| out_app_flag | append mode: with 1 the fixed filename l{x,y,z}_nao.csr is reused and each step appends; with 2 the filename carries g{istep+1} (e.g., lxg1_nao.csr); with 0 the fixed filename is overwritten at every write |
Filename suffix: modes 0 and 1 reuse the fixed name (mode 0 overwrites, mode 1 appends each written step); only mode 2 carries "g{istep+1}" (e.g., "g1") following the out_freq_ion convention.
◆ calculator_
◆ fallback_ofs_
| std::ofstream ModuleIO::Angmom_op::fallback_ofs_ |
|
private |
◆ neighbor_searcher_
| std::unique_ptr<Grid_Driver> ModuleIO::Angmom_op::neighbor_searcher_ |
|
private |
◆ ofs_
| std::ofstream* ModuleIO::Angmom_op::ofs_ = nullptr |
|
private |
◆ orb_
◆ sbt_
The documentation for this class was generated from the following files:
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_hs/angmom_op_mat.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_hs/angmom_op_mat.cpp