ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
h_ewald_pw.h
Go to the documentation of this file.
1#ifndef H_EWALD_PW_H
2#define H_EWALD_PW_H
3
6
7#include <fstream>
8
10{
11 public:
12 H_Ewald_pw();
14
15 // compute the Ewald energy
16 static double compute_ewald(
17 const UnitCell &cell,
18 const ModulePW::PW_Basis *rho_basis,
19 const ModuleBase::ComplexMatrix &strucFac,
20 int test_energy,
21 std::ofstream &output_stream);
22
23 public:
24 static int estimate_mxr(const double &rmax, const ModuleBase::Matrix3 &bg);
25
26 static void rgen(
28 const double &rmax,
29 int *irr,
30 const ModuleBase::Matrix3 &at,
31 const ModuleBase::Matrix3 &bg,
33 double *r2,
34 const int mxr,
35 int &nrm,
36 int test_energy);
37
38 // the coefficient of ewald method
39 static double alpha;
40 static int mxr;
41};
42
43#endif // ewald energy
~H_Ewald_pw()
Definition h_ewald_pw.cpp:13
static void rgen(const ModuleBase::Vector3< double > &dtau, const double &rmax, int *irr, const ModuleBase::Matrix3 &at, const ModuleBase::Matrix3 &bg, ModuleBase::Vector3< double > *r, double *r2, const int mxr, int &nrm, int test_energy)
Definition h_ewald_pw.cpp:312
static int estimate_mxr(const double &rmax, const ModuleBase::Matrix3 &bg)
Definition h_ewald_pw.cpp:15
static double compute_ewald(const UnitCell &cell, const ModulePW::PW_Basis *rho_basis, const ModuleBase::ComplexMatrix &strucFac, int test_energy, std::ofstream &output_stream)
Definition h_ewald_pw.cpp:33
static int mxr
Definition h_ewald_pw.h:40
static double alpha
Definition h_ewald_pw.h:39
H_Ewald_pw()
Definition h_ewald_pw.cpp:12
Definition complexmatrix.h:11
3x3 matrix and related mathamatical operations
Definition matrix3.h:15
3 elements vector
Definition vector3.h:21
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