DFT-EFE
 
Loading...
Searching...
No Matches
EnrichmentManagerAtomSphericalNumerical.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 dftefeEnrichmentManagerAtomSphericalNumerical_h
27#define dftefeEnrichmentManagerAtomSphericalNumerical_h
28
29#include <utils/TypeConfig.h>
30#include <utils/Point.h>
31#include <physics/atoms/AtomsData.h>
32#include <memory>
33#include <map>
34#include <vector>
35namespace dftefe
36{
37 namespace basis
38 {
60 template <typename ValueTypeBasisData, size_type dim>
62 {
63 public:
75 const std::vector<std::string> > &atomSymbols,
76 const std::vector<utils::Point> &atomCoordinates,
77 const AtomsData & atomsData);
78
83
89 virtual int
90 nFunctions() const = 0;
91
100 virtual ValueTypeBasisData
101 getValue(const size_type functionId, const utils::Point &point) const = 0;
102
111 virtual ValueTypeBasisData
112 getValue(const size_type functionId,
113 const std::vector<double> &point) const = 0;
114
115
125 virtual std::vector<ValueTypeBasisData>
126 getValues(const int functionId,
127 const std::vector<utils::Point> &points) const = 0;
128
139 virtual std::vector<ValueTypeBasisData>
140 getValues(const int functionId,
141 const std::vector<std::vector<double>> &points) const = 0;
142
154 virtual std::vector<ValueTypeBasisData>
156 const utils::Point &point,
157 const size_type derivativeOrder) const = 0;
158
170 virtual ValueTypeBasisData
172 const std::vector<double> &point,
173 const size_type derivativeOrder) const = 0;
174
187 virtual std::vector<std::vector<ValueTypeBasisData>>
188 getDerivativeValues(const int functionId,
189 const std::vector<utils::Point> &points,
190 const size_type derivativeOrder) const = 0;
191
204 virtual std::vector<std::vector<ValueTypeBasisData>>
205 getDerivativeValues(const int functionId,
206 const std::vector<std::vector<double>> &points,
207 const size_type derivativeOrder) const = 0;
208 };
209 } // end of namespace basis
210} // end of namespace dftefe
211
212#endif // dftefeEnrichmentManagerAtomSphericalNumerical_h
A class which provides access to spherical atom-centered enrichment functions, with the radial part g...
Definition: EnrichmentManagerAtomSphericalNumerical.h:62
virtual ValueTypeBasisData getValue(const size_type functionId, const std::vector< double > &point) const =0
Get the value of an enrichment function at a point.
virtual std::vector< std::vector< ValueTypeBasisData > > getDerivativeValues(const int functionId, const std::vector< utils::Point > &points, const size_type derivativeOrder) const =0
Get the derivative of an enriched function for a set of points.
virtual std::vector< ValueTypeBasisData > getValues(const int functionId, const std::vector< utils::Point > &points) const =0
Get the value of an enriched function for a set of points.
virtual int nFunctions() const =0
Get number of enrichement functions.
virtual std::vector< ValueTypeBasisData > getDerivativeValue(const size_type functionId, const utils::Point &point, const size_type derivativeOrder) const =0
Get the derivative of an enrichment function at a point.
EnrichmentManagerAtomSphericalNumerical(const std::vector< std::string > > &atomSymbols, const std::vector< utils::Point > &atomCoordinates, const AtomsData &atomsData)
Constructor.
virtual std::vector< std::vector< ValueTypeBasisData > > getDerivativeValues(const int functionId, const std::vector< std::vector< double > > &points, const size_type derivativeOrder) const =0
Get the derivative of an enriched function for a set of points.
virtual ValueTypeBasisData getDerivativeValue(const size_type functionId, const std::vector< double > &point, const size_type derivativeOrder) const =0
Get the derivative of an enrichment function at a point.
virtual ValueTypeBasisData getValue(const size_type functionId, const utils::Point &point) const =0
Get the value of an enrichment function at a point.
virtual std::vector< ValueTypeBasisData > getValues(const int functionId, const std::vector< std::vector< double > > &points) const =0
Get the value of an enriched function for a set of points.
Definition: PointImpl.h:13
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
unsigned int size_type
Definition: TypeConfig.h:8