JDFTx  1.2.0
Vibrations.h
1 /*-------------------------------------------------------------------
2 Copyright 2013 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_ELECTRONIC_VIBRATIONS_H
21 #define JDFTX_ELECTRONIC_VIBRATIONS_H
22 
23 #include <electronic/common.h>
24 #include <core/vector3.h>
25 #include <core/VectorField.h>
26 
28 {
29 public:
30  double dr;
31  bool centralDiff;
34  bool rotationSym;
35  double omegaMin;
36  double T;
37  double omegaResolution;
38 
39  Vibrations();
40  void setup(Everything* e);
41  void calculate();
42 
43 private:
44  Everything* e;
45  vector3<> getSplit() const; //get optimum latttice coordinates for splitting periodicity in a molecular geometry
46  IonicGradient getCMcoords() const; //get cartesian coordinates of all atoms relative to molecule center of mass
47  VectorField Ptest; //vector field that measures dipole moment in lattice coordinates
48  vector3<> getPel() const; //get electronic dipole moment at current state in cartesian coordinates
49 };
50 
51 #endif //JDFTX_ELECTRONIC_VIBRATIONS_H
bool centralDiff
whether to use central difference derivatives
Definition: Vibrations.h:31
double T
ionic temperature used for entropy and free energy estimation
Definition: Vibrations.h:36
double omegaMin
frequency cutoff for free energy calculation and detailed mode print out
Definition: Vibrations.h:35
Definition: Vibrations.h:27
bool translationSym
whether to use translation symmetry to optimize force calculations
Definition: Vibrations.h:33
Generic multiplet of data arrays (and specialized to triplets for vector fields in real/reciprocal sp...
Definition: Everything.h:41
bool useConstraints
whether to use ion constraints to restrict vibrational modes
Definition: Vibrations.h:32
double omegaResolution
frequency resolution used for identifying and reporting degeneracies
Definition: Vibrations.h:37
Object to hold all the forces.
Definition: IonicMinimizer.h:31
double dr
Perturbation amplitude.
Definition: Vibrations.h:30
bool rotationSym
whether to project out rotational modes: valid only for molecules
Definition: Vibrations.h:34