MPI-AMRVAC  2.2
The MPI - Adaptive Mesh Refinement - Versatile Advection Code
mod_constants.t
Go to the documentation of this file.
1 !> Module for physical and numeric constants
2 !> Created: 01.09.2012 Oliver Porth (Physical constants)
4 
5  implicit none
6  public
7 
8  ! A very small real number (but above machine precision)
9  double precision, parameter :: smalldouble = 1.d-12
10 
11  !> A very large real number
12  double precision, parameter :: bigdouble = 1.d+99
13 
14  !> A very large integer
15  integer, parameter :: biginteger = 10000000
16 
17  !> \todo Remove these
18  double precision, parameter :: zero = 0.0d0
19  double precision, parameter :: one = 1.0d0
20  double precision, parameter :: two = 2.0d0
21  double precision, parameter :: half = 0.5d0
22  double precision, parameter :: quarter = 0.25d0
23  double precision, parameter :: third = 1.d0/3.0d0
24 
25  !> Pi
26  double precision, parameter :: dpi=3.141592653589793238462643383279502884197169399375105d0
27 
28  !> Proton mass in cgs
29  double precision, parameter :: mp_cgs = 1.672621777d-24 ! g
30 
31  !> Hydrogen mass in cgs
32  double precision, parameter :: mh_cgs = 1.6733d-24 ! g
33 
34  !> Boltzmann constant in cgs
35  double precision, parameter :: kb_cgs = 1.3806488d-16 ! erg K^-1
36 
37  !> Proton mass in SI
38  double precision, parameter :: mp_si = 1.672621777d-27 ! kg
39 
40  !> Boltzmann constant in SI
41  double precision, parameter :: kb_si = 1.3806488d-23 ! J K^-1
42 
43  !> Permeability in SI
44  double precision, parameter :: miu0_si = 1.2566370614d-6 ! H m^-1
45 
46  !> Speed of light in SI
47  double precision, parameter :: c_si = 2.99792458d8 ! m s^-1
48 
49  double precision, PARAMETER :: const_c = 2.99792458d10 ! cm s^-1 ; Speed of light
50  double precision, PARAMETER :: const_me = 9.1093897d-28 ! g ; Electron mass
51  double precision, PARAMETER :: const_mp = 1.672621777d-24 ! g ; Proton mass
52  double precision, PARAMETER :: const_e = 4.8032068d-10 ! g^1/2 cm^3/2 s^-1 ; Electron charge
53  double precision, PARAMETER :: const_msun = 1.98892d33 ! g ; Solar mass
54  double precision, PARAMETER :: const_kb = 1.3806488d-16 ! erg K^-1 ; Boltzmann constant
55  double precision, PARAMETER :: const_h = 6.6260755d-27 ! erg s ; Planck constant
56  ! Conversion factors:
57  double precision, PARAMETER :: const_ev = 1.6021772d-12 ! erg/eV ; Electron volt
58  double precision, PARAMETER :: const_tera = 1.d12 ! - ; Tera
59  double precision, PARAMETER :: const_peta = 1.d15 ! - ; Peta
60  double precision, PARAMETER :: const_years = 3.1536d7 ! s year^-1 ; seconds in a year
61 
62 end module mod_constants
integer, parameter biginteger
A very large integer.
Definition: mod_constants.t:15
double precision, parameter half
Definition: mod_constants.t:21
double precision, parameter const_tera
Definition: mod_constants.t:58
double precision, parameter two
Definition: mod_constants.t:20
double precision, parameter mp_si
Proton mass in SI.
Definition: mod_constants.t:38
double precision, parameter kb_si
Boltzmann constant in SI.
Definition: mod_constants.t:41
double precision, parameter const_mp
Definition: mod_constants.t:51
double precision, parameter c_si
Speed of light in SI.
Definition: mod_constants.t:47
double precision, parameter const_msun
Definition: mod_constants.t:53
double precision, parameter smalldouble
Definition: mod_constants.t:9
Module for physical and numeric constants Created: 01.09.2012 Oliver Porth (Physical constants) ...
Definition: mod_constants.t:3
double precision, parameter bigdouble
A very large real number.
Definition: mod_constants.t:12
double precision, parameter one
Definition: mod_constants.t:19
double precision, parameter const_h
Definition: mod_constants.t:55
double precision, parameter const_peta
Definition: mod_constants.t:59
double precision, parameter const_kb
Definition: mod_constants.t:54
double precision, parameter mh_cgs
Hydrogen mass in cgs.
Definition: mod_constants.t:32
double precision, parameter const_e
Definition: mod_constants.t:52
double precision, parameter const_me
Definition: mod_constants.t:50
double precision, parameter const_ev
Definition: mod_constants.t:57
double precision, parameter const_years
Definition: mod_constants.t:60
double precision, parameter kb_cgs
Boltzmann constant in cgs.
Definition: mod_constants.t:35
double precision, parameter quarter
Definition: mod_constants.t:22
double precision, parameter third
Definition: mod_constants.t:23
double precision, parameter mp_cgs
Proton mass in cgs.
Definition: mod_constants.t:29
double precision, parameter zero
Definition: mod_constants.t:18
double precision, parameter miu0_si
Permeability in SI.
Definition: mod_constants.t:44
double precision, parameter const_c
Definition: mod_constants.t:49
double precision, parameter dpi
Pi.
Definition: mod_constants.t:26