ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
deepks_force.h
Go to the documentation of this file.
1#ifndef DEEPKS_FORCE_H
2#define DEEPKS_FORCE_H
3
4#ifdef __MLALGO
5
6#include "deepks_param.h"
10#include "source_base/timer.h"
15
16namespace DeePKS_domain
17{
18//------------------------
19// deepks_force.cpp
20//------------------------
21
22// This file contains subroutines for calculating F_delta,
23// which is defind as sum_mu,nu rho_mu,nu d/dX (<chi_mu|alpha>V(D)<alpha|chi_nu>)
24
25// There are 1 subroutine in this file:
26// 1. cal_f_delta, which is used for F_delta calculation
27
28template <typename TK>
30 const UnitCell& ucell,
31 const LCAO_Orbitals& orb,
32 const Grid_Driver& GridD,
33 const Parallel_Orbitals& pv,
34 const int nks,
35 const DeePKS_Param& deepks_param,
36 const std::vector<ModuleBase::Vector3<double>>& kvec_d,
37 std::vector<hamilt::HContainer<double>*> phialpha,
38 double** gedm,
39 ModuleBase::matrix& f_delta,
40 const bool isstress,
41 ModuleBase::matrix& svnl_dalpha);
42} // namespace DeePKS_domain
43
44#endif
45#endif
Definition sltk_grid_driver.h:43
Definition ORB_read.h:19
3 elements vector
Definition vector3.h:22
Definition matrix.h:19
Definition parallel_orbitals.h:9
Definition unitcell.h:17
Definition hcontainer.h:144
Definition deepks_basic.h:15
void cal_f_delta(const hamilt::HContainer< double > *dmr, const UnitCell &ucell, const LCAO_Orbitals &orb, const Grid_Driver &GridD, const Parallel_Orbitals &pv, const int nks, const DeePKS_Param &deepks_param, const std::vector< ModuleBase::Vector3< double > > &kvec_d, std::vector< hamilt::HContainer< double > * > phialpha, double **gedm, ModuleBase::matrix &f_delta, const bool isstress, ModuleBase::matrix &svnl_dalpha)
Definition deepks_force.cpp:14
Definition deepks_param.h:11