DFT-EFE
 
Loading...
Searching...
No Matches
AtomSphericalDataContainer.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 dftefeAtomSphericalDataContainer_h
27#define dftefeAtomSphericalDataContainer_h
28
29#include <utils/TypeConfig.h>
30#include <unordered_map>
31#include <map>
32#include <string>
34#include <atoms/SphericalData.h>
35namespace dftefe
36{
37 namespace atoms
38 {
53 class AtomSphericalDataContainer
54 {
55 public:
65 AtomSphericalDataContainer(
66 const std::map<std::string, std::string> &atomSymbolToFilename,
67 const std::vector<std::string> & fieldNames,
68 const std::vector<std::string> & metadataNames);
69
73 ~AtomSphericalDataContainer() = default;
74
83 const std::vector<std::shared_ptr<SphericalData>> &
84 getSphericalData(std::string atomSymbol,
85 const std::string fieldName) const;
86
87
88 const std::shared_ptr<SphericalData>
89 getSphericalData(std::string atomSymbol,
90 const std::string fieldName,
91 const std::vector<int> &qNumbers) const;
92
93 std::string
94 getMetadata(std::string atomSymbol, std::string metadataName) const;
95
97 nSphericalData(std::string atomSymbol, std::string fieldName) const;
98
99 std::vector<std::vector<int>>
100 getQNumbers(std::string atomSymbol, const std::string fieldName) const;
101
103 getQNumberID(std::string atomSymbol,
104 const std::string fieldName,
105 const std::vector<int> &qNumbers) const;
106
107 std::map<std::string, std::string>
108 atomSymbolToFileMap() const; // Name is fine ??
109 // added a d_atomSymbolToFilename return function
110
111 private:
112 std::map<std::string, std::string> d_atomSymbolToFilename;
113 std::vector<std::string> d_fieldNames;
114 std::vector<std::string> d_metadataNames;
115 std::unordered_map<std::string, AtomSphericalData>
116 d_mapAtomSymbolToAtomSphericalData;
117
118 }; // end of class AtomSphericalDataContainer
119 } // end of namespace atoms
120} // end of namespace dftefe
121#endif // dftefeAtomSphericalDataContainer_h
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
unsigned int size_type
Definition: TypeConfig.h:8