75 VSep* vsep_cell_in =
nullptr);
81 void pot_register(
const std::vector<std::string>& components_list);
97 bool update_model(
int electronic_iteration,
double density_residual, std::ostream* log);
102 void sum_sol_energy(
double& electrostatic,
double& non_electrostatic)
const;
133 if (this->
v_eff.nc > 0)
135 return &(this->
v_eff(is, 0));
144 if (this->
v_eff.nc > 0)
146 return &(this->
v_eff(is, 0));
202 template <
typename FPTYPE>
205 template <
typename FPTYPE>
A class which can convert a function of "r" to the corresponding linear superposition of plane waves ...
Definition pw_basis.h:60
Provide the basic information about unitcell.
Definition unitcell.h:16
const ModulePW::PW_Basis * rho_basis_
Definition pot_base.h:52
PotBase()
Definition pot_base.h:26
Self-consistent vacuum point-counter-charge (PCC) correction.
Definition pot_pcc.h:48
ModuleBase::matrix veff_smooth
Definition potential_new.h:269
SccsResume get_resume() const
Definition potential_sccs.cpp:61
double vl_of_0
Definition potential_new.h:287
~Potential()
Definition potential_new.cpp:42
PotBase * get_pot_type(const std::string &pot_type, const Input_para &input, const SccsResume &resume)
Definition potential_types.cpp:46
bool use_gpu_
Definition potential_new.h:296
bool fixed_done
Definition potential_new.h:281
double pcc_energy_rydberg() const
Definition potential_new.cpp:382
void get_vnew(const Charge *chg, ModuleBase::matrix &vnew)
Definition potential_new.cpp:271
std::vector< PotBase * > components
Definition potential_new.h:289
const double * get_eff_vofk(int is) const
Definition potential_new.h:172
std::vector< SolventGridField > sol_out_fields() const
Implicit-solvent fields of the registered components, for out_sol.
Definition potential_new.cpp:443
const double * get_eff_v(int is) const
Definition potential_new.h:142
const ModuleBase::matrix & get_eff_vofk() const
Definition potential_new.h:157
void allocate()
Definition potential_new.cpp:103
const ModuleBase::matrix & get_vofk_smooth() const
Definition potential_new.h:197
std::shared_ptr< TDFieldManager > td_field_manager_
Definition potential_new.h:297
void init_pot(const Charge *const chg)
Definition potential_new.cpp:257
surchem * solvent_
Definition potential_new.h:294
void sum_sol_force(const UnitCell &cell, ModuleBase::matrix &force) const
Definition potential_new.cpp:411
void add_pcc_force(const UnitCell &cell, ModuleBase::matrix &force) const
Definition potential_new.cpp:402
ModuleBase::matrix & get_veff_smooth()
Definition potential_new.h:184
Structure_Factor * structure_factors_
Definition potential_new.h:293
ModuleBase::matrix & get_eff_vofk()
Definition potential_new.h:153
const ModuleBase::matrix * vloc_
Definition potential_new.h:292
bool update_model(int electronic_iteration, double density_residual, std::ostream *log)
Definition potential_sccs.cpp:8
Potential()
Definition potential_new.h:61
void pot_register(const std::vector< std::string > &components_list)
Definition potential_new.cpp:66
ModuleBase::matrix v_eff
Definition potential_new.h:267
const UnitCell * get_ucell() const
Definition potential_new.h:220
bool model_pending() const
Definition potential_sccs.cpp:24
ModuleBase::matrix vofk_eff
Definition potential_new.h:279
float * s_vofk_smooth
Definition potential_new.h:275
const PotSccs * sccs_component() const
Definition potential_sccs.cpp:42
ModuleBase::matrix & get_vofk_smooth()
Definition potential_new.h:193
float * s_veff_smooth
Definition potential_new.h:274
void set_td_field_manager(const std::shared_ptr< TDFieldManager > &field_manager)
Inject the shared RT-TDDFT field state before potential setup.
Definition potential_new.h:116
const std::vector< double > * find_sol_pot() const
Definition potential_new.cpp:433
const UnitCell * ucell_
Definition potential_new.h:291
ModuleBase::matrix vofk_smooth
Definition potential_new.h:270
const double * get_fixed_v() const
Definition potential_new.h:212
void cal_v_eff(const Charge *const chg, const UnitCell *const ucell, ModuleBase::matrix &v_eff) override
Definition potential_new.cpp:224
FPTYPE * get_veff_smooth_data()
const std::vector< double > * pcc_electron_potential() const
Definition potential_new.cpp:392
const PotPcc * pcc_component() const
Definition potential_new.cpp:369
const ModuleBase::matrix & get_eff_v() const
Definition potential_new.h:126
ModuleBase::matrix v_xc
Definition potential_new.h:272
const TDFieldManager * td_field_manager() const
Read the shared RT-TDDFT field state.
Definition potential_new.h:109
double get_ml_exx_energy() const
get the ML-EXX energy, avoiding static variable
Definition potential_new.cpp:352
double * get_eff_v(int is)
Definition potential_new.h:131
void sum_sol_energy(double &electrostatic, double &non_electrostatic) const
Definition potential_new.cpp:419
const ModuleBase::matrix * get_vloc() const
Definition potential_new.h:225
const ModuleBase::matrix & get_veff_smooth() const
Definition potential_new.h:188
double * etxc_
Definition potential_new.h:284
double * d_veff_smooth
Definition potential_new.h:276
void cal_fixed_v(double *vl_pseudo) override
Definition potential_new.cpp:207
double * get_eff_vofk(int is)
Definition potential_new.h:161
void update_from_charge(const Charge *const chg, const UnitCell *const ucell)
Definition potential_new.cpp:168
double * d_vofk_smooth
Definition potential_new.h:277
double get_vl_of_0() const
get the value of vloc at G=0;
Definition potential_new.h:234
PotBase * make_sccs_pot(const Input_para &input, const SccsResume &resume)
Definition potential_types.cpp:25
void interpolate_vrs()
Definition potential_new.cpp:287
const ModulePW::PW_Basis * get_rho_basis() const
Definition potential_new.h:216
double * vtxc_
Definition potential_new.h:285
void write_corr_iter(std::ostream &output, int level, double residual) const
sccs_debug output of the SCCS correction.
Definition potential_sccs.cpp:30
ModuleBase::matrix & get_eff_v()
Definition potential_new.h:122
FPTYPE * get_vofk_smooth_data()
std::vector< double > v_eff_fixed
Definition potential_new.h:266
double * get_fixed_v()
Definition potential_new.h:208
VSep * vsep_cell
Definition potential_new.h:295
Own and advance all time-dependent electric fields in RT-TDDFT.
Definition td_field_manager.h:36
Definition read_atoms_hlp_test.cpp:13
Definition sol_grid_field.h:12
Input_para input
Definition test_io_sys_var.cpp:58