ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
elecstate::MockPotComponent Class Reference
Inheritance diagram for elecstate::MockPotComponent:
Collaboration diagram for elecstate::MockPotComponent:

Public Member Functions

 MockPotComponent (const std::string &type, const int grid_size)
 ~MockPotComponent () override
void cal_fixed_v (double *vl_pseudo) override
void cal_v_eff (const Charge *const chg, const UnitCell *const ucell, ModuleBase::matrix &v_eff) override
void add_sol_force (const UnitCell &, ModuleBase::matrix &force) const override
Public Member Functions inherited from elecstate::PotBase
 PotBase ()
virtual ~PotBase ()
virtual double get_energy () const
virtual void sol_energy (double &electrostatic, double &non_electrostatic) const
virtual const std::vector< double > * sol_elec_pot () const
virtual void add_sol_fields (std::vector< SolventGridField > &) const

Static Public Member Functions

static void reset ()

Static Public Attributes

static int created = 0
static int destroyed = 0
static int fixed_calls = 0
static int dynamic_calls = 0

Private Attributes

std::string type_
int grid_size_

Additional Inherited Members

Public Attributes inherited from elecstate::PotBase
bool fixed_mode = 0
bool dynamic_mode = 0
Protected Attributes inherited from elecstate::PotBase
const ModulePW::PW_Basis * rho_basis_ = nullptr
const ModulePW::PW_Basis * rho_basis_smooth_ = nullptr

Constructor & Destructor Documentation

◆ MockPotComponent()

elecstate::MockPotComponent::MockPotComponent ( const std::string & type,
const int grid_size )
inline

◆ ~MockPotComponent()

elecstate::MockPotComponent::~MockPotComponent ( )
inlineoverride

Member Function Documentation

◆ add_sol_force()

void elecstate::MockPotComponent::add_sol_force ( const UnitCell & ,
ModuleBase::matrix & force ) const
inlineoverridevirtual

Reimplemented from elecstate::PotBase.

◆ cal_fixed_v()

void elecstate::MockPotComponent::cal_fixed_v ( double * vl_pseudo)
inlineoverridevirtual

Reimplemented from elecstate::PotBase.

◆ cal_v_eff()

void elecstate::MockPotComponent::cal_v_eff ( const Charge *const chg,
const UnitCell *const ucell,
ModuleBase::matrix & v_eff )
inlineoverridevirtual

Reimplemented from elecstate::PotBase.

◆ reset()

void elecstate::MockPotComponent::reset ( )
inlinestatic
Here is the caller graph for this function:

Member Data Documentation

◆ created

int elecstate::MockPotComponent::created = 0
static

◆ destroyed

int elecstate::MockPotComponent::destroyed = 0
static

◆ dynamic_calls

int elecstate::MockPotComponent::dynamic_calls = 0
static

◆ fixed_calls

int elecstate::MockPotComponent::fixed_calls = 0
static

◆ grid_size_

int elecstate::MockPotComponent::grid_size_
private

◆ type_

std::string elecstate::MockPotComponent::type_
private

The documentation for this class was generated from the following file: