-
Notifications
You must be signed in to change notification settings - Fork 0
/
observables.h
107 lines (94 loc) · 2.75 KB
/
observables.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#ifndef OBSERVABLES_H
#define OBSERVABLES_H
#include <vector>
#include <string>
#include "types.h"
class xmlNode;
class observable {
public:
std::string name;
virtual xmlNode createXmlNode() const = 0;
std::string getObsString(int indentsize) const;
};
class ionInteractions : public observable {
public:
std::string source;
std::string wfn;
std::vector<std::string> elementType;
std::vector<int> isAe;
std::vector<int> zval;
std::vector<std::string> ppName;
ionInteractions(const std::string& source, const std::string& wfn, const std::string& name);
ionInteractions(const ionInteractions& ii);
void addPP(const std::string& eType, const std::string& fname);
void addAE(const std::string& eType, int val);
xmlNode createXmlNode() const;
};
class chiesa : public observable {
public:
std::string source;
std::string wfn;
chiesa(const std::string& ss, const std::string& wfns);
chiesa(const chiesa& co);
xmlNode createXmlNode() const;
};
class mpc : public observable {
public:
std::string source;
std::string target;
int isPhysical;
double ecut;
mpc(const std::string& ss, const std::string& ts, double ec, int ip = 0);
mpc(const mpc& mo);
xmlNode createXmlNode() const;
};
class spindensity : public observable {
public:
int isGridOrDr; // 1 for grid, 0 for dr
int isCornerOrCenter; // 1 for corner 0 for center
int hasCell; // 1 if has, 0 if not (default is to use whole cell for periodic calculation)
std::vector<int> grid;
std::vector<double> dr;
std::vector<double> origin;
threeThreeMat<double> cell;
spindensity(int nx, int ny, int nz); // constructor for defined grid
spindensity(double drx, double dry, double drz); // constructor for defined grid spacing
spindensity(const spindensity& sd);
void setCell(int centerOrCorner, double ox, double oy, double oz, const threeThreeMat<double>& ci);
xmlNode createXmlNode() const;
};
class skall : public observable {
public:
std::string source;
std::string target;
int addIonIon;
skall(const std::string& ss, const std::string& ts, int aii = 1);
skall(const skall& ska);
xmlNode createXmlNode() const;
};
class force : public observable {
public:
int addIonIon;
double rcut;
int nbasis;
int weightexp;
force(double rc, int nb, int we, int aii = 1);
force(const force& fo);
xmlNode createXmlNode() const;
};
class ionIon : public observable {
public:
std::string source;
std::string target;
ionIon(const std::string& ss, const std::string& ts);
ionIon(const ionIon& ii);
xmlNode createXmlNode() const;
};
class elecElec : public observable {
std::string source;
std::string target;
elecElec(const std::string& ss, const std::string& ts);
elecElec(const elecElec& ii);
xmlNode createXmlNode() const;
};
#endif