DFT-EFE
 
Loading...
Searching...
No Matches
SphericalDataNumerical.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2021. *
3 * The Regents of the University of Michigan and DFT-EFE developers. *
4 * *
5 * This file is part of the DFT-EFE code. *
6 * *
7 * DFT-EFE is free software: you can redistribute it and/or modify *
8 * it under the terms of the Lesser GNU General Public License as *
9 * published by the Free Software Foundation, either version 3 of *
10 * the License, or (at your option) any later version. *
11 * *
12 * DFT-EFE is distributed in the hope that it will be useful, but *
13 * WITHOUT ANY WARRANTY; without even the implied warranty *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
15 * See the Lesser GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU Lesser General Public *
18 * License at the top level of DFT-EFE distribution. If not, see *
19 * <https://www.gnu.org/licenses/>. *
20 ******************************************************************************/
21
22/*
23 * @author Avirup Sircar
24 */
25
26#ifndef dftefeSphericalDataNumerical_h
27#define dftefeSphericalDataNumerical_h
28
29#include <utils/TypeConfig.h>
30#include <vector>
31#include <utils/Point.h>
32#include <atoms/SphericalData.h>
33#include <utils/Spline.h>
34#include <memory>
35#include <atoms/Defaults.h>
36
37namespace dftefe
38{
39 namespace atoms
40 {
42 {
43 public:
45 const std::vector<int> qNumbers,
46 const std::vector<double> radialPoints,
47 const std::vector<double> radialValues,
48 const double cutoff,
49 const double smoothness,
50 const double polarAngleTolerance = SphericalDataDefaults::POL_ANG_TOL,
51 const double cutoffTolerance = SphericalDataDefaults::CUTOFF_TOL,
52 const double radiusTolerance = SphericalDataDefaults::RADIUS_TOL,
54
56
57 void
58 initSpline();
59
60 double
61 getValue(const utils::Point &point, const utils::Point &origin) override;
62
63 std::vector<double>
64 getGradientValue(const utils::Point &point,
65 const utils::Point &origin) override;
66
67 std::vector<double>
68 getHessianValue(const utils::Point &point,
69 const utils::Point &origin) override;
70
71 std::vector<int>
72 getQNumbers() const override;
73
74 double
75 getCutoff() const override;
76
77 double
78 getSmoothness() const override;
79
80 private:
81 std::vector<int> d_qNumbers;
82 std::vector<double> d_radialPoints;
83 std::vector<double> d_radialValues;
84 double d_cutoff;
86 std::shared_ptr<const utils::Spline> d_spline;
91 };
92
93 } // end of namespace atoms
94} // end of namespace dftefe
95#endif // dftefeSphericalDataNumerical_h
static const double POL_ANG_TOL
Setting all the SphericalDataDefaults.
Definition: Defaults.h:41
static const size_type DEFAULT_DIM
Definition: Defaults.h:58
static const double RADIUS_TOL
Definition: Defaults.h:53
static const double CUTOFF_TOL
Definition: Defaults.h:47
Definition: SphericalDataNumerical.h:42
std::vector< double > getGradientValue(const utils::Point &point, const utils::Point &origin) override
Definition: SphericalDataNumerical.cpp:318
std::shared_ptr< const utils::Spline > d_spline
Definition: SphericalDataNumerical.h:86
std::vector< int > d_qNumbers
Definition: SphericalDataNumerical.h:81
std::vector< double > d_radialPoints
Definition: SphericalDataNumerical.h:82
size_type d_dim
Definition: SphericalDataNumerical.h:90
std::vector< int > getQNumbers() const override
Definition: SphericalDataNumerical.cpp:367
double getCutoff() const override
Definition: SphericalDataNumerical.cpp:373
double d_smoothness
Definition: SphericalDataNumerical.h:85
double d_cutoffTolerance
Definition: SphericalDataNumerical.h:88
double d_radiusTolerance
Definition: SphericalDataNumerical.h:89
double getSmoothness() const override
Definition: SphericalDataNumerical.cpp:379
std::vector< double > getHessianValue(const utils::Point &point, const utils::Point &origin) override
Definition: SphericalDataNumerical.cpp:343
double d_cutoff
Definition: SphericalDataNumerical.h:84
double getValue(const utils::Point &point, const utils::Point &origin) override
Definition: SphericalDataNumerical.cpp:297
void initSpline()
Definition: SphericalDataNumerical.cpp:290
double d_polarAngleTolerance
Definition: SphericalDataNumerical.h:87
std::vector< double > d_radialValues
Definition: SphericalDataNumerical.h:83
Definition: SphericalData.h:40
Definition: PointImpl.h:13
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
unsigned int size_type
Definition: TypeConfig.h:8