DFT-EFE
 
Loading...
Searching...
No Matches
EnrichmentManager.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 dftefeEnrichmentManager_h
27#define dftefeEnrichmentManager_h
28
29#include <utils/TypeConfig.h>
30#include <memory>
31#include <map>
32#include <vector>
33namespace dftefe
34{
35 namespace basis
36 {
44 template <typename ValueTypeBasisData, size_type dim>
46 {
47 //
48 // types
49 //
50 public:
54 virtual ~EnrichmentManager() = default;
55
61 virtual int
62 nFunctions() const = 0;
63
72 virtual ValueTypeBasisData
73 getValue(const size_type functionId, const utils::Point &point) const = 0;
74
83 virtual ValueTypeBasisData
84 getValue(const size_type functionId,
85 const std::vector<double> &point) const = 0;
86
87
97 virtual std::vector<ValueTypeBasisData>
98 getValues(const int functionId,
99 const std::vector<utils::Point> &points) const = 0;
100
111 virtual std::vector<ValueTypeBasisData>
112 getValues(const int functionId,
113 const std::vector<std::vector<double>> &points) const = 0;
114
126 virtual std::vector<ValueTypeBasisData>
128 const utils::Point &point,
129 const size_type derivativeOrder) const = 0;
130
142 virtual ValueTypeBasisData
144 const std::vector<double> &point,
145 const size_type derivativeOrder) const = 0;
146
159 virtual std::vector<std::vector<ValueTypeBasisData>>
160 getDerivativeValues(const int functionId,
161 const std::vector<utils::Point> &points,
162 const size_type derivativeOrder) const = 0;
163
176 virtual std::vector<std::vector<ValueTypeBasisData>>
177 getDerivativeValues(const int functionId,
178 const std::vector<std::vector<double>> &points,
179 const size_type derivativeOrder) const = 0;
180 };
181
182 } // end of namespace basis
183} // end of namespace dftefe
184
185#endif // dftefeEnrichmentManager_h
Base class which provides access to the enrichment functions.
Definition: EnrichmentManager.h:46
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< 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.
virtual int nFunctions() const =0
Get number of enrichement functions.
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.
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 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 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 ValueTypeBasisData getValue(const size_type functionId, const utils::Point &point) const =0
Get the value of an enrichment function at a point.
virtual ~EnrichmentManager()=default
Destructor.
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.
Definition: PointImpl.h:13
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
unsigned int size_type
Definition: TypeConfig.h:8