PHYEX 0.9.5
PHYsique EXternalisée
Loading...
Searching...
No Matches
icenumber2.func.h
Go to the documentation of this file.
1!MNH_LIC Copyright 1994-2025 CNRS, Meteo-France and Universite Paul Sabatier
2!MNH_LIC This is part of the Meso-NH software governed by the CeCILL-C licence
3!MNH_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
4!MNH_LIC for details. version 1.
5!-----------------------------------------------------------------
6! ******* TO BE INCLUDED IN THE *CONTAINS* OF A SUBROUTINE, IN ORDER TO EASE AUTOMATIC INLINING ******
7! => Don't use drHook !!!
8! Ice crystal number concentration from the ice mixing ratio and the temperature (radiative
9! effective radius of ice crystals as a function of temperature), used by RAIN_ICE_OLD
10! (formerly in mode_rain_ice_old_icenumber2.F90)
11!
12 ELEMENTAL FUNCTION icenumber2(Q_ICE, T3D) RESULT(ICENUMBER)
13
14 IMPLICIT NONE
15!$acc routine seq
16
17 REAL, INTENT(IN) :: q_ice
18 REAL, INTENT(IN) :: t3d
19
20 REAL, PARAMETER:: ice_density = 890.0
21 REAL, PARAMETER:: pi = 4.0*atan(1.)
22 INTEGER idx_rei
23 REAL corr, reice, deice
24 DOUBLE PRECISION lambda
25
26 REAL :: icenumber
27
28!+---+-----------------------------------------------------------------+
29!..Table of lookup values of radiative effective radius of ice crystals
30!.. as a function of Temperature from -94C to 0C. Taken from WRF RRTMG
31!.. radiation code where it is attributed to Jon Egill Kristjansson
32!.. and coauthors.
33!+---+-----------------------------------------------------------------+
34
35 REAL, DIMENSION(95), PARAMETER :: retab = (/5.92779, 6.26422, 6.61973, 6.99539, 7.39234, &
36 7.81177, 8.25496, 8.72323, 9.21800, 9.74075, 10.2930, &
37 10.8765, 11.4929, 12.1440, 12.8317, 13.5581, 14.2319, &
38 15.0351, 15.8799, 16.7674, 17.6986, 18.6744, 19.6955, &
39 20.7623, 21.8757, 23.0364, 24.2452, 25.5034, 26.8125, &
40 27.7895, 28.6450, 29.4167, 30.1088, 30.7306, 31.2943, &
41 31.8151, 32.3077, 32.7870, 33.2657, 33.7540, 34.2601, &
42 34.7892, 35.3442, 35.9255, 36.5316, 37.1602, 37.8078, &
43 38.4720, 39.1508, 39.8442, 40.5552, 41.2912, 42.0635, &
44 42.8876, 43.7863, 44.7853, 45.9170, 47.2165, 48.7221, &
45 50.4710, 52.4980, 54.8315, 57.4898, 60.4785, 63.7898, &
46 65.5604, 71.2885, 75.4113, 79.7368, 84.2351, 88.8833, &
47 93.6658, 98.5739, 103.603, 108.752, 114.025, 119.424, &
48 124.954, 130.630, 136.457, 142.446, 148.608, 154.956, &
49 161.503, 168.262, 175.248, 182.473, 189.952, 197.699, &
50 205.728, 214.055, 222.694, 231.661, 240.971, 250.639/)
51
52!+---+-----------------------------------------------------------------+
53!..From the model 3D temperature field, subtract 179K for which
54!.. index value of retab as a start. Value of corr is for
55!.. interpolating between neighboring values in the table.
56!+---+-----------------------------------------------------------------+
57
58 idx_rei = int(t3d-179.)
59 idx_rei = min(max(idx_rei,1),95)
60 corr = t3d - int(t3d)
61 reice = retab(idx_rei)*(1.-corr) + retab(min(95,idx_rei+1))*corr
62 deice = 2.*reice * 1.e-6
63
64!+---+-----------------------------------------------------------------+
65!..Now we have the final radiative effective size of ice (as function
66!.. of temperature only). This size represents 3rd moment divided by
67!.. second moment of the ice size distribution, so we can compute a
68!.. number concentration from the mean size and mass mixing ratio.
69!.. The mean (radiative effective) diameter is 3./Slope for an inverse
70!.. exponential size distribution. So, starting with slope, work
71!.. backwords to get number concentration.
72!+---+-----------------------------------------------------------------+
73
74 lambda = 3.0 / deice
75 icenumber = q_ice * lambda*lambda*lambda / (pi*ice_density)
76
77!+---+-----------------------------------------------------------------+
78!..Example1: Common ice size coming from Thompson scheme is about 30 microns.
79!.. An example ice mixing ratio could be 0.001 g/kg for a temperature of -50C.
80!.. Remember to convert both into MKS units. This gives N_ice=357652 per kg.
81!..Example2: Lower in atmosphere at T=-10C matching ~162 microns in retab,
82!.. and assuming we have 0.1 g/kg mixing ratio, then N_ice=28122 per kg,
83!.. which is 28 crystals per liter of air if the air density is 1.0.
84!+---+-----------------------------------------------------------------+
85
86 END FUNCTION icenumber2
elemental real function icenumber2(q_ice, t3d)