DFT-EFE
 
Loading...
Searching...
No Matches
SphericalData.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 Bikash Kanungo
24 */
25
26#ifndef dftefeSphericalData_h
27#define dftefeSphericalData_h
28
29#include <utils/TypeConfig.h>
30#include <vector>
31#include <utils/Point.h>
32#include <utils/Spline.h>
33#include <memory>
35
36namespace dftefe
37{
38 namespace atoms
39 {
41 {
42 public:
43 ~SphericalData() = default;
44
45 virtual std::vector<double>
46 getValue(const std::vector<utils::Point> &point,
47 const utils::Point & origin) = 0;
48
49 virtual std::vector<double>
50 getGradientValue(const std::vector<utils::Point> &point,
51 const utils::Point & origin) = 0;
52
53 virtual std::vector<double>
54 getHessianValue(const std::vector<utils::Point> &point,
55 const utils::Point & origin) = 0;
56
57 virtual double
58 getValue(const utils::Point &point, const utils::Point &origin) = 0;
59
60 virtual std::vector<double>
62 const utils::Point &origin) = 0;
63
64 virtual std::vector<double>
66 const utils::Point &origin) = 0;
67
68 // gives f(r)
69 virtual std::vector<double>
70 getRadialValue(const std::vector<double> &r) = 0;
71
72 // gives Y_lm(theta, phi)
73 virtual std::vector<double>
74 getAngularValue(const std::vector<double> &r,
75 const std::vector<double> &theta,
76 const std::vector<double> &phi) = 0;
77
78 // gives f'(r)
79 virtual std::vector<double>
80 getRadialDerivative(const std::vector<double> &r) = 0;
81
82 // gives Y'(theta, phi) = std::vector{(1/r)dY_lm/dtheta ,
83 // (1/rsin(theta))dY_lm/dphi} return value has size 2 vector for theta hat
84 // and phi hat components of Y_lm derivative
85 virtual std::vector<std::vector<double>>
86 getAngularDerivative(const std::vector<double> &r,
87 const std::vector<double> &theta,
88 const std::vector<double> &phi) = 0;
89
90 virtual std::vector<int>
91 getQNumbers() const = 0;
92
93 virtual double
94 getCutoff() const = 0;
95
96 virtual double
97 getSmoothness() const = 0;
98 };
99
100 } // end of namespace atoms
101} // end of namespace dftefe
102#endif // dftefeSphericalData_h
Definition: SphericalData.h:41
virtual std::vector< double > getHessianValue(const std::vector< utils::Point > &point, const utils::Point &origin)=0
virtual std::vector< double > getRadialDerivative(const std::vector< double > &r)=0
virtual double getCutoff() const =0
virtual std::vector< double > getGradientValue(const std::vector< utils::Point > &point, const utils::Point &origin)=0
virtual std::vector< double > getValue(const std::vector< utils::Point > &point, const utils::Point &origin)=0
virtual double getValue(const utils::Point &point, const utils::Point &origin)=0
virtual std::vector< std::vector< double > > getAngularDerivative(const std::vector< double > &r, const std::vector< double > &theta, const std::vector< double > &phi)=0
virtual std::vector< double > getHessianValue(const utils::Point &point, const utils::Point &origin)=0
virtual std::vector< double > getGradientValue(const utils::Point &point, const utils::Point &origin)=0
virtual std::vector< int > getQNumbers() const =0
virtual double getSmoothness() const =0
virtual std::vector< double > getAngularValue(const std::vector< double > &r, const std::vector< double > &theta, const std::vector< double > &phi)=0
virtual std::vector< double > getRadialValue(const std::vector< double > &r)=0
Definition: PointImpl.h:13
dealii includes
Definition: AtomFieldDataSpherical.cpp:31