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
8namespace vdw
9{
10struct VdwResult;
11}
12
13class OF_Stress_PW : public Stress_Func<double>
14{
15 public:
17 : pelec(pelec_in), rhopw(rhopw_in){};
18
19 // calculate the stress in OFDFT
20 void cal_stress(const int nspin,
21 const bool domag,
22 const bool domag_z,
23 const int gga_grad,
24 const bool gamma_only_pw,
25 ModuleBase::matrix& sigmatot,
26 ModuleBase::matrix& kinetic_stress,
28 const vdw::VdwResult* vdw_result,
30 const pseudopot_cell_vl& locpp,
31 Structure_Factor* p_sf,
32 K_Vectors* p_kv);
33
34 protected:
35 const elecstate::ElecState* pelec = nullptr;
37};
38#endif
Class for k-points management.
Definition klist.h:20
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
Symmetry analysis class.
Definition symmetry.h:24
ModulePW::PW_Basis * rhopw
Definition of_stress_pw.h:36
OF_Stress_PW(const elecstate::ElecState *pelec_in, ModulePW::PW_Basis *rhopw_in)
Definition of_stress_pw.h:16
const elecstate::ElecState * pelec
Definition of_stress_pw.h:35
void cal_stress(const int nspin, const bool domag, const bool domag_z, const int gga_grad, const bool gamma_only_pw, ModuleBase::matrix &sigmatot, ModuleBase::matrix &kinetic_stress, UnitCell &ucell, const vdw::VdwResult *vdw_result, ModuleSymmetry::Symmetry *p_symm, const pseudopot_cell_vl &locpp, Structure_Factor *p_sf, K_Vectors *p_kv)
Definition of_stress_pw.cpp:10
Stress_Func()
Definition stress_func.h:60
const UnitCell * ucell
Definition stress_func.h:337
Definition stru_fac.h:10
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition elecstate.h:20
Definition vl_pw.h:13
Definition esolver_fp.h:18
Definition vdw.h:30