JDFTx  1.2.0
WannierMinimizerFD.h
1 /*-------------------------------------------------------------------
2 Copyright 2014 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_WANNIER_WANNIERMINIMIZERFD_H
21 #define JDFTX_WANNIER_WANNIERMINIMIZERFD_H
22 
23 #include <wannier/WannierMinimizer.h>
24 
26 {
27 public:
28  WannierMinimizerFD(const Everything& e, const Wannier& wannier);
29 
30  void initialize(int iSpin);
31  double getOmega(bool grad);
32  double getOmegaI(bool grad);
33  WannierGradient precondition(const WannierGradient& grad);
34 
36  struct Edge
37  { double wb;
39  unsigned ik;
40  Kpoint point;
42  };
43  std::vector< std::vector<Edge> > edges;
44  matrix kHelmholtzInv;
45 };
46 
47 #endif //JDFTX_WANNIER_WANNIERMINIMIZERFD_H
Base class for different wannier minimizers:
Definition: WannierMinimizer.h:48
void initialize(int iSpin)
Prepare for minimization of spin channel iSpin.
General complex matrix.
Definition: matrix.h:58
Definition: WannierMinimizer.h:32
Kpoint point
description of neighbour (source state, rotation, translation etc.)
Definition: WannierMinimizerFD.h:40
matrix M0
initial overlap matrix for this pair
Definition: WannierMinimizerFD.h:41
An edge of the k-mesh involved in the finite difference formula.
Definition: WannierMinimizerFD.h:36
double wb
weight of neighbour
Definition: WannierMinimizerFD.h:37
double getOmega(bool grad)
Definition: Everything.h:41
unsigned ik
index of neighbour in kMesh
Definition: WannierMinimizerFD.h:39
vector3 b
displacement to neighbour
Definition: WannierMinimizerFD.h:38
Definition: WannierMinimizerFD.h:25
Compute Maximally-Localized Wannier Functions.
Definition: Wannier.h:29