JDFTx  1.2.0
SO3quad.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------
2 Copyright 2011 Ravishankar Sundararaman
3 
4 This file is part of JDFTx.
5 
6 JDFTx is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10 
11 JDFTx is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15 
16 You should have received a copy of the GNU General Public License
17 along with JDFTx. If not, see <http://www.gnu.org/licenses/>.
18 -------------------------------------------------------------------*/
19 
20 #ifndef JDFTX_FLUID_SO3QUAD_H
21 #define JDFTX_FLUID_SO3QUAD_H
22 
25 
30 #include <fluid/S2quad.h>
31 struct Molecule;
32 
34 class SO3quad
35 {
36 public:
38  SO3quad(const S2quad&, const Molecule& molecule);
39 
42  SO3quad(S2quadType type, const Molecule& molecule, unsigned nBeta=0, unsigned nAlpha=0, unsigned nGamma=0);
43 
44  void print();
45  int nOrientations() const;
46  vector3<> euler(int iOrientation) const;
47  double weight(int iOrientation) const;
48 
49 private:
50  int nS1byZn;
51  int nS1;
52  std::vector<vector3<> > eulerS2;
53  std::vector<double> weightS2;
54  void setup(const S2quad&, const Molecule& molecule);
55 };
56 
58 #endif // JDFTX_FLUID_SO3QUAD_H
int nOrientations() const
get cardinality of sampling set
Multi-site molecule model.
Definition: Molecule.h:31
Quadratures on S2 used to generate quadratures on SO(3)
SO3quad(const S2quad &, const Molecule &molecule)
Initialize SO3 quadrature from an S2 quadrature decsription, reduced by symmetries of the given molec...
Quadrature for SO(3)
Definition: SO3quad.h:34
void print()
Summarize euler angles and weights for the quadrature.
S2quadType
List of available quadratures.
Definition: S2quad.h:53
Abstract base class for a S2 quadrature definition (used to generate the SO3 qudarature) ...
Definition: S2quad.h:36
double weight(int iOrientation) const
get weight for the iOrientation&#39;th node
vector3 euler(int iOrientation) const
get euler angles for the iOrientation&#39;th node