PHYEX 0.9.5
PHYsique EXternalisée
Loading...
Searching...
No Matches
modd_convpar_shal.F90
Go to the documentation of this file.
1!MNH_LIC Copyright 1994-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!--------------- special set of characters for RCS information
7!-----------------------------------------------------------------
8! $Source$ $Revision$
9! MASDEV4_7 modd 2006/05/18 13:07:25
10!-----------------------------------------------------------------
11! ######spl
13
14!$ACDC methods
15
16! ########################
17!
18!!**** *MODD_CONVPAR_SHAL* - Declaration of convection constants
19!!
20!! PURPOSE
21!! -------
22!! The purpose of this declarative module is to declare the
23!! constants in the deep convection parameterization.
24!!
25!!
26!!** IMPLICIT ARGUMENTS
27!! ------------------
28!! None
29!!
30!! REFERENCE
31!! ---------
32!! Book2 of documentation of Meso-NH (MODD_CONVPAR_SHAL)
33!!
34!! AUTHOR
35!! ------
36!! P. Bechtold *Laboratoire d'Aerologie*
37!!
38!! MODIFICATIONS
39!! -------------
40!! Original 26/03/96
41!! Last modified 04/10/98
42!! E. Bazile 05/05/09
43!-------------------------------------------------------------------------------
44!
45!* 0. DECLARATIONS
46! ------------
47!
48IMPLICIT NONE
49!
51REAL :: xa25 ! 25 km x 25 km reference grid area
52!
53REAL :: xcrad ! cloud radius
54REAL :: xctime_shal ! convective adjustment time
55REAL :: xcdepth ! minimum necessary cloud depth
56REAL :: xcdepth_d ! maximum allowed cloud thickness
57REAL :: xdtpert ! add small Temp perturb. at LCL
58REAL :: xatpert ! Parameter for temp Perturb
59REAL :: xbtpert ! Parameter for temp Perturb
60 ! (XATPERT* TKE/Cp + XBTPERT) * XDTPERT
61REAL :: xentr ! entrainment constant (m/Pa) = 0.2 (m)
62!
63REAL :: xzlcl ! maximum allowed allowed height
64 ! difference between departure level and surface
65REAL :: xzpbl ! minimum mixed layer depth to sustain convection
66REAL :: xwtrig ! constant in vertical velocity trigger
67!
68!
69REAL :: xnhgam ! accounts for non-hydrost. pressure
70 ! in buoyancy term of w equation
71 ! = 2 / (1+gamma)
72REAL :: xtfrz1 ! begin of freezing interval
73REAL :: xtfrz2 ! end of freezing interval
74!
75!
76REAL :: xstabt ! factor to assure stability in fractional time
77 ! integration, routine CONVECT_CLOSURE
78REAL :: xstabc ! factor to assure stability in CAPE adjustment,
79 ! routine CONVECT_CLOSURE
80REAL :: xaw,xbw ! Parameters for WLCL = XAW * W + XBW
81LOGICAL :: llsmooth ! Default=TRUE but not necessary
82END TYPE convpar_shal
83!Keep global variables for parts of the code not ported to the type yet
84REAL :: xa25 ! 25 km x 25 km reference grid area
85!
86REAL :: xcrad ! cloud radius
87REAL :: xctime_shal ! convective adjustment time
88REAL :: xcdepth ! minimum necessary cloud depth
89REAL :: xcdepth_d ! maximum allowed cloud thickness
90REAL :: xdtpert ! add small Temp perturb. at LCL
91REAL :: xatpert ! Parameter for temp Perturb
92REAL :: xbtpert ! Parameter for temp Perturb
93 ! (XATPERT* TKE/Cp + XBTPERT) * XDTPERT
94REAL :: xentr ! entrainment constant (m/Pa) = 0.2 (m)
95!
96REAL :: xzlcl ! maximum allowed allowed height
97 ! difference between departure level and surface
98REAL :: xzpbl ! minimum mixed layer depth to sustain convection
99REAL :: xwtrig ! constant in vertical velocity trigger
100!
101!
102REAL :: xnhgam ! accounts for non-hydrost. pressure
103 ! in buoyancy term of w equation
104 ! = 2 / (1+gamma)
105REAL :: xtfrz1 ! begin of freezing interval
106REAL :: xtfrz2 ! end of freezing interval
107!
108!
109REAL :: xstabt ! factor to assure stability in fractional time
110 ! integration, routine CONVECT_CLOSURE
111REAL :: xstabc ! factor to assure stability in CAPE adjustment,
112 ! routine CONVECT_CLOSURE
113REAL :: xaw,xbw ! Parameters for WLCL = XAW * W + XBW
114LOGICAL :: llsmooth ! Default=TRUE but not necessary
115!
117 MODULE PROCEDURE ini_convpar_shal0
118 MODULE PROCEDURE ini_convpar_shal1
119END INTERFACE
120
121
122
123CONTAINS
124
125
126SUBROUTINE ini_convpar_shal1(CVP_SHAL)
127
128USE yomhook , ONLY : lhook, jphook, dr_hook
129
130TYPE (CONVPAR_SHAL), INTENT(OUT) :: CVP_SHAL
131
132REAL(KIND=jphook) :: zhook_handle
133
134IF (lhook) CALL dr_hook('INI_CONVPAR_SHAL1',0,zhook_handle)
135
136cvp_shal%XA25 = xa25
137cvp_shal%XCRAD = xcrad
138cvp_shal%XCTIME_SHAL = xctime_shal
139cvp_shal%XCDEPTH = xcdepth
140cvp_shal%XCDEPTH_D = xcdepth_d
141cvp_shal%XDTPERT = xdtpert
142cvp_shal%XATPERT = xatpert
143cvp_shal%XBTPERT = xbtpert
144cvp_shal%XENTR = xentr
145cvp_shal%XZLCL = xzlcl
146cvp_shal%XZPBL = xzpbl
147cvp_shal%XWTRIG = xwtrig
148cvp_shal%XNHGAM = xnhgam
149cvp_shal%XTFRZ1 = xtfrz1
150cvp_shal%XTFRZ2 = xtfrz2
151cvp_shal%XSTABT = xstabt
152cvp_shal%XSTABC = xstabc
153cvp_shal%XAW = xaw
154cvp_shal%XBW = xbw
155cvp_shal%LLSMOOTH = llsmooth
156
157IF (lhook) CALL dr_hook('INI_CONVPAR_SHAL1',1,zhook_handle)
158
159END SUBROUTINE ini_convpar_shal1
160
162 USE yomhook , ONLY : lhook, dr_hook, jphook
163! ###########################
164!
165!!**** *INI_CONVPAR * - routine to initialize the constants modules
166!!
167!! PURPOSE
168!! -------
169!! The purpose of this routine is to initialize the constants
170!! stored in modules MODD_CONVPAR_SHAL
171!!
172!!
173!!** METHOD
174!! ------
175!! The shallow convection constants are set to their numerical values
176!!
177!!
178!! EXTERNAL
179!! --------
180!!
181!! IMPLICIT ARGUMENTS
182!! ------------------
183!! Module MODD_CONVPAR_SHAL : contains deep convection constants
184!!
185!! REFERENCE
186!! ---------
187!! Book2 of the documentation (module MODD_CONVPAR_SHAL, routine INI_CONVPAR)
188!!
189!!
190!! AUTHOR
191!! ------
192!! P. BECHTOLD * Laboratoire d'Aerologie *
193!!
194!! MODIFICATIONS
195!! -------------
196!! Original 26/03/96
197!! Last modified 15/04/98 adapted for ARPEGE
198!! 05/05/09 E. Bazile
199!-------------------------------------------------------------------------------
200!
201!* 0. DECLARATIONS
202! ------------
203!
204!
205IMPLICIT NONE
206!
207!-------------------------------------------------------------------------------
208!
209!* 1. Set the thermodynamical and numerical constants for
210! the deep convection parameterization
211! ---------------------------------------------------
212!
213!
214REAL(KIND=jphook) :: zhook_handle
215IF (lhook) CALL dr_hook('INI_CONVPAR_SHAL0',0,zhook_handle)
216xa25 = 625.e6 ! 25 km x 25 km reference grid area
217!
218xcrad = 50. ! cloud radius
219xctime_shal = 10800. ! convective adjustment time
220xcdepth = 0.5e3 ! minimum necessary shallow cloud depth
221xcdepth_d = 2.5e3 ! maximum allowed shallow cloud depth
222xdtpert = .2 ! add small Temp perturbation at LCL
223xatpert = 0. ! 0.=original scheme , recommended = 1000.
224xbtpert = 1. ! 1.=original scheme , recommended = 0.
225!
226xentr = 0.02 ! entrainment constant (m/Pa) = 0.2 (m)
227!
228xzlcl = 0.5e3 ! maximum allowed allowed height
229 ! difference between the DPL and the surface
230xzpbl = 40.e2 ! minimum mixed layer depth to sustain convection
231!
232!
233xnhgam = 1.3333 ! accounts for non-hydrost. pressure
234 ! in buoyancy term of w equation
235 ! = 2 / (1+gamma)
236xtfrz1 = 268.16 ! begin of freezing interval
237xtfrz2 = 248.16 ! end of freezing interval
238!
239
240xstabt = 0.75 ! factor to assure stability in fractional time
241 ! integration, routine CONVECT_CLOSURE
242xstabc = 0.95 ! factor to assure stability in CAPE adjustment,
243 ! routine CONVECT_CLOSURE
244xaw = 0. ! 0.= Original scheme , 1 = recommended
245xbw = 1. ! 1.= Original scheme , 0 = recommended
246llsmooth = .true.
247!
248!
249IF (lhook) CALL dr_hook('INI_CONVPAR_SHAL0',1,zhook_handle)
250END SUBROUTINE ini_convpar_shal0
251!
252END MODULE modd_convpar_shal
subroutine ini_convpar_shal1(cvp_shal)