Loading [MathJax]/extensions/tex2jax.js
DFT-EFE
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
AtomSphericalData.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 dftefeAtomSphericalData_h
27#define dftefeAtomSphericalData_h
28
29#include <utils/TypeConfig.h>
30#include <atoms/SphericalData.h>
32#include <memory>
33#include <unordered_map>
34#include <map>
35#include <vector>
36#include <string>
37namespace dftefe
38{
39 namespace atoms
40 {
56 class AtomSphericalData
57 {
58 public:
59 AtomSphericalData(
60 const std::string fileName,
61 const std::vector<std::string> & fieldNames,
62 const std::vector<std::string> & metadataNames,
63 const SphericalHarmonicFunctions &sphericalHarmonicFunc);
64
65 ~AtomSphericalData() = default;
66
67 std::string
68 getFileName() const;
69
70 std::vector<std::string>
71 getFieldNames() const;
72
73 std::vector<std::string>
74 getMetadataNames() const;
75
76 const std::vector<std::shared_ptr<SphericalData>> &
77 getSphericalData(const std::string fieldName) const;
78
79 const std::shared_ptr<SphericalData>
80 getSphericalData(const std::string fieldName,
81 const std::vector<int> &qNumbers) const;
82
83 std::string
84 getMetadata(const std::string metadataName) const;
85
87 getQNumberID(const std::string fieldName,
88 const std::vector<int> &qNumbers) const;
89
91 nSphericalData(std::string fieldName) const;
92
93 private:
94 std::string d_fileName;
95 std::vector<std::string> d_fieldNames;
96 std::vector<std::string> d_metadataNames;
97 std::unordered_map<std::string,
98 std::vector<std::shared_ptr<SphericalData>>>
99 d_sphericalData;
100 std::unordered_map<std::string, std::map<std::vector<int>, size_type>>
101 d_qNumbersToIdMap;
102 std::unordered_map<std::string, std::string> d_metadata;
103 };
104 } // end of namespace atoms
105} // end of namespace dftefe
106#endif // dftefeAtomSphericalData_h
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
unsigned int size_type
Definition: TypeConfig.h:8