ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
elecstate::PotSccs Class Reference

#include <pot_sccs.h>

Inheritance diagram for elecstate::PotSccs:
Collaboration diagram for elecstate::PotSccs:

Public Member Functions

 PotSccs (const ModulePW::PW_Basis *basis, const ModuleSccs::SccsConfig &config, const ModuleSccs::PolarizationSolverParameters &solver, double electron_count, const SccsResume &resume)
void cal_v_eff (const Charge *charge, const UnitCell *cell, ModuleBase::matrix &potential) override
double get_energy () const override
void add_sol_force (const UnitCell &cell, ModuleBase::matrix &force) const override
void sol_energy (double &electrostatic, double &non_electrostatic) const override
const std::vector< double > * sol_elec_pot () const override
void add_sol_fields (std::vector< SolventGridField > &fields) const override
bool try_activate (int electronic_iteration, double density_residual)
bool is_active () const
SccsResume resume_state () const
bool has_output () const
void write_iter (std::ostream &output, int level, double residual, double pcc_energy) const
Public Member Functions inherited from elecstate::PotBase
 PotBase ()
virtual ~PotBase ()
virtual void cal_fixed_v (double *vl_pseudo)

Private Attributes

bool sccs_active_ = false
const ModuleSccs::SccsConfig config_
const ModuleSccs::PolarizationSolverParameters solver_
const double electron_count_
SccsOutput output_
SccsFixedSources fixed_sources_
double electrostatic_rydberg_ = 0.0
double non_electrostatic_rydberg_ = 0.0
std::vector< double > electrostatic_potential_
std::vector< double > restart_potential_
std::vector< double > cavity_potential_
std::vector< double > epsilon_
std::vector< double > solute_
std::vector< double > local_solute_
std::vector< double > filled_fraction_

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

◆ PotSccs()

elecstate::PotSccs::PotSccs ( const ModulePW::PW_Basis * basis,
const ModuleSccs::SccsConfig & config,
const ModuleSccs::PolarizationSolverParameters & solver,
double electron_count,
const SccsResume & resume )

Member Function Documentation

◆ add_sol_fields()

void elecstate::PotSccs::add_sol_fields ( std::vector< SolventGridField > & fields) const
overridevirtual

Reimplemented from elecstate::PotBase.

Here is the caller graph for this function:

◆ add_sol_force()

void elecstate::PotSccs::add_sol_force ( const UnitCell & cell,
ModuleBase::matrix & force ) const
overridevirtual

Reimplemented from elecstate::PotBase.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cal_v_eff()

void elecstate::PotSccs::cal_v_eff ( const Charge * charge,
const UnitCell * cell,
ModuleBase::matrix & potential )
overridevirtual

Reimplemented from elecstate::PotBase.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_energy()

double elecstate::PotSccs::get_energy ( ) const
overridevirtual

Reimplemented from elecstate::PotBase.

Here is the caller graph for this function:

◆ has_output()

bool elecstate::PotSccs::has_output ( ) const
inline
Here is the caller graph for this function:

◆ is_active()

bool elecstate::PotSccs::is_active ( ) const
inline
Here is the caller graph for this function:

◆ resume_state()

SccsResume elecstate::PotSccs::resume_state ( ) const
Here is the caller graph for this function:

◆ sol_elec_pot()

const std::vector< double > * elecstate::PotSccs::sol_elec_pot ( ) const
overridevirtual

Reimplemented from elecstate::PotBase.

Here is the caller graph for this function:

◆ sol_energy()

void elecstate::PotSccs::sol_energy ( double & electrostatic,
double & non_electrostatic ) const
overridevirtual

Reimplemented from elecstate::PotBase.

Here is the caller graph for this function:

◆ try_activate()

bool elecstate::PotSccs::try_activate ( int electronic_iteration,
double density_residual )
Here is the caller graph for this function:

◆ write_iter()

void elecstate::PotSccs::write_iter ( std::ostream & output,
int level,
double residual,
double pcc_energy ) const
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ cavity_potential_

std::vector<double> elecstate::PotSccs::cavity_potential_
private

◆ config_

const ModuleSccs::SccsConfig elecstate::PotSccs::config_
private

◆ electron_count_

const double elecstate::PotSccs::electron_count_
private

◆ electrostatic_potential_

std::vector<double> elecstate::PotSccs::electrostatic_potential_
private

◆ electrostatic_rydberg_

double elecstate::PotSccs::electrostatic_rydberg_ = 0.0
private

◆ epsilon_

std::vector<double> elecstate::PotSccs::epsilon_
private

◆ filled_fraction_

std::vector<double> elecstate::PotSccs::filled_fraction_
private

◆ fixed_sources_

SccsFixedSources elecstate::PotSccs::fixed_sources_
private

◆ local_solute_

std::vector<double> elecstate::PotSccs::local_solute_
private

◆ non_electrostatic_rydberg_

double elecstate::PotSccs::non_electrostatic_rydberg_ = 0.0
private

◆ output_

SccsOutput elecstate::PotSccs::output_
private

◆ restart_potential_

std::vector<double> elecstate::PotSccs::restart_potential_
private

◆ sccs_active_

bool elecstate::PotSccs::sccs_active_ = false
private

◆ solute_

std::vector<double> elecstate::PotSccs::solute_
private

◆ solver_

const ModuleSccs::PolarizationSolverParameters elecstate::PotSccs::solver_
private

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