binas.F90 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. module Binas
  2. implicit none
  3. public
  4. !
  5. !ProTeX: 1.14-AJS
  6. !
  7. !BOI
  8. !
  9. ! !TITLE: Binas - geometrical and physical constants
  10. ! !AUTHORS: Arjo Segers
  11. ! !AFFILIATION: KNMI
  12. ! !DATE: \today
  13. !
  14. ! !INTRODUCTION: Introduction
  15. !
  16. ! 'BINAS' is the name an in The Netherlands common used table-book
  17. ! with scientific constants and formulae.
  18. !
  19. !EOI
  20. !
  21. !BOC
  22. ! ---------------------------------------------------------------
  23. ! gonio
  24. ! ---------------------------------------------------------------
  25. ! defintions for pi :
  26. ! o old definition:
  27. !real, parameter :: pi = 3.1415927
  28. ! o EMOS definition (emos/interpolation/strlat.F, parameter PPI)
  29. real, parameter :: pi = 3.14159265358979
  30. ! two pi :
  31. real, parameter :: twopi = 2*pi
  32. ! factor to convert to radians from degrees:
  33. real, parameter :: deg2rad = pi/180.0 ! rad/deg
  34. ! ---------------------------------------------------------------
  35. ! earth
  36. ! ---------------------------------------------------------------
  37. ! Radius of earth as used in EMOS library (ECMWF model),
  38. ! see for example "jvod2uv.F"
  39. ! NOTE: the value 6.375e6 was used in TM !
  40. real, parameter :: ae = 6.371e6 ! m
  41. ! acceleration of gravity:
  42. !real, parameter :: grav = 9.81 ! m/s2
  43. real, parameter :: grav = 9.80665 ! m/s2
  44. ! Earth's angular speed of rotation
  45. ! Omega = 2 * pi * (365.25/364.25) / (86400.0)
  46. real, parameter :: Omega = 7.292e-5 ! rad/s
  47. ! ---------------------------------------------------------------
  48. ! molecules, mols, etc
  49. ! ---------------------------------------------------------------
  50. ! Avogadro number
  51. real, parameter :: Avog = 6.02205e23 ! mlc/mol
  52. ! Dobson units:
  53. real,parameter :: Dobs = 2.68668e16 ! (mlc/cm2) / DU
  54. !
  55. ! molar weights of components
  56. !
  57. ! naming convention:
  58. ! o old names 'xm***' are in g/mol
  59. ! o new names 'xm_***' are in kg/mol
  60. !
  61. ! atomic weights:
  62. real, parameter :: xm_h = 1.00790e-3 ! kg/mol
  63. real, parameter :: xm_n = 14.00670e-3 ! kg/mol
  64. real, parameter :: xm_c = 12.01115e-3 ! kg/mol
  65. real, parameter :: xm_s = 32.06400e-3 ! kg/mol
  66. real, parameter :: xm_o = 15.99940e-3 ! kg/mol
  67. real, parameter :: xm_cl = 35.45300e-3 ! kg/mol
  68. real, parameter :: xm_rn222 = 222.0e-3 ! kg/mol
  69. real, parameter :: xm_pb210 = 210.0e-3 ! kg/mol
  70. ! molecule weights:
  71. real, parameter :: xm_h2o = xm_h*2 + xm_o ! kg/mol
  72. real, parameter :: xm_o3 = xm_o * 3 ! kg/mol
  73. ! mass of air
  74. real, parameter :: xm_air = 28.964e-3 ! kg/mol
  75. real, parameter :: xmair = 28.94 ! g/mol; old name!
  76. ! mlc/mol
  77. ! [cdob] = ------------------------ = DU / (kg/m2)
  78. ! kg/mol cm2/m2 mlc/cm2/DU
  79. !
  80. real, parameter :: cdob_o3 = Avog / ( xm_o3 * 1.0e4 * Dobs ) ! DU/(kg/m2)
  81. ! ---------------------------------------------------------------
  82. ! gas
  83. ! ---------------------------------------------------------------
  84. ! gas constant
  85. real, parameter :: Rgas = 8.3144 ! J/mol/K
  86. ! gas constant for dry air
  87. !real, parameter :: rgas_x = 287.05
  88. ! NEW:
  89. ! Rgas_air = Rgas / xmair = 287.0598
  90. real, parameter :: Rgas_air = Rgas / xm_air ! J/kg/K
  91. ! water vapour
  92. !real,parameter :: rgasv = 461.51
  93. real, parameter :: Rgas_h2o = Rgas / xm_h2o ! J/kg/K
  94. ! standard pressure
  95. real, parameter :: p0 = 1.0e5 ! Pa
  96. !real, parameter :: p0 = 1.01325e5 ! Pa <-- suggestion Bram Bregman
  97. ! global mean pressure:
  98. real,parameter :: p_global = 98500.0 ! Pa
  99. ! specific heat of dry air at constant pressure
  100. !real, parameter :: cp0 = 1004.0 ! J/kg/K
  101. real, parameter :: cp_air = 1004.0 ! J/kg/K
  102. ! Latent heat of evaporation
  103. real, parameter :: lvap = 2.5e6 ! [J kg-1]
  104. ! Latent heat of condensation at 0 deg Celcius
  105. ! (heat (J) necesarry to evaporate 1 kg of water)
  106. real, parameter :: Lc = 22.6e5 ! J/kg
  107. ! kappa = R/cp = 2/7
  108. real, parameter :: kappa = 2.0/7.0
  109. ! 'kapa' is probably 'kappa' ....
  110. !real, parameter :: kapa = 0.286
  111. ! Von Karman constant (dry_dep)
  112. real, parameter :: vkarman = 0.4
  113. ! Boltzmann constant:
  114. real, parameter :: kbolz = 1.38066e-23 ! J/K
  115. ! ---------------------------------------------------------------
  116. ! virtual temperature : Tv = T * ( 1 + eps1*q )
  117. ! ---------------------------------------------------------------
  118. real, parameter :: eps = Rgas_air / Rgas_h2o
  119. real, parameter :: eps1 = ( 1.0 - eps )/eps
  120. ! ---------------------------------------------------------------
  121. ! other
  122. ! ---------------------------------------------------------------
  123. ! melting point
  124. real, parameter :: T0 = 273.16 ! K
  125. ! Rv/Rd
  126. real, parameter :: gamma = 6.5e-3
  127. ! density of pure water at 0 deg C
  128. real, parameter :: rol = 1000. ! kg/m^3
  129. ! density of ice water at 0 deg C
  130. real, parameter :: roi = 917. ! kg/m^3
  131. ! Planck times velocity of light
  132. real, parameter :: hc = 6.626176e-34 * 2.997924580e8 ! Jm
  133. ! ---------------------------------------------------------------
  134. ! end
  135. ! ---------------------------------------------------------------
  136. !EOC
  137. end module Binas