[3447] | 1 | !> @file src/inifor_defs.f90 |
---|
[2696] | 2 | !------------------------------------------------------------------------------! |
---|
[2718] | 3 | ! This file is part of the PALM model system. |
---|
[2696] | 4 | ! |
---|
[2718] | 5 | ! PALM is free software: you can redistribute it and/or modify it under the |
---|
| 6 | ! terms of the GNU General Public License as published by the Free Software |
---|
| 7 | ! Foundation, either version 3 of the License, or (at your option) any later |
---|
[2696] | 8 | ! version. |
---|
| 9 | ! |
---|
[2718] | 10 | ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY |
---|
| 11 | ! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
---|
| 12 | ! A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
---|
[2696] | 13 | ! |
---|
| 14 | ! You should have received a copy of the GNU General Public License along with |
---|
| 15 | ! PALM. If not, see <http://www.gnu.org/licenses/>. |
---|
| 16 | ! |
---|
[2718] | 17 | ! Copyright 2017-2018 Leibniz Universitaet Hannover |
---|
| 18 | ! Copyright 2017-2018 Deutscher Wetterdienst Offenbach |
---|
[2696] | 19 | !------------------------------------------------------------------------------! |
---|
| 20 | ! |
---|
| 21 | ! Current revisions: |
---|
| 22 | ! ----------------- |
---|
[3183] | 23 | ! |
---|
| 24 | ! |
---|
| 25 | ! Former revisions: |
---|
| 26 | ! ----------------- |
---|
| 27 | ! $Id: inifor_defs.f90 3764 2019-02-26 13:42:09Z eckhard $ |
---|
[3678] | 28 | ! Bumped version number |
---|
| 29 | ! |
---|
| 30 | ! |
---|
[3764] | 31 | ! 3716 2019-02-05 17:02:38Z eckhard |
---|
| 32 | ! Bumped version number |
---|
| 33 | ! |
---|
| 34 | ! |
---|
[3678] | 35 | ! 3618 2018-12-10 13:25:22Z eckhard |
---|
[3618] | 36 | ! Prefixed module with inifor_ |
---|
| 37 | ! |
---|
| 38 | ! |
---|
| 39 | ! 3613 2018-12-07 18:20:37Z eckhard |
---|
[3613] | 40 | ! Bumped version number |
---|
| 41 | ! |
---|
| 42 | ! |
---|
| 43 | ! 3557 2018-11-22 16:01:22Z eckhard |
---|
[3557] | 44 | ! Updated documentation |
---|
| 45 | ! |
---|
| 46 | ! |
---|
| 47 | ! 3537 2018-11-20 10:53:14Z eckhard |
---|
[3537] | 48 | ! Bumped version number |
---|
| 49 | ! |
---|
| 50 | ! |
---|
| 51 | ! 3534 2018-11-19 15:35:16Z raasch |
---|
[3534] | 52 | ! NEW_LINE intrinsic replaced by ACHAR to avoid compile time error |
---|
| 53 | ! |
---|
| 54 | ! 3456 2018-10-30 14:29:54Z eckhard |
---|
[3456] | 55 | ! Bumped version number |
---|
| 56 | ! |
---|
| 57 | ! |
---|
| 58 | ! 3447 2018-10-29 15:52:54Z eckhard |
---|
[3447] | 59 | ! Renamed source files for compatibilty with PALM build system |
---|
| 60 | ! |
---|
| 61 | ! |
---|
| 62 | ! 3395 2018-10-22 17:32:49Z eckhard |
---|
[3395] | 63 | ! New parameters for computation of geostrophic winds |
---|
| 64 | ! Bumped INIFOR version number |
---|
| 65 | ! |
---|
| 66 | ! |
---|
| 67 | ! 3183 2018-07-27 14:25:55Z suehring |
---|
[3182] | 68 | ! Updated defaults for soil extrapolation steps and nudging time-scale |
---|
| 69 | ! Improved handling of the start date string |
---|
| 70 | ! Added gas constant for water vapor |
---|
| 71 | ! Bumped INIFOR version number |
---|
[2696] | 72 | ! |
---|
| 73 | ! |
---|
[3183] | 74 | ! 3182 2018-07-27 13:36:03Z suehring |
---|
[2696] | 75 | ! Initial revision |
---|
| 76 | ! |
---|
| 77 | ! |
---|
| 78 | ! |
---|
| 79 | ! Authors: |
---|
| 80 | ! -------- |
---|
[3557] | 81 | !> @author Eckhard Kadasch (Deutscher Wetterdienst, Offenbach) |
---|
[2696] | 82 | ! |
---|
| 83 | ! Description: |
---|
| 84 | ! ------------ |
---|
| 85 | !> The defs module provides global constants used in INIFOR. |
---|
| 86 | !------------------------------------------------------------------------------! |
---|
[3680] | 87 | #if defined ( __netcdf ) |
---|
[3618] | 88 | MODULE inifor_defs |
---|
[2696] | 89 | |
---|
| 90 | IMPLICIT NONE |
---|
[3557] | 91 | |
---|
| 92 | ! |
---|
| 93 | !-- Parameters for type definitions |
---|
[2696] | 94 | INTEGER, PARAMETER :: dp = 8 !< double precision (8 bytes = 64 bits) |
---|
| 95 | INTEGER, PARAMETER :: sp = 4 !< single precision (4 bytes = 32 bits) |
---|
| 96 | INTEGER, PARAMETER :: hp = 2 !< half precision (2 bytes = 16 bits) |
---|
| 97 | INTEGER, PARAMETER :: PATH = 140 !< length of file path strings |
---|
| 98 | INTEGER, PARAMETER :: LNAME = 150 !< length of long name strings |
---|
| 99 | INTEGER, PARAMETER :: SNAME = 40 !< length of short name strings |
---|
| 100 | INTEGER, PARAMETER :: DATE = 10 !< length of date strings |
---|
| 101 | |
---|
[3557] | 102 | ! |
---|
| 103 | !-- Trigonomentry |
---|
[2696] | 104 | REAL(dp), PARAMETER :: PI = 3.14159265358979323846264338_dp !< Ratio of a circle's circumference to its diamter [-] |
---|
| 105 | REAL(dp), PARAMETER :: TO_RADIANS = PI / 180.0_dp !< Conversion factor from degrees to radiant [-] |
---|
| 106 | REAL(dp), PARAMETER :: TO_DEGREES = 180.0_dp / PI !< Conversion factor from radians to degrees [-] |
---|
| 107 | |
---|
[3557] | 108 | ! |
---|
| 109 | !-- COSMO-DE parameters |
---|
| 110 | INTEGER, PARAMETER :: WATER_ID = 9 !< Integer corresponding to the water soil type in COSMO-DE [-] |
---|
| 111 | REAL(dp), PARAMETER :: EARTH_RADIUS = 6371229.0_dp !< Earth radius used in COSMO-DE [m] |
---|
| 112 | REAL(dp), PARAMETER :: P_SL = 1e5_dp !< Reference pressure for computation of COSMO-DE's basic state pressure [Pa] |
---|
| 113 | REAL(dp), PARAMETER :: T_SL = 288.15_dp !< Reference temperature for computation of COSMO-DE's basic state pressure [K] |
---|
| 114 | REAL(dp), PARAMETER :: BETA = 42.0_dp !< logarithmic lapse rate, dT / d ln(p), for computation of COSMO-DE's basic |
---|
| 115 | !< state pressure [K] |
---|
| 116 | REAL(dp), PARAMETER :: RD = 287.05_dp !< specific gas constant of dry air, used in computation of COSMO-DE's basic |
---|
| 117 | !< state [J/kg/K] |
---|
| 118 | REAL(dp), PARAMETER :: RV = 461.51_dp !< specific gas constant of water vapor [J/kg/K] |
---|
| 119 | REAL(dp), PARAMETER :: G = 9.80665_dp !< acceleration of Earth's gravity, used in computation of COSMO-DE's basic |
---|
| 120 | !< state [m/s/s] |
---|
| 121 | REAL(dp), PARAMETER :: RHO_L = 1e3_dp !< density of liquid water, used to convert W_SO from [kg/m^2] to [m^3/m^3], |
---|
| 122 | !< in [kg/m^3] |
---|
| 123 | REAL(dp), PARAMETER :: HECTO = 100_dp !< unit conversion factor from hPa to Pa |
---|
[2696] | 124 | |
---|
[3557] | 125 | ! |
---|
| 126 | !-- PALM-4U parameters |
---|
| 127 | REAL(dp), PARAMETER :: OMEGA = 7.29e-5_dp !< angular velocity of Earth's rotation [s^-1] |
---|
| 128 | REAL(dp), PARAMETER :: P_REF = 1e5_dp !< Reference pressure for potential temperature [Pa] |
---|
| 129 | REAL(dp), PARAMETER :: RD_PALM = 287.0_dp !< specific gas constant of dry air, used in computation of PALM-4U's potential temperature [J/kg/K] |
---|
| 130 | REAL(dp), PARAMETER :: CP_PALM = 1005.0_dp !< heat capacity of dry air at constant pressure, used in computation of PALM-4U's potential temperature [J/kg/K] |
---|
[2696] | 131 | |
---|
[3557] | 132 | ! |
---|
| 133 | !-- INIFOR parameters |
---|
| 134 | INTEGER, PARAMETER :: FILL_ITERATIONS = 5 !< Number of iterations for extrapolating soil data into COSMO-DE |
---|
| 135 | !< water cells [-] |
---|
[3182] | 136 | INTEGER, PARAMETER :: FORCING_STEP = 1 !< Number of hours between forcing time steps [h] |
---|
| 137 | REAL(dp), PARAMETER :: NUDGING_TAU = 21600.0_dp !< Nudging relaxation time scale [s] |
---|
[3764] | 138 | CHARACTER(LEN=*), PARAMETER :: VERSION = '1.4.6' !< INIFOR version number |
---|
[3182] | 139 | CHARACTER(LEN=*), PARAMETER :: COPYRIGHT = 'Copyright 2017-2018 Leibniz Universitaet Hannover' // & |
---|
[3534] | 140 | ACHAR( 10 ) // ' Copyright 2017-2018 Deutscher Wetterdienst Offenbach' !< Copyright notice |
---|
[2696] | 141 | |
---|
[3618] | 142 | END MODULE inifor_defs |
---|
[3680] | 143 | #endif |
---|