DFT-FE 1.1.0-pre
Density Functional Theory With Finite-Elements
Loading...
Searching...
No Matches
FiniteDifference.h
Go to the documentation of this file.
1#ifndef DFTFE_FiniteDifference_H
2#define DFTFE_FiniteDifference_H
3
4#include <vector>
5#include <TypeConfig.h>
6
7namespace dftfe
8{
9 namespace utils
10 {
12 {
13 public:
14 static std::vector<double>
16 const double h);
17
18
19
20 // stencil index is the fastest index in stencilDataAllQuadPoints
21 // memory for firstOrderDerivative is assumed to be allocated
22 static void
24 const dftfe::uInt totalStencilSize,
25 const double h,
26 const dftfe::uInt numQuadPoints,
27 const double *stencilDataAllQuadPoints,
28 double *firstOrderDerivative);
29
30 static void
32 const dftfe::uInt totalStencilSize,
33 const double *h,
34 const dftfe::uInt numQuadPoints,
35 const double *stencilDataAllQuadPoints,
36 double *firstOrderDerivative);
37
38
39 // stencil index is the fastest index in stencilDataAllQuadPoints
40 // memory for secondOrderDerivative is assumed to be allocated
41 static void
43 const dftfe::uInt totalStencilSize,
44 const double h,
45 const dftfe::uInt numQuadPoints,
46 const double *stencilDataAllQuadPoints,
47 double *secondOrderDerivative);
48
49 static void
51 const dftfe::uInt totalStencilSize,
52 const double *h,
53 const dftfe::uInt numQuadPoints,
54 const double *stencilDataAllQuadPoints,
55 double *secondOrderDerivative);
56 };
57 } // namespace utils
58} // namespace dftfe
59
60#endif // DFTFE_FiniteDifference_H
Definition FiniteDifference.h:12
static void secondOrderDerivativeOneVariableCentral(const dftfe::uInt totalStencilSize, const double h, const dftfe::uInt numQuadPoints, const double *stencilDataAllQuadPoints, double *secondOrderDerivative)
static std::vector< double > getStencilGridOneVariableCentral(const dftfe::uInt totalStencilSize, const double h)
static void firstOrderDerivativeOneVariableCentral(const dftfe::uInt totalStencilSize, const double h, const dftfe::uInt numQuadPoints, const double *stencilDataAllQuadPoints, double *firstOrderDerivative)
static void secondOrderDerivativeOneVariableCentral(const dftfe::uInt totalStencilSize, const double *h, const dftfe::uInt numQuadPoints, const double *stencilDataAllQuadPoints, double *secondOrderDerivative)
static void firstOrderDerivativeOneVariableCentral(const dftfe::uInt totalStencilSize, const double *h, const dftfe::uInt numQuadPoints, const double *stencilDataAllQuadPoints, double *firstOrderDerivative)
Definition Cell.h:36
Definition pseudoPotentialToDftfeConverter.cc:34
std::uint32_t uInt
Definition TypeConfig.h:10