ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
of_stress_pw.h
Go to the documentation of this file.
1#ifndef OF_STRESS_PW_H
2#define OF_STRESS_PW_H
3
7
8class OF_Stress_PW : public Stress_Func<double>
9{
10 public:
12 : pelec(pelec_in), rhopw(rhopw_in){};
13
14 // calculate the stress in OFDFT
15 void cal_stress(ModuleBase::matrix& sigmatot,
16 ModuleBase::matrix& kinetic_stress,
19 const pseudopot_cell_vl& locpp,
20 Structure_Factor* p_sf,
21 K_Vectors* p_kv);
22
23 protected:
24 // call the vdw stress
25 void stress_vdw(ModuleBase::matrix& smearing_sigma,
26 UnitCell& ucell); // force and stress calculated in vdw together.
27
28 const elecstate::ElecState* pelec = nullptr;
30};
31#endif
Definition klist.h:13
Definition matrix.h:19
A class which can convert a function of "r" to the corresponding linear superposition of plane waves ...
Definition pw_basis.h:56
Definition symmetry.h:16
Definition of_stress_pw.h:9
ModulePW::PW_Basis * rhopw
Definition of_stress_pw.h:29
OF_Stress_PW(const elecstate::ElecState *pelec_in, ModulePW::PW_Basis *rhopw_in)
Definition of_stress_pw.h:11
void cal_stress(ModuleBase::matrix &sigmatot, ModuleBase::matrix &kinetic_stress, UnitCell &ucell, ModuleSymmetry::Symmetry *p_symm, const pseudopot_cell_vl &locpp, Structure_Factor *p_sf, K_Vectors *p_kv)
Definition of_stress_pw.cpp:10
void stress_vdw(ModuleBase::matrix &smearing_sigma, UnitCell &ucell)
Definition of_stress_pw.cpp:124
const elecstate::ElecState * pelec
Definition of_stress_pw.h:28
Definition stress_func.h:57
const UnitCell * ucell
Definition stress_func.h:278
Definition structure_factor.h:11
Definition unitcell.h:16
Definition elecstate.h:15
Definition VL_in_pw.h:11