ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
vxc_op_mat.h File Reference
#include "source_psi/psi.h"
#include "source_cell/unitcell.h"
#include "source_cell/klist.h"
#include "source_estate/module_pot/potential_new.h"
#include "source_hamilt/module_xc/exx_info.h"
#include "source_lcao/module_operator_lcao/veff_lcao.h"
#include "source_lcao/module_dftu/dftu_nao_op_legacy.h"
#include "source_io/module_hs/vxc_op_tools.h"
#include <complex>
#include <iosfwd>
#include <map>
#include <string>
#include <vector>
Include dependency graph for vxc_op_mat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  hamilt
namespace  ModuleIO
 Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in each anonymous namespace) so the header layout, R records and file-append rules cannot diverge between hs_sparse_io.cpp, dhs_sparse_writer.cpp, pos_op_csr.cpp, hsr_writer.cpp and write_dmr.cpp.

Functions

template<typename TK, typename TR>
void ModuleIO::write_Vxc (const int nspin, const int istep, const double etot, const int nbasis, const int drank, const Parallel_Orbitals *pv, const psi::Psi< TK > &psi, const UnitCell &ucell, Structure_Factor &sf, surchem &solvent, const ModulePW::PW_Basis &rho_basis, const ModulePW::PW_Basis &rhod_basis, const ModuleBase::matrix &vloc, const Charge &chg, const K_Vectors &kv, const std::vector< double > &orb_cutoff, const ModuleBase::matrix &wg, Grid_Driver &gd, const bool dft_plus_u, const bool gamma_only, const bool out_mat, const int out_app_flag, const std::string &mat_dir, const std::string &global_out_dir, const int out_ndigits, const std::string &ks_solver, bool cal_exx, const Exx_Info &exx_info, std::ofstream &ofs_running)
 Write the Vxc matrix in KS orbital representation, useful for GW calculation including terms: local/semi-local XC, EXX, DFTU. The band-decomposed diagonal energies (eband_vxc.txt and, with EXX, eband_vxc_local.txt and eband_vxc_exx.txt) are always written to global_out_dir; the full MO-basis matrices (vxcmok*_nao.txt) are written to mat_dir only when out_mat is true. The MO-basis name keeps the "vxcmo" property so that it never collides with the NAO-basis "vxck*_nao.txt" produced by out_mat_vxck.