ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
pot_surchem.h
Go to the documentation of this file.
1#ifndef POTSURCHEM_H
2#define POTSURCHEM_H
3
5#include "pot_base.h"
6
7namespace elecstate
8{
9
10class PotSurChem : public PotBase
11{
12 public:
13 // constructor for exchange-correlation potential
14 // meta-GGA should input matrix of kinetic potential, it is optional
15 PotSurChem(const ModulePW::PW_Basis* rho_basis_in,
16 Structure_Factor* structure_factors_in,
17 const double* vlocal_in,
18 surchem* surchem_in);
20
21 // Passing an explicit output matrix makes the lifetime and allocation explicit and avoids hidden allocations.
22 void cal_v_eff(const Charge* const chg, const UnitCell* const ucell, ModuleBase::matrix& v_eff) override;
23 // eps, and the cavity s = 1 - S of the shape function when eb_k > 1.
24 void add_sol_fields(std::vector<SolventGridField>& fields) const override;
25
26 private:
27 surchem* surchem_ = nullptr;
29 const double* vlocal = nullptr;
30 bool allocated = false;
31};
32
33} // namespace elecstate
34
35#endif
Definition charge.h:24
Definition matrix.h:15
A class which can convert a function of "r" to the corresponding linear superposition of plane waves ...
Definition pw_basis.h:60
Definition stru_fac.h:10
Provide the basic information about unitcell.
Definition unitcell.h:16
PotBase()
Definition pot_base.h:26
surchem * surchem_
Definition pot_surchem.h:27
const double * vlocal
Definition pot_surchem.h:29
Structure_Factor * structure_factors_
Definition pot_surchem.h:28
~PotSurChem()
Definition pot_surchem.cpp:19
void add_sol_fields(std::vector< SolventGridField > &fields) const override
Definition pot_surchem.cpp:48
void cal_v_eff(const Charge *const chg, const UnitCell *const ucell, ModuleBase::matrix &v_eff) override
Definition pot_surchem.cpp:27
PotSurChem(const ModulePW::PW_Basis *rho_basis_in, Structure_Factor *structure_factors_in, const double *vlocal_in, surchem *surchem_in)
Definition pot_surchem.cpp:7
bool allocated
Definition pot_surchem.h:30
Definition surchem.h:34
Definition read_atoms_hlp_test.cpp:13