PHYEX 0.9.5
PHYsique EXternalisée
Loading...
Searching...
No Matches
modd_param_lima_warm.F90
Go to the documentation of this file.
1!MNH_LIC Copyright 2013-2021 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! ###########################
8
9!$ACDC methods
10
11! ###########################
12!
13!!**** *MODD_PARAM_LIMA_WARM* - declaration of some descriptive parameters and
14!! microphysical factors extensively used in
15!! the LIMA warm scheme.
16!! AUTHOR
17!! ------
18!! J.-P. Pinty * Laboratoire d'Aerologie*
19!! S. Berthet * Laboratoire d'Aerologie*
20!! B. Vié * Laboratoire d'Aerologie*
21!!
22!! MODIFICATIONS
23!! -------------
24!! Original ??/??/13
25!!
26!-------------------------------------------------------------------------------
28!
29IMPLICIT NONE
30!
31!* 1. DESCRIPTIVE PARAMETERS
32! ----------------------
33!
35REAL :: xlbc, xlbexc, & ! shape parameters of the cloud droplets
36 xlbr, xlbexr, xnr ! shape parameters of the raindrops
37!
38REAL :: xar,xbr,xcr,xdr,xf0r,xf1r, & ! Raindrop charact.
39 xccr,xcxr, & !For diagnostics
40 xac,xbc,xcc,xdc,xf0c,xf2c,xc1c ! Cloud droplet charact.
41!
42!
43!
44!-------------------------------------------------------------------------------
45!
46!* 2. MICROPHYSICAL FACTORS
47! ---------------------
48!
49REAL :: xfsedrr,xfsedcr, & ! Constants for sedimentation
50 xfsedrc,xfsedcc, & ! fluxes of R, C
51 xgcc
52REAL :: xshape_factor ! Shape factor of the raindrop distribution
53!
54!
55REAL :: xdiva, & ! Diffusivity of water vapor
56 xthco ! Thermal conductivity
57REAL :: xwmin ! Min value of updraft velocity
58 ! to enable nucleation process
59REAL :: xtmin ! Min value of
60 ! temperature evolution
61 ! to enable nucleation process
62REAL :: xcsthen,xcstdcrit ! Cst for HEN precalculations
63INTEGER :: nhyp ! Number of value of the HYP
64 ! functions
65REAL :: xhypintp1, xhypintp2 ! Factors defining the
66 ! supersaturation log scale
67REAL, DIMENSION(:,:), ALLOCATABLE & ! Tabulated HYPgeometric
68 :: xhypf12, xhypf32 ! functions used in HEN
69INTEGER :: nahen ! Number of value of the AHEN
70 ! functions
71REAL :: xahenintp1, xahenintp2 ! Factors defining the
72 ! temperatures in lin scale
73REAL, DIMENSION(:), ALLOCATABLE & !
74 :: xaheng,xaheng2,xaheng3,xpsi1, xpsi3, & ! Twomey-CPB98 and
75 xahenf,xaheny ! Feingold-Heymsfield
76 ! parameterization to compute Smax
77REAL :: xwcoef_f1, xwcoef_f2, xwcoef_f3, & ! COEF_F of the polynomial temp.
78 xwcoef_y1, xwcoef_y2, xwcoef_y3 ! COEF_Y of the polynomial temp.
79 ! function powering W
80!
81!
82REAL :: xkera1, xkera2 ! Constants to define the lin
83 ! and parabolic kernel param.
84REAL :: xselfc ! Constants for cloud droplet
85 ! selfcollection : SELF
86!
87REAL :: xauto1, xauto2, xcautr, & ! Constants for cloud droplet
88 xlautr, xlautr_threshold, & ! autoconversion : AUT
89 xitautr, xitautr_threshold, xr0 ! XR0 for KHKO autoconversion
90!
96!
97REAL :: xscbu2, xscbu3, & ! Constants for the raindrop
98 xscbu_eff1, xscbu_eff2, xscbuexp1 ! breakup-selfcollection: SCBU
99!
100REAL :: xsponbud1,xsponbud2,xsponbud3, & ! Spontaneous Break-up
101 xsponcoef2 ! (drop size limiter)
102!
103REAL :: x0evar, x1evar, & ! Constants for raindrop
104 xex0evar, xex1evar, xex2evar, & ! evaporation: EVA
105 xcevap ! for KHKO
106!
107REAL,DIMENSION(:,:,:,:), ALLOCATABLE :: xconcc_ini
109 ! Used to initialize the
110 ! concentrations from mixing ratios
111 ! (init and grid-nesting from Kessler)
112!
113REAL :: x0cndc, x2cndc ! Constants for cloud droplet
114 ! condensation/evaporation
115REAL :: xfreffc ! Factor to compute the cloud droplet effective radius
116REAL :: xfreffr ! Factor to compute the rain drop effective radius
117REAL :: xcrec, xcrer
118 ! Factors to compute reff when cloud and rain are present
119END TYPE param_lima_warm_t
120!
121TYPE(param_lima_warm_t), TARGET, SAVE :: param_lima_warm
122!
123REAL, POINTER :: xlbc => null(), &
124 xlbexc => null(), &
125 xlbr => null(), &
126 xlbexr => null(), &
127 xnr => null(), &
128 xar => null(), &
129 xbr => null(), &
130 xcr => null(), &
131 xdr => null(), &
132 xf0r => null(), &
133 xf1r => null(), &
134 xccr => null(), &
135 xcxr => null(), &
136 xac => null(), &
137 xbc => null(), &
138 xcc => null(), &
139 xdc => null(), &
140 xf0c => null(), &
141 xf2c => null(), &
142 xc1c => null(), &
143 xfsedrr => null(), &
144 xshape_factor => null(), &
145 xfsedcr => null(), &
146 xfsedrc => null(), &
147 xfsedcc => null(), &
148 xgcc => null(), &
149 xdiva => null(), &
150 xthco => null(), &
151 xwmin => null(), &
152 xtmin => null(), &
153 xcsthen => null(), &
154 xcstdcrit => null(), &
155 xhypintp1 => null(), &
156 xhypintp2 => null(), &
157 xahenintp1 => null(), &
158 xahenintp2 => null(), &
159 xwcoef_f1 => null(), &
160 xwcoef_f2 => null(), &
161 xwcoef_f3 => null(), &
162 xwcoef_y1 => null(), &
163 xwcoef_y2 => null(), &
164 xwcoef_y3 => null(), &
165 xkera1 => null(), &
166 xkera2 => null(), &
167 xselfc => null(), &
168 xauto1 => null(), &
169 xauto2 => null(), &
170 xcautr => null(), &
171 xlautr => null(), &
172 xlautr_threshold => null(), &
173 xitautr => null(), &
174 xitautr_threshold => null(), &
175 xr0 => null(), &
176 xaccr1 => null(), &
177 xaccr2 => null(), &
178 xaccr3 => null(), &
179 xaccr4 => null(), &
180 xaccr5 => null(), &
181 xaccr6 => null(), &
182 xaccr_clarge1 => null(), &
183 xaccr_clarge2 => null(), &
184 xaccr_rlarge1 => null(), &
185 xaccr_rlarge2 => null(), &
186 xaccr_csmall1 => null(), &
187 xaccr_csmall2 => null(), &
188 xaccr_rsmall1 => null(), &
189 xaccr_rsmall2 => null(), &
190 xfcaccr => null(), &
191 xexcaccr => null(), &
192 xscbu2 => null(), &
193 xscbu3 => null(), &
194 xscbu_eff1 => null(), &
195 xscbu_eff2 => null(), &
196 xscbuexp1 => null(), &
197 xsponbud1 => null(), &
198 xsponbud2 => null(), &
199 xsponbud3 => null(), &
200 xsponcoef2 => null(), &
201 x0evar => null(), &
202 x1evar => null(), &
203 xex0evar => null(), &
204 xex1evar => null(), &
205 xex2evar => null(), &
206 xcevap => null(), &
207 xconcr_param_ini => null(), &
208 x0cndc => null(), &
209 x2cndc => null(), &
210 xfreffc => null(), &
211 xfreffr => null(), &
212 xcrec => null(), &
213 xcrer => null()
214
215INTEGER, POINTER :: nhyp => null(), &
216 nahen => null()
217
218REAL, DIMENSION(:,:), POINTER :: xhypf12 => null(), &
219 xhypf32 => null()
220REAL, DIMENSION(:), POINTER :: xaheng => null(), &
221 xaheng2 => null(), &
222 xaheng3 => null(), &
223 xpsi1 => null(), &
224 xpsi3 => null(), &
225 xahenf => null(), &
226 xaheny => null()
227REAL,DIMENSION(:,:,:,:), POINTER :: xconcc_ini => null()
228!
229CHARACTER(LEN=JPSVNAMELGTMAX),DIMENSION(5),PARAMETER &
230 :: clima_warm_names=(/'CCLOUD ','CRAIN ','CCCNFREE','CCCNACTI','SPRO '/)
231 ! basenames of the SV articles stored
232 ! in the binary files
233CHARACTER(LEN=JPSVNAMELGTMAX),DIMENSION(5),PARAMETER &
234 :: clima_warm_conc=(/'NC ','NR ','NFREE','NCCN ','SS '/)
235! ! basenames of the SV articles stored
236! ! in the binary files for DIAG
237!
238!* Special issue for Below-Cloud SCAVenging of Aerosol particles
239CHARACTER(LEN=JPSVNAMELGTMAX),DIMENSION(2),PARAMETER :: caero_mass =(/'MASSAP', 'MAP '/)
240!
241CONTAINS
243USE yomhook, ONLY:lhook, dr_hook, jphook
244IMPLICIT NONE
245REAL(KIND=jphook) :: zhook_handle
246IF (lhook) CALL dr_hook('PARAM_LIMA_WARM_ASSOCIATE', 0, zhook_handle)
247IF(.NOT. ASSOCIATED(xlbc)) THEN
248 xlbc => param_lima_warm%XLBC
249 xlbexc => param_lima_warm%XLBEXC
250 xlbr => param_lima_warm%XLBR
251 xlbexr => param_lima_warm%XLBEXR
252 xnr => param_lima_warm%XNR
253 xar => param_lima_warm%XAR
254 xbr => param_lima_warm%XBR
255 xcr => param_lima_warm%XCR
256 xdr => param_lima_warm%XDR
257 xf0r => param_lima_warm%XF0R
258 xf1r => param_lima_warm%XF1R
259 xccr => param_lima_warm%XCCR
260 xcxr => param_lima_warm%XCXR
261 xac => param_lima_warm%XAC
262 xbc => param_lima_warm%XBC
263 xcc => param_lima_warm%XCC
264 xdc => param_lima_warm%XDC
265 xf0c => param_lima_warm%XF0C
266 xf2c => param_lima_warm%XF2C
267 xc1c => param_lima_warm%XC1C
268 xfsedrr => param_lima_warm%XFSEDRR
269 xshape_factor => param_lima_warm%XSHAPE_FACTOR
270 xfsedcr => param_lima_warm%XFSEDCR
271 xfsedrc => param_lima_warm%XFSEDRC
272 xfsedcc => param_lima_warm%XFSEDCC
273 xgcc => param_lima_warm%XGCC
274 xdiva => param_lima_warm%XDIVA
275 xthco => param_lima_warm%XTHCO
276 xwmin => param_lima_warm%XWMIN
277 xtmin => param_lima_warm%XTMIN
278 xcsthen => param_lima_warm%XCSTHEN
279 xcstdcrit => param_lima_warm%XCSTDCRIT
280 xhypintp1 => param_lima_warm%XHYPINTP1
281 xhypintp2 => param_lima_warm%XHYPINTP2
282 xahenintp1 => param_lima_warm%XAHENINTP1
283 xahenintp2 => param_lima_warm%XAHENINTP2
284 xwcoef_f1 => param_lima_warm%XWCOEF_F1
285 xwcoef_f2 => param_lima_warm%XWCOEF_F2
286 xwcoef_f3 => param_lima_warm%XWCOEF_F3
287 xwcoef_y1 => param_lima_warm%XWCOEF_Y1
288 xwcoef_y2 => param_lima_warm%XWCOEF_Y2
289 xwcoef_y3 => param_lima_warm%XWCOEF_Y3
290 xkera1 => param_lima_warm%XKERA1
291 xkera2 => param_lima_warm%XKERA2
292 xselfc => param_lima_warm%XSELFC
293 xauto1 => param_lima_warm%XAUTO1
294 xauto2 => param_lima_warm%XAUTO2
295 xcautr => param_lima_warm%XCAUTR
296 xlautr => param_lima_warm%XLAUTR
297 xlautr_threshold => param_lima_warm%XLAUTR_THRESHOLD
298 xitautr => param_lima_warm%XITAUTR
299 xitautr_threshold => param_lima_warm%XITAUTR_THRESHOLD
300 xr0 => param_lima_warm%XR0
301 xaccr1 => param_lima_warm%XACCR1
302 xaccr2 => param_lima_warm%XACCR2
303 xaccr3 => param_lima_warm%XACCR3
304 xaccr4 => param_lima_warm%XACCR4
305 xaccr5 => param_lima_warm%XACCR5
306 xaccr6 => param_lima_warm%XACCR6
307 xaccr_clarge1 => param_lima_warm%XACCR_CLARGE1
308 xaccr_clarge2 => param_lima_warm%XACCR_CLARGE2
309 xaccr_rlarge1 => param_lima_warm%XACCR_RLARGE1
310 xaccr_rlarge2 => param_lima_warm%XACCR_RLARGE2
311 xaccr_csmall1 => param_lima_warm%XACCR_CSMALL1
312 xaccr_csmall2 => param_lima_warm%XACCR_CSMALL2
313 xaccr_rsmall1 => param_lima_warm%XACCR_RSMALL1
314 xaccr_rsmall2 => param_lima_warm%XACCR_RSMALL2
315 xfcaccr => param_lima_warm%XFCACCR
316 xexcaccr => param_lima_warm%XEXCACCR
317 xscbu2 => param_lima_warm%XSCBU2
318 xscbu3 => param_lima_warm%XSCBU3
319 xscbu_eff1 => param_lima_warm%XSCBU_EFF1
320 xscbu_eff2 => param_lima_warm%XSCBU_EFF2
321 xscbuexp1 => param_lima_warm%XSCBUEXP1
322 xsponbud1 => param_lima_warm%XSPONBUD1
323 xsponbud2 => param_lima_warm%XSPONBUD2
324 xsponbud3 => param_lima_warm%XSPONBUD3
325 xsponcoef2 => param_lima_warm%XSPONCOEF2
326 x0evar => param_lima_warm%X0EVAR
327 x1evar => param_lima_warm%X1EVAR
328 xex0evar => param_lima_warm%XEX0EVAR
329 xex1evar => param_lima_warm%XEX1EVAR
330 xex2evar => param_lima_warm%XEX2EVAR
331 xcevap => param_lima_warm%XCEVAP
332 xconcr_param_ini => param_lima_warm%XCONCR_PARAM_INI
333 x0cndc => param_lima_warm%X0CNDC
334 x2cndc => param_lima_warm%X2CNDC
335 xfreffc => param_lima_warm%XFREFFC
336 xfreffr => param_lima_warm%XFREFFR
337 xcrec => param_lima_warm%XCREC
338 xcrer => param_lima_warm%XCRER
339
340 nhyp => param_lima_warm%NHYP
341 nahen => param_lima_warm%NAHEN
342ENDIF
343IF (lhook) CALL dr_hook('PARAM_LIMA_WARM_ASSOCIATE', 1, zhook_handle)
344END SUBROUTINE param_lima_warm_associate
345!
346SUBROUTINE param_lima_warm_allocate(HNAME, KDIM1, KDIM2, KDIM3, KDIM4)
347USE yomhook, ONLY:lhook, dr_hook, jphook
348 IMPLICIT NONE
349 CHARACTER(LEN=*), INTENT(IN) :: HNAME
350 INTEGER, INTENT(IN) :: KDIM1
351 INTEGER, OPTIONAL, INTENT(IN):: KDIM2
352 INTEGER, OPTIONAL, INTENT(IN):: KDIM3
353 INTEGER, OPTIONAL, INTENT(IN):: KDIM4
354 REAL(KIND=jphook) :: zhook_handle
355
356 IF (lhook) CALL dr_hook('PARAM_LIMA_WARM_ALLOCATE', 0, zhook_handle)
357 SELECT CASE(trim(hname))
358 CASE('XHYPF12')
359 ALLOCATE(param_lima_warm%XHYPF12(kdim1, kdim2))
360 xhypf12 => param_lima_warm%XHYPF12
361 CASE('XHYPF32')
362 ALLOCATE(param_lima_warm%XHYPF32(kdim1, kdim2))
363 xhypf32 => param_lima_warm%XHYPF32
364 CASE('XAHENG')
365 ALLOCATE(param_lima_warm%XAHENG(kdim1))
366 xaheng => param_lima_warm%XAHENG
367 CASE('XAHENG2')
368 ALLOCATE(param_lima_warm%XAHENG2(kdim1))
369 xaheng2 => param_lima_warm%XAHENG2
370 CASE('XAHENG3')
371 ALLOCATE(param_lima_warm%XAHENG3(kdim1))
372 xaheng3 => param_lima_warm%XAHENG3
373 CASE('XPSI1')
374 ALLOCATE(param_lima_warm%XPSI1(kdim1))
375 xpsi1 => param_lima_warm%XPSI1
376 CASE('XPSI3')
377 ALLOCATE(param_lima_warm%XPSI3(kdim1))
378 xpsi3 => param_lima_warm%XPSI3
379 CASE('XAHENF')
380 ALLOCATE(param_lima_warm%XAHENF(kdim1))
381 xahenf => param_lima_warm%XAHENF
382 CASE('XAHENY')
383 ALLOCATE(param_lima_warm%XAHENY(kdim1))
384 xaheny => param_lima_warm%XAHENY
385 CASE('XCONCC_INI')
386 ALLOCATE(param_lima_warm%XCONCC_INI(kdim1,kdim2,kdim3,kdim4))
387 xconcc_ini => param_lima_warm%XCONCC_INI
388 END SELECT
389IF (lhook) CALL dr_hook('PARAM_LIMA_WARM_ALLOCATE', 1, zhook_handle)
390END SUBROUTINE param_lima_warm_allocate
391!
392!-------------------------------------------------------------------------------
393!
394END MODULE modd_param_lima_warm
character(len=jpsvnamelgtmax), dimension(5), parameter clima_warm_names
real, dimension(:), pointer xaheng
type(param_lima_warm_t), target, save param_lima_warm
character(len=jpsvnamelgtmax), dimension(2), parameter caero_mass
real, dimension(:), pointer xaheng3
real, dimension(:), pointer xaheng2
real, dimension(:), pointer xpsi1
real, dimension(:,:,:,:), pointer xconcc_ini
real, dimension(:), pointer xahenf
real, dimension(:,:), pointer xhypf12
real, dimension(:), pointer xpsi3
real, dimension(:), pointer xaheny
real, dimension(:,:), pointer xhypf32
character(len=jpsvnamelgtmax), dimension(5), parameter clima_warm_conc
subroutine param_lima_warm_allocate(hname, kdim1, kdim2, kdim3, kdim4)
integer, parameter jpsvnamelgtmax