|
| | Potential () |
| | Potential (const ModulePW::PW_Basis *rho_basis_in, const ModulePW::PW_Basis *rho_basis_smooth_in, const UnitCell *ucell_in, const ModuleBase::matrix *vloc_in, Structure_Factor *structure_factors_in, surchem *solvent_in, double *etxc_in, double *vtxc_in, VSep *vsep_cell_in=nullptr) |
| | ~Potential () |
| void | init_pot (const Charge *const chg) |
| void | pot_register (const std::vector< std::string > &components_list) |
| void | pot_register (const std::vector< std::string > &components_list, const Input_para &input) |
| void | update_from_charge (const Charge *const chg, const UnitCell *const ucell) |
| void | get_vnew (const Charge *chg, ModuleBase::matrix &vnew) |
| PotBase * | get_pot_type (const std::string &pot_type, const Input_para &input, const SccsResume &resume) |
| bool | model_pending () const |
| bool | update_model (int electronic_iteration, double density_residual, std::ostream *log) |
| void | write_corr_iter (std::ostream &output, int level, double residual) const |
| | sccs_debug output of the SCCS correction.
|
| void | sum_sol_energy (double &electrostatic, double &non_electrostatic) const |
| void | sum_sol_force (const UnitCell &cell, ModuleBase::matrix &force) const |
| const std::vector< double > * | find_sol_pot () const |
| std::vector< SolventGridField > | sol_out_fields () const |
| | Implicit-solvent fields of the registered components, for out_sol.
|
| const TDFieldManager * | td_field_manager () const |
| | Read the shared RT-TDDFT field state.
|
| void | set_td_field_manager (const std::shared_ptr< TDFieldManager > &field_manager) |
| | Inject the shared RT-TDDFT field state before potential setup.
|
| ModuleBase::matrix & | get_eff_v () |
| const ModuleBase::matrix & | get_eff_v () const |
| double * | get_eff_v (int is) |
| const double * | get_eff_v (int is) const |
| ModuleBase::matrix & | get_eff_vofk () |
| const ModuleBase::matrix & | get_eff_vofk () const |
| double * | get_eff_vofk (int is) |
| const double * | get_eff_vofk (int is) const |
| ModuleBase::matrix & | get_veff_smooth () |
| const ModuleBase::matrix & | get_veff_smooth () const |
| ModuleBase::matrix & | get_vofk_smooth () |
| const ModuleBase::matrix & | get_vofk_smooth () const |
| template<typename FPTYPE> |
| FPTYPE * | get_veff_smooth_data () |
| template<typename FPTYPE> |
| FPTYPE * | get_vofk_smooth_data () |
| double * | get_fixed_v () |
| const double * | get_fixed_v () const |
| const ModulePW::PW_Basis * | get_rho_basis () const |
| const UnitCell * | get_ucell () const |
| const ModuleBase::matrix * | get_vloc () const |
| double | get_vl_of_0 () const |
| | get the value of vloc at G=0;
|
| double | get_ml_exx_energy () const |
| | get the ML-EXX energy, avoiding static variable
|
| double | pcc_energy_rydberg () const |
| const std::vector< double > * | pcc_electron_potential () const |
| void | add_pcc_force (const UnitCell &cell, ModuleBase::matrix &force) const |
| template<> |
| float * | get_veff_smooth_data () |
| template<> |
| double * | get_veff_smooth_data () |
| template<> |
| float * | get_vofk_smooth_data () |
| template<> |
| double * | get_vofk_smooth_data () |
| | PotBase () |
| virtual | ~PotBase () |
| virtual double | get_energy () const |
| virtual void | sol_energy (double &electrostatic, double &non_electrostatic) const |
| virtual void | add_sol_force (const UnitCell &, ModuleBase::matrix &) const |
| virtual const std::vector< double > * | sol_elec_pot () const |
| virtual void | add_sol_fields (std::vector< SolventGridField > &) const |
Potential is the main class of potentials module, it contains:
- Constructors and deconstructor
- Func init_pot() a. need istep for update_for_tddft(); b. need Charge for update_from_charge(); c. it will reset fixed_done to false, v_eff_fixed will be calculated; d. it should be called after Charge is initialized; e. it can only be called once in one SCF loop
- Func pot_register() and components a. need vector<string> for choose target potentials b. "local", PotLocal introduces local pseudopotential part of potentials; c. "hartree", PotHartree introduces Coulombic interaction of electrons part of potentials; d. "xc", PotXC introduces exchange-correlation including meta-gga part of potentials; e. "surchem", PotSurChem introduces surface chemistry part of potentials; f. "efield", PotEfield introduces electronic field including dipole correction part of potentials; g. "gatefield", PotGate introduces gate field part of potentials;
- Func update_from_charge() a. regenerate v_eff b. if Meta-GGA is choosed, it will regenerate vofk_eff
- Func update_for_tddft() a. in principle, it should be added to components, but it related to real time(istep) b. it should be called after update_from_charge() as a compensation;
- Func get_vnew() a. this function is designed for a special demand:
- update etxc and vtxc when SCF converged and
- use the final delta_V_eff for calculating force correction
- Func write_potential()
- Func write_elecstat_pot()
- interfaces for v_eff_fixed/v_eff/vofk_eff
- Func interpolate_vrs() a. interpolate v_eff on the smooth mesh