PHYEX 0.9.5
PHYsique EXternalisée
Loading...
Searching...
No Matches
mode_ini_lima.F90
Go to the documentation of this file.
1!MNH_LIC Copyright 2013-2024 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!
10IMPLICIT NONE
11CONTAINS
12! ######################################################
13 SUBROUTINE ini_lima (PTSTEP, PDZMIN, KSPLITR, KSPLITG)
14! ######################################################
15!
16!! PURPOSE
17!! -------
18!! The purpose of this routine is to initialize the constants used in the
19!! microphysical scheme LIMA.
20!!
21!! AUTHOR
22!! ------
23!! J.-M. Cohard * Laboratoire d'Aerologie*
24!! J.-P. Pinty * Laboratoire d'Aerologie*
25!! S. Berthet * Laboratoire d'Aerologie*
26!! B. Vié * Laboratoire d'Aerologie*
27!!
28!! MODIFICATIONS
29!! -------------
30!! Original ??/??/13
31!! Philippe Wautelet: 05/2016-04/2018: new data structures and calls for I/O
32! P. Wautelet 26/04/2019: replace non-standard FLOAT function by REAL function
33!
34!-------------------------------------------------------------------------------
35!
36!* 0. DECLARATIONS
37! ------------
38!
42USE yomhook, ONLY:lhook, dr_hook, jphook
43!USE MODD_LUNIT, ONLY : TLUOUT0
44!
45IMPLICIT NONE
46!
47!* 0.1 Declarations of dummy arguments :
48!
49!
50INTEGER, INTENT(OUT):: KSPLITR ! Number of small time step
51 ! integration for rain
52 ! sedimendation
53INTEGER, INTENT(OUT):: KSPLITG ! Number of small time step
54 ! integration for graupel or hail
55 ! sedimendation
56REAL, INTENT(IN) :: PTSTEP ! Effective Time step
57REAL, INTENT(IN) :: PDZMIN ! minimun vertical mesh size
58!
59!* 0.2 Declarations of local variables :
60!
61REAL :: ZT ! Work variable
62REAL, DIMENSION(7) :: ZVTRMAX
63!
64REAL(KIND=jphook) :: zhook_handle
65INTEGER :: II
66!
67!-------------------------------------------------------------------------------
68!
69!
70!* 1. INIT OUTPUT LISTING, COMPUTE KSPLITR AND KSPLITG
71! ------------------------------------------------
72!
73!
74! Init output listing
75!ILUOUT0 = TLUOUT0%NLU
76!
77!
78IF (lhook) CALL dr_hook('INI_LIMA', 0, zhook_handle)
79zvtrmax(2) = 0.3 ! Maximum cloud droplet fall speed
80zvtrmax(3) = 15. ! Maximum rain drop fall speed
81zvtrmax(4) = 1.5 ! Maximum ice crystal fall speed
82zvtrmax(5) = 3.0 ! Maximum snow fall speed
83zvtrmax(6) = 15. ! Maximum graupel fall speed
84zvtrmax(7) = 30. ! Maximum hail fall speed
85!
86! NSPLITSED
87!
88DO ii=2,7
89 nsplitsed(ii) = 1
90 split : DO
91 zt = ptstep / real(nsplitsed(ii))
92 IF ( zt * zvtrmax(ii) / pdzmin < 1.0) EXIT split
93 nsplitsed(ii) = nsplitsed(ii) + 1
94 END DO split
95END DO
96!
97! KSPLITR
98!
99ksplitr = 1
100splitr : DO
101 zt = ptstep / real(ksplitr)
102 IF ( zt * zvtrmax(7) / pdzmin < 1.0) EXIT splitr
103 ksplitr = ksplitr + 1
104END DO splitr
105!
106!
107! KSPLITG
108!
109ksplitg = 1
110splitg : DO
111 zt = 2.* ptstep / real(ksplitg)
112 IF ( zt * zvtrmax(7) / pdzmin .LT. 1.) EXIT splitg
113 ksplitg = ksplitg + 1
114END DO splitg
115!
116!
117!
118IF (.NOT. ASSOCIATED(xrtmin)) THEN ! In case of nesting microphysics, constants of
119 ! MODD_RAIN_C2R2_PARAM are computed only once.
120!
121!
122! Set bounds for mixing ratios and concentrations
123IF (lice3) THEN
124 CALL param_lima_allocate('XRTMIN', 7)
125 xrtmin(1) = 1.0e-20 ! rv
126 xrtmin(2) = 1.0e-20 ! rc
127 xrtmin(3) = 1.0e-20 ! rr
128 xrtmin(4) = 1.0e-20 ! ri
129 xrtmin(5) = 1.0e-15 ! rs
130 xrtmin(6) = 1.0e-15 ! rg
131 xrtmin(7) = 1.0e-15 ! rh
132 CALL param_lima_allocate('XCTMIN', 7)
133 xctmin(1) = 1.0e-13 ! Not used
134 xctmin(2) = 1.0e-13 ! Nc
135 xctmin(3) = 1.0e-13 ! Nr
136 xctmin(4) = 1.0e-13 ! Ni
137 xctmin(5) = 1.0e-13 ! Ns
138 xctmin(6) = 1.0e-13 ! Ng
139 xctmin(7) = 1.0e-13 ! Nh
140ELSE
141 CALL param_lima_allocate('XRTMIN', 7)
142 xrtmin(1) = 1.0e-10 ! rv
143 xrtmin(2) = 1.0e-10 ! rc
144 xrtmin(3) = 1.0e-10 ! rr
145 xrtmin(4) = 1.0e-10 ! ri
146 xrtmin(5) = 1.0e-10 ! rs
147 xrtmin(6) = 1.0e-10 ! rg
148 xrtmin(7) = 1.0e-10 ! rh
149 CALL param_lima_allocate('XCTMIN', 7)
150 xctmin(1) = 1.0 ! Not used
151 xctmin(2) = 1.0e-3 ! Nc
152 xctmin(3) = 1.0e-3 ! Nr
153 xctmin(4) = 1.0e-3 ! Ni
154 xctmin(5) = 1.0e-3 ! Ns
155 xctmin(6) = 1.0e-3 ! Ng
156 xctmin(7) = 1.0e-3 ! Nh
157ENDIF
158!
159!
160! Air density fall speed correction
161xcexvt = 0.4
162!
163!------------------------------------------------------------------------------
164!
165!
166!
167!* 2. DEFINE SPECIES CHARACTERISTICS AND PROCESSES CONSTANTS
168! ------------------------------------------------------
169!
170!
171CALL ini_lima_warm(ptstep, pdzmin)
172!
173CALL ini_lima_cold_mixed(ptstep, pdzmin)
174!
175!------------------------------------------------------------------------------
176!
177END IF
178IF (lhook) CALL dr_hook('INI_LIMA', 1, zhook_handle)
179END SUBROUTINE ini_lima
180!
181END MODULE mode_ini_lima
integer, dimension(:), pointer nsplitsed
logical, pointer lice3
real, pointer xcexvt
real, dimension(:), pointer xctmin
subroutine param_lima_allocate(hname, kdim1, kdim2, kdim3)
real, dimension(:), pointer xrtmin
subroutine ini_lima_cold_mixed(ptstep, pdzmin)
subroutine ini_lima_warm(ptstep, pdzmin)
subroutine ini_lima(ptstep, pdzmin, ksplitr, ksplitg)