DFT-EFE
 
Loading...
Searching...
No Matches
SphericalDataAnalytical.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 dftefeSphericalDataAnalytical_h
27#define dftefeSphericalDataAnalytical_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>
35#include <memory>
36#include <utils/Point.h>
37#include <atoms/Defaults.h>
39
40namespace dftefe
41{
42 namespace atoms
43 {
45 {
46 public:
47 // Assumption ScalarSpatialFunctionReal is spherically symmetric . TODO :
48 // enforce this
50 const std::vector<int> qNumbers,
52 const double cutoff,
53 const double smoothness,
54 const SphericalHarmonicFunctions & sphericalHarmonicFunc,
55 const double polarAngleTolerance = SphericalDataDefaults::POL_ANG_TOL,
57
59
60 std::vector<double>
61 getValue(const std::vector<utils::Point> &point,
62 const utils::Point & origin) override;
63
64 std::vector<double>
65 getGradientValue(const std::vector<utils::Point> &point,
66 const utils::Point & origin) override;
67
68 std::vector<double>
69 getHessianValue(const std::vector<utils::Point> &point,
70 const utils::Point & origin) override;
71
72 double
73 getValue(const utils::Point &point, const utils::Point &origin) override;
74
75 std::vector<double>
76 getGradientValue(const utils::Point &point,
77 const utils::Point &origin) override;
78
79 std::vector<double>
80 getHessianValue(const utils::Point &point,
81 const utils::Point &origin) override;
82
83 std::vector<double>
84 getRadialValue(const std::vector<double> &r) override;
85
86 std::vector<double>
87 getAngularValue(const std::vector<double> &r,
88 const std::vector<double> &theta,
89 const std::vector<double> &phi) override;
90
91 std::vector<double>
92 getRadialDerivative(const std::vector<double> &r) override;
93
94 std::vector<std::vector<double>>
95 getAngularDerivative(const std::vector<double> &r,
96 const std::vector<double> &theta,
97 const std::vector<double> &phi) override;
98
99 std::vector<int>
100 getQNumbers() const override;
101
102 double
103 getCutoff() const override;
104
105 double
106 getSmoothness() const override;
107
108 private:
109 std::vector<int> d_qNumbers;
114 double d_cutoff;
116
119 };
120
121 } // end of namespace atoms
122} // end of namespace dftefe
123#endif // dftefeSphericalDataAnalytical_h
Definition: SphericalDataAnalytical.h:45
std::vector< std::vector< double > > getAngularDerivative(const std::vector< double > &r, const std::vector< double > &theta, const std::vector< double > &phi) override
Definition: SphericalDataAnalytical.cpp:212
double d_radiusTolerance
Definition: SphericalDataAnalytical.h:112
double getSmoothness() const override
Definition: SphericalDataAnalytical.cpp:239
size_type d_dim
Definition: SphericalDataAnalytical.h:113
std::vector< double > getAngularValue(const std::vector< double > &r, const std::vector< double > &theta, const std::vector< double > &phi) override
Definition: SphericalDataAnalytical.cpp:190
std::vector< double > getValue(const std::vector< utils::Point > &point, const utils::Point &origin) override
Definition: SphericalDataAnalytical.cpp:88
const utils::ScalarSpatialFunctionReal & d_func
Definition: SphericalDataAnalytical.h:118
std::vector< double > getGradientValue(const std::vector< utils::Point > &point, const utils::Point &origin) override
Definition: SphericalDataAnalytical.cpp:110
double d_smoothness
Definition: SphericalDataAnalytical.h:115
double getCutoff() const override
Definition: SphericalDataAnalytical.cpp:233
std::vector< int > d_qNumbers
Definition: SphericalDataAnalytical.h:109
std::vector< double > getRadialDerivative(const std::vector< double > &r) override
Definition: SphericalDataAnalytical.cpp:202
double d_polarAngleTolerance
Definition: SphericalDataAnalytical.h:110
double d_cutoffTolerance
Definition: SphericalDataAnalytical.h:111
double d_cutoff
Definition: SphericalDataAnalytical.h:114
std::vector< int > getQNumbers() const override
Definition: SphericalDataAnalytical.cpp:227
std::vector< double > getRadialValue(const std::vector< double > &r) override
Definition: SphericalDataAnalytical.cpp:180
std::vector< double > getHessianValue(const std::vector< utils::Point > &point, const utils::Point &origin) override
Definition: SphericalDataAnalytical.cpp:122
const SphericalHarmonicFunctions & d_sphericalHarmonicFunc
Definition: SphericalDataAnalytical.h:117
static const double POL_ANG_TOL
Setting all the SphericalDataDefaults.
Definition: Defaults.h:43
static const size_type DEFAULT_DIM
Definition: Defaults.h:60
Definition: SphericalData.h:41
Definition: SphericalHarmonicFunctions.h:17
Definition: Function.h:10
Definition: PointImpl.h:13
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
unsigned int size_type
Definition: TypeConfig.h:8