PHYEX 0.9.5
PHYsique EXternalisée
Loading...
Searching...
No Matches
modd_rain_ice_descrn.F90
Go to the documentation of this file.
1!MNH_LIC Copyright 1994-2014 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! ##########################
7
8!$ACDC methods
9
10! ##########################
11!> @file
12!!**** *MODD_RAIN_ICE_DESCR_n* - declaration of the microphysical descriptive
13!! constants for use in the warm and cold schemes.
14!!
15!! PURPOSE
16!! -------
17! The purpose of this declarative module is to declare the microphysical
18! constants. This includes the descriptive parameters for the raindrop and
19! the ice crystal habits and the parameters relevant of the dimensional
20! distributions.
21!
22! m(D) = XAx * D**XBx : Mass-MaxDim relationship
23! v(D) = XCx * D**XDx : Fallspeed-MaxDim relationship
24! N(Lbda) = XCCx * Lbda**XCXx : NumberConc-Slopeparam relationship
25! XF0x, XF1x, XF2x : Ventilation factors
26! XC1x : Shape parameter for deposition
27!
28! and
29!
30! XALPHAx, XNUx : Generalized GAMMA law
31! Lbda = XLBx * (r_x*rho_dref)**XLBEXx : Slope parameter of the
32! distribution law
33!
34!!
35!!** IMPLICIT ARGUMENTS
36!! ------------------
37!! None
38!!
39!! REFERENCE
40!! ---------
41!! Book2 of documentation of Meso-NH (MODD_RAIN_ICE_DESCR)
42!!
43!! AUTHOR
44!! ------
45!! J.-P. Pinty *Laboratoire d'Aerologie*
46!!
47!! MODIFICATIONS
48!! -------------
49!! Original 04/12/95
50!! J.-P. Pinty 29/11/02 add ICE4
51!! C. LAC 26/01/2012 : suppression de XCONC qui n'était pas utilisé
52!! B.J.K. Engdahl 2022 added XCCR2 for ICET
53!!
54!-------------------------------------------------------------------------------
55!
56!* 0. DECLARATIONS
57! ------------
58!
60IMPLICIT NONE
62REAL :: xcexvt ! air density fall speed correction
63!
64REAL :: xac,xbc,xcc,xdc ! Cloud droplet charact.
65REAL :: xar,xbr,xcr,xdr,xccr,xccr2,xf0r,xf1r,xc1r ! Raindrop charact.
66REAL :: xai,xbi,xc_i,xdi ,xf0i,xf2i,xc1i ! Cloud ice charact.
67REAL :: xas,xbs,xcs,xds,xccs,xcxs,xf0s,xf1s,xc1s ! Snow/agg. charact.
68REAL :: xag,xbg,xcg,xdg,xccg,xcxg,xf0g,xf1g,xc1g ! Graupel charact.
69REAL :: xah,xbh,xch,xdh,xcch,xcxh,xf0h,xf1h,xc1h ! Hail charact.
70!
71REAL :: xalphac,xnuc,xalphac2,xnuc2, xlbexc ! Cloud droplet distribution parameters
72REAL,DIMENSION(2) :: xlbc ! Cloud droplet distribution parameters
73REAL :: xalphar,xnur,xlbexr,xlbr ! Raindrop distribution parameters
74REAL :: xalphai,xnui,xlbexi,xlbi ! Cloud ice distribution parameters
75REAL :: xalphas,xnus,xlbexs,xlbs,xns ! Snow/agg. distribution parameters
76REAL :: xalphag,xnug,xlbexg,xlbg ! Graupel distribution parameters
77REAL :: xalphah,xnuh,xlbexh,xlbh ! Hail distribution parameters
78!
79REAL :: xfvelos ! factor for snow fall speed after Thompson (2008)
80REAL :: xtrans_mp_gammas ! coefficient to convert lambdas for gamma function
81REAL :: xlbdar_max,xlbdas_min,xlbdas_max,xlbdag_max ! Max values allowed for the shape
82 ! parameters (rain,snow,graupeln)
83!
84REAL,DIMENSION(:),ALLOCATABLE :: xrtmin ! Min values allowed for the mixing ratios
85REAL :: xconc_sea ! Diagnostic concentration of droplets over sea
86REAL :: xconc_land ! Diagnostic concentration of droplets over land
87REAL :: xconc_urban ! Diagnostic concentration of droplets over urban area
88END TYPE rain_ice_descr_t
89!
90TYPE(rain_ice_descr_t), DIMENSION(JPMODELMAX), TARGET, SAVE :: rain_ice_descr_model
91TYPE(rain_ice_descr_t), POINTER, SAVE :: rain_ice_descrn => null()
92!
93REAL,DIMENSION(:),POINTER :: xlbc=>null(), xrtmin=>null()
94REAL, POINTER :: xcexvt => null(), &
95 xac => null(), &
96 xbc => null(), &
97 xcc => null(), &
98 xdc => null(), &
99 xar => null(), &
100 xbr => null(), &
101 xcr => null(), &
102 xdr => null(), &
103 xccr => null(), &
104 xccr2 => null(), &
105 xf0r => null(), &
106 xf1r => null(), &
107 xc1r => null(), &
108 xai => null(), &
109 xbi => null(), &
110 xc_i => null(), &
111 xdi => null(), &
112 xf0i => null(), &
113 xf2i => null(), &
114 xc1i => null(), &
115 xas => null(), &
116 xbs => null(), &
117 xcs => null(), &
118 xds => null(), &
119 xccs => null(), &
120 xcxs => null(), &
121 xf0s => null(), &
122 xf1s => null(), &
123 xc1s => null(), &
124 xag => null(), &
125 xbg => null(), &
126 xcg => null(), &
127 xdg => null(), &
128 xccg => null(), &
129 xcxg => null(), &
130 xf0g => null(), &
131 xf1g => null(), &
132 xc1g => null(), &
133 xah => null(), &
134 xbh => null(), &
135 xch => null(), &
136 xdh => null(), &
137 xcch => null(), &
138 xcxh => null(), &
139 xf0h => null(), &
140 xf1h => null(), &
141 xc1h => null(), &
142 xalphac => null(), &
143 xnuc => null(), &
144 xalphac2 => null(), &
145 xnuc2 => null(), &
146 xlbexc => null(), &
147 xalphar => null(), &
148 xnur => null(), &
149 xlbexr => null(), &
150 xlbr => null(), &
151 xalphai => null(), &
152 xnui => null(), &
153 xlbexi => null(), &
154 xlbi => null(), &
155 xalphas => null(), &
156 xnus => null(), &
157 xns => null(), &
158 xlbexs => null(), &
159 xlbs => null(), &
160 xalphag => null(), &
161 xnug => null(), &
162 xlbexg => null(), &
163 xlbg => null(), &
164 xalphah => null(), &
165 xnuh => null(), &
166 xlbexh => null(), &
167 xlbh => null(), &
168 xlbdar_max => null(), &
169 xlbdas_max => null(), &
170 xlbdag_max => null(), &
171 xconc_sea => null(), &
172 xconc_land => null(), &
173 xconc_urban => null(), &
174 xfvelos => null(), &
175 xtrans_mp_gammas => null(), &
176 xlbdas_min => null()
177!
178CONTAINS
179SUBROUTINE rain_ice_descr_goto_model(KFROM, KTO)
180!! This subroutine associate all the pointers to the right component of
181!! the right strucuture. A value can be accessed through the structure RAIN_ICE_DESCRN
182!! or through the strucuture RAIN_ICE_DESCR_MODEL(KTO) or directly through these pointers.
183IMPLICIT NONE
184INTEGER, INTENT(IN) :: KFROM, KTO
185!
186IF(.NOT. ASSOCIATED(rain_ice_descrn, rain_ice_descr_model(kto))) THEN
187 !
189 !
190 xcexvt => rain_ice_descrn%XCEXVT
191 xac => rain_ice_descrn%XAC
192 xbc => rain_ice_descrn%XBC
193 xcc => rain_ice_descrn%XCC
194 xdc => rain_ice_descrn%XDC
195 xar => rain_ice_descrn%XAR
196 xbr => rain_ice_descrn%XBR
197 xcr => rain_ice_descrn%XCR
198 xdr => rain_ice_descrn%XDR
199 xccr => rain_ice_descrn%XCCR
200 xccr2 => rain_ice_descrn%XCCR2
201 xf0r => rain_ice_descrn%XF0R
202 xf1r => rain_ice_descrn%XF1R
203 xc1r => rain_ice_descrn%XC1R
204 xai => rain_ice_descrn%XAI
205 xbi => rain_ice_descrn%XBI
206 xc_i => rain_ice_descrn%XC_I
207 xdi => rain_ice_descrn%XDI
208 xf0i => rain_ice_descrn%XF0I
209 xf2i => rain_ice_descrn%XF2I
210 xc1i => rain_ice_descrn%XC1I
211 xas => rain_ice_descrn%XAS
212 xbs => rain_ice_descrn%XBS
213 xcs => rain_ice_descrn%XCS
214 xds => rain_ice_descrn%XDS
215 xccs => rain_ice_descrn%XCCS
216 xcxs => rain_ice_descrn%XCXS
217 xf0s => rain_ice_descrn%XF0S
218 xf1s => rain_ice_descrn%XF1S
219 xc1s => rain_ice_descrn%XC1S
220 xag => rain_ice_descrn%XAG
221 xbg => rain_ice_descrn%XBG
222 xcg => rain_ice_descrn%XCG
223 xdg => rain_ice_descrn%XDG
224 xccg => rain_ice_descrn%XCCG
225 xcxg => rain_ice_descrn%XCXG
226 xf0g => rain_ice_descrn%XF0G
227 xf1g => rain_ice_descrn%XF1G
228 xc1g => rain_ice_descrn%XC1G
229 xah => rain_ice_descrn%XAH
230 xbh => rain_ice_descrn%XBH
231 xch => rain_ice_descrn%XCH
232 xdh => rain_ice_descrn%XDH
233 xcch => rain_ice_descrn%XCCH
234 xcxh => rain_ice_descrn%XCXH
235 xf0h => rain_ice_descrn%XF0H
236 xf1h => rain_ice_descrn%XF1H
237 xc1h => rain_ice_descrn%XC1H
238 xalphac => rain_ice_descrn%XALPHAC
239 xnuc => rain_ice_descrn%XNUC
240 xalphac2 => rain_ice_descrn%XALPHAC2
241 xnuc2 => rain_ice_descrn%XNUC2
242 xlbexc => rain_ice_descrn%XLBEXC
243 xalphar => rain_ice_descrn%XALPHAR
244 xnur => rain_ice_descrn%XNUR
245 xlbexr => rain_ice_descrn%XLBEXR
246 xlbr => rain_ice_descrn%XLBR
247 xalphai => rain_ice_descrn%XALPHAI
248 xnui => rain_ice_descrn%XNUI
249 xlbexi => rain_ice_descrn%XLBEXI
250 xlbi => rain_ice_descrn%XLBI
251 xalphas => rain_ice_descrn%XALPHAS
252 xnus => rain_ice_descrn%XNUS
253 xlbexs => rain_ice_descrn%XLBEXS
254 xlbs => rain_ice_descrn%XLBS
255 xalphag => rain_ice_descrn%XALPHAG
256 xnug => rain_ice_descrn%XNUG
257 xlbexg => rain_ice_descrn%XLBEXG
258 xlbg => rain_ice_descrn%XLBG
259 xalphah => rain_ice_descrn%XALPHAH
260 xnuh => rain_ice_descrn%XNUH
261 xlbexh => rain_ice_descrn%XLBEXH
262 xlbh => rain_ice_descrn%XLBH
263 xlbdar_max => rain_ice_descrn%XLBDAR_MAX
264 xlbdas_max => rain_ice_descrn%XLBDAS_MAX
265 xlbdag_max => rain_ice_descrn%XLBDAG_MAX
266 xconc_sea => rain_ice_descrn%XCONC_SEA
267 xconc_land => rain_ice_descrn%XCONC_LAND
268 xconc_urban => rain_ice_descrn%XCONC_URBAN
269 xns => rain_ice_descrn%XNS
270 xfvelos => rain_ice_descrn%XFVELOS
271 xtrans_mp_gammas => rain_ice_descrn%XTRANS_MP_GAMMAS
272 xlbdas_min => rain_ice_descrn%XLBDAS_MIN
273ENDIF
274END SUBROUTINE rain_ice_descr_goto_model
275!
277 IMPLICIT NONE
278 INTEGER, INTENT(IN) :: KRR
279 ALLOCATE(rain_ice_descrn%XRTMIN(krr))
280 xrtmin=>rain_ice_descrn%XRTMIN
282END SUBROUTINE rain_ice_descr_allocate
283!
285 IMPLICIT NONE
286 xrtmin=>null()
287 DEALLOCATE(rain_ice_descrn%XRTMIN)
288END SUBROUTINE rain_ice_descr_deallocate
289!
290END MODULE modd_rain_ice_descr_n
integer, parameter jpmodelmax
real, dimension(:), pointer xlbc
subroutine rain_ice_descr_allocate(krr)
type(rain_ice_descr_t), pointer, save rain_ice_descrn
subroutine rain_ice_descr_goto_model(kfrom, kto)
type(rain_ice_descr_t), dimension(jpmodelmax), target, save rain_ice_descr_model
real, dimension(:), pointer xrtmin