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

Length-gauge RT-TDDFT potential backed by TDFieldManager. More...

#include <h_tddft_pw.h>

Inheritance diagram for elecstate::H_TDDFT_pw:
Collaboration diagram for elecstate::H_TDDFT_pw:

Public Member Functions

 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.
 ~H_TDDFT_pw ()
 Destroy the time-dependent potential component.
void cal_fixed_v (double *vl_pseudo) override
 Add the current length-gauge external potential to the fixed part.
Public Member Functions inherited from elecstate::PotBase
 PotBase ()
virtual ~PotBase ()
virtual void cal_v_eff (const Charge *const chg, const UnitCell *const ucell, ModuleBase::matrix &v_eff)
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

Static Public Member Functions

static void compute_force (const UnitCell &cell, const TDFieldManager &manager, ModuleBase::matrix &fe)
 Compute ionic force of electric field.

Private Member Functions

void cal_v_space_length (std::vector< double > &vext_space, int direction)
double cal_v_space_length_potential (double coordinate) const

Private Attributes

const UnitCell * ucell_ = nullptr
std::shared_ptr< TDFieldManager > field_manager_

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

Detailed Description

Length-gauge RT-TDDFT potential backed by TDFieldManager.

The class consumes the manager's current field samples to construct the periodic real-space potential. Time advancement belongs to the ESolver.

Constructor & Destructor Documentation

◆ H_TDDFT_pw()

elecstate::H_TDDFT_pw::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.

Parameters
rho_basis_inReal-space grid on which the potential is evaluated.
ucell_inUnit cell defining Cartesian coordinates and lattice size.
field_managerShared source of RT-TDDFT field state.
Here is the call graph for this function:

◆ ~H_TDDFT_pw()

elecstate::H_TDDFT_pw::~H_TDDFT_pw ( )
inline

Destroy the time-dependent potential component.

Member Function Documentation

◆ cal_fixed_v()

void elecstate::H_TDDFT_pw::cal_fixed_v ( double * vl_pseudo)
overridevirtual

Add the current length-gauge external potential to the fixed part.

Parameters
vl_pseudoReal-space fixed potential updated in place.

Reimplemented from elecstate::PotBase.

Here is the call graph for this function:

◆ cal_v_space_length()

void elecstate::H_TDDFT_pw::cal_v_space_length ( std::vector< double > & vext_space,
int direction )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cal_v_space_length_potential()

double elecstate::H_TDDFT_pw::cal_v_space_length_potential ( double coordinate) const
private
Here is the caller graph for this function:

◆ compute_force()

void elecstate::H_TDDFT_pw::compute_force ( const UnitCell & cell,
const TDFieldManager & manager,
ModuleBase::matrix & fe )
static

Compute ionic force of electric field.

Parameters
[in]cellInformation of cell.
[in]managerCurrent field state owned by the RT solver.
[out]feElectric-field force, F = qE.
Here is the call graph for this function:

Member Data Documentation

◆ field_manager_

std::shared_ptr<TDFieldManager> elecstate::H_TDDFT_pw::field_manager_
private

◆ ucell_

const UnitCell* elecstate::H_TDDFT_pw::ucell_ = nullptr
private

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