BraWl
Loading...
Searching...
No Matches
constants.f90
Go to the documentation of this file.
1
10
11 use kinds
12
13 implicit none
14
15 private
16
17 public :: array_int
18
19 public :: k_b_in_ev, k_b_in_ry, ry_to_ev
20
21 !--------------------------------------------------------------------!
22 ! KIND to use for arrays storing simulation configurations. int8 is !
23 ! more than enough, as it stores values in the range -128 to 127. !
24 ! !
25 ! C. D. Woodgate, Bristol 2025 !
26 !--------------------------------------------------------------------!
27
28 integer, parameter :: array_int = int8
29
30 !--------------------------------------------------------------------!
31 ! Hard-coded physical constants. Mainly for conversion of internal !
32 ! units. (Internally the code works with Rydbergs.) !
33 ! !
34 ! Currently taken from the CODATA recommended values 2022 !
35 ! https://physics.nist.gov/cuu/Constants/index.html !
36 ! !
37 ! C. D. Woodgate, Bristol 2025 !
38 !--------------------------------------------------------------------!
39
40 ! 2022 CODATA Value for k_b in eV/K
41 real(real64), parameter :: k_b_in_ev &
42 =8.167333262e-5_real64
43
44 ! 2022 CODATA Value for k_b in eV/K
45 real(real64), parameter :: k_b_in_ry &
46 =8.167333262e-5_real64/13.605693122990_real64
47
48 ! 2022 CODATA value for Rydberg in eV
49 real(real64), parameter :: ry_to_ev = 13.605693122_real64
50
51end module constants
integer, parameter, public array_int
Definition constants.f90:28
real(real64), parameter, public k_b_in_ev
Definition constants.f90:41
real(real64), parameter, public k_b_in_ry
Definition constants.f90:45
real(real64), parameter, public ry_to_ev
Definition constants.f90:49
integer, parameter int8
Very short integer (8 bit, -128 to 127)
Definition kinds.f90:37
integer, parameter real64
Longer "double" (64 bit, approx -1.8e308 to 1.8e308 and covering values down to about 2e-308 magnitud...
Definition kinds.f90:59