-
Notifications
You must be signed in to change notification settings - Fork 0
/
vasp_constant.py
executable file
·55 lines (48 loc) · 1.73 KB
/
vasp_constant.py
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
#!/usr/bin/env python
'''
Physical constants used in VASP
'''
# Some important Parameters, to convert to a.u.
# - AUTOA = 1. a.u. in Angstroem
# - RYTOEV = 1 Ry in Ev
# - EVTOJ = 1 eV in Joule
# - AMTOKG = 1 atomic mass unit ("proton mass") in kg
# - BOLKEV = Boltzmanns constant in eV/K
# - BOLK = Boltzmanns constant in Joule/K
AUTOA = 0.529177249
RYTOEV = 13.605826
CLIGHT = 137.037 # speed of light in a.u.
EVTOJ = 1.60217733E-19
AMTOKG = 1.6605402E-27
BOLKEV = 8.6173857E-5
BOLK = BOLKEV * EVTOJ
EVTOKCAL = 23.06
# FELECT = (the electronic charge)/(4*pi*the permittivity of free space)
# in atomic units this is just e^2
# EDEPS = electron charge divided by the permittivity of free space
# in atomic units this is just 4 pi e^2
# HSQDTM = (plancks CONSTANT/(2*PI))**2/(2*ELECTRON MASS)
#
PI = 3.141592653589793238
TPI = 2 * PI
CITPI = 1j * TPI
FELECT = 2 * AUTOA * RYTOEV
EDEPS = 4 * PI * 2 * RYTOEV * AUTOA
HSQDTM = RYTOEV * AUTOA * AUTOA
# vector field A times momentum times e/ (2 m_e c) is an energy
# magnetic moments are supplied in Bohr magnetons
# e / (2 m_e c) A(r) p(r) = energy
# e / (2 m_e c) m_s x ( r - r_s) / (r-r_s)^3 hbar nabla =
# e^2 hbar^2 / (2 m_e^2 c^2) 1/ lenght^3 = energy
# conversion factor from magnetic moment to energy
# checked independently in SI by Gilles de Wijs
MAGMOMTOENERGY = 1 / CLIGHT**2 * AUTOA**3 * RYTOEV
# dimensionless number connecting input and output magnetic moments
# AUTOA e^2 (2 m_e c^2)
MOMTOMOM = AUTOA / CLIGHT / CLIGHT / 2
AUTOA2 = AUTOA * AUTOA
AUTOA3 = AUTOA2 * AUTOA
AUTOA4 = AUTOA2 * AUTOA2
AUTOA5 = AUTOA3 * AUTOA2
# dipole moment in atomic units to Debye
AUTDEBYE = 2.541746