ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
h_tddft_pw.h
Go to the documentation of this file.
1#ifndef H_TDDFT_PW_H
2#define H_TDDFT_PW_H
3
4#include "pot_base.h"
6
7#include <memory>
8#include <vector>
9
10namespace elecstate
11{
12
13class TDFieldManager;
14
21class H_TDDFT_pw : public PotBase
22{
23 public:
31 H_TDDFT_pw(const ModulePW::PW_Basis* rho_basis_in, const UnitCell* ucell_in, const std::shared_ptr<TDFieldManager>& field_manager);
32
35 {
36 }
37
43 void cal_fixed_v(double* vl_pseudo) override;
44
52 static void compute_force(const UnitCell& cell, const TDFieldManager& manager, ModuleBase::matrix& fe);
53
54 private:
55 void cal_v_space_length(std::vector<double>& vext_space, int direction);
56 double cal_v_space_length_potential(double coordinate) const;
57
58 const UnitCell* ucell_ = nullptr;
59 std::shared_ptr<TDFieldManager> field_manager_;
60};
61
62} // namespace elecstate
63
64#endif
Definition matrix.h:15
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
static void compute_force(const UnitCell &cell, const TDFieldManager &manager, ModuleBase::matrix &fe)
Compute ionic force of electric field.
Definition h_tddft_pw.cpp:107
double cal_v_space_length_potential(double coordinate) const
Definition h_tddft_pw.cpp:92
H_TDDFT_pw(const ModulePW::PW_Basis *rho_basis_in, const UnitCell *ucell_in, const std::shared_ptr< TDFieldManager > &field_manager)
Construct the time-dependent potential component.
Definition h_tddft_pw.cpp:10
const UnitCell * ucell_
Definition h_tddft_pw.h:58
void cal_fixed_v(double *vl_pseudo) override
Add the current length-gauge external potential to the fixed part.
Definition h_tddft_pw.cpp:25
~H_TDDFT_pw()
Destroy the time-dependent potential component.
Definition h_tddft_pw.h:34
std::shared_ptr< TDFieldManager > field_manager_
Definition h_tddft_pw.h:59
void cal_v_space_length(std::vector< double > &vext_space, int direction)
Definition h_tddft_pw.cpp:55
PotBase()
Definition pot_base.h:26
Own and advance all time-dependent electric fields in RT-TDDFT.
Definition td_field_manager.h:36
Definition read_atoms_hlp_test.cpp:13