ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
pot_sep.h
Go to the documentation of this file.
1#ifndef POTSEP_H
2#define POTSEP_H
3
4#include "pot_base.h"
7
8namespace elecstate
9{
10
11class PotSep : public PotBase
12{
13 public:
14 // PotSep(const ModuleBase::matrix* vsep_in,
15 // const ModuleBase::ComplexMatrix* sf_in,
16 // const ModulePW::PW_Basis* rho_basis_in,
17 // const bool* sep_enable_in)
18 // : vsep_(vsep_in), sf_(sf_in), sep_enable_(sep_enable_in)
19 // {
20 // assert(this->vsep_->nr == this->sf_->nr);
21 // this->rho_basis_ = rho_basis_in;
22 // this->ntype_ = this->vsep_->nr;
23 // this->fixed_mode = true;
24 // this->dynamic_mode = false;
25 // }
26 PotSep(const ModuleBase::ComplexMatrix* sf_in, const ModulePW::PW_Basis* rho_basis_in, const VSep* vsep_cell_in)
27 : sf_(sf_in), vsep_cell(vsep_cell_in)
28 {
29 assert(vsep_cell->vsep_form.nr == this->sf_->nr);
30 // assert(this->vsep_->vsep_form.nr == this->sf_->nr);
31 this->rho_basis_ = rho_basis_in;
32 // this->ntype_ = this->vsep_->vsep_form.nr;
33 this->fixed_mode = true;
34 this->dynamic_mode = false;
35 }
36
37 void cal_fixed_v(double* vl_pseudo) override;
38
39 const VSep* vsep_cell = nullptr;
41 // int ntype_ = 0;
42 // const bool* sep_enable_;
43};
44
45} // namespace elecstate
46
47#endif /* ifndef POTSEP_H */
Definition complexmatrix.h:14
int nr
Definition matrix.h:23
A class which can convert a function of "r" to the corresponding linear superposition of plane waves ...
Definition pw_basis.h:56
Definition VSep_in_pw.h:11
ModuleBase::matrix vsep_form
Definition VSep_in_pw.h:19
Definition pot_base.h:22
const ModulePW::PW_Basis * rho_basis_
Definition pot_base.h:35
bool dynamic_mode
Definition pot_base.h:32
bool fixed_mode
Definition pot_base.h:31
Definition pot_sep.h:12
const ModuleBase::ComplexMatrix * sf_
Definition pot_sep.h:40
void cal_fixed_v(double *vl_pseudo) override
Definition pot_sep.cpp:8
PotSep(const ModuleBase::ComplexMatrix *sf_in, const ModulePW::PW_Basis *rho_basis_in, const VSep *vsep_cell_in)
Definition pot_sep.h:26
const VSep * vsep_cell
Definition pot_sep.h:39
Definition cal_dm.h:10