PHYEX 0.9.5
PHYsique EXternalisée
Loading...
Searching...
No Matches
modd_elec_param.F90
Go to the documentation of this file.
1!MNH_LIC Copyright 2002-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!$ACDC methods
10
11! #######################
12!
13!!**** *MODD_ELEC_PARAM* - declaration of some electrical factors
14!! extensively used in the electrical scheme.
15!!
16!! PURPOSE
17!! -------
18! The purpose of this declarative module is to declare some precomputed
19! electrical parameters directly used in routines related to cloud electricity
20!!
21!!** IMPLICIT ARGUMENTS
22!! ------------------
23!! None
24!!
25!! REFERENCE
26!! ---------
27!!
28!! AUTHOR
29!! ------
30!! Gilles Molinie * Laboratoire d'Aerologie *
31!!
32!!
33!! MODIFICATIONS
34!! -------------
35!! Original 14/11/02
36!! C. Barthe 31/01/2022 add XFQUPDNCI
37!! C. Barthe 07/06/2022 add parameters for charge sedimentation in LIMA
38!! C. Barthe 28/03/2023 add parameters for sedimentation of cloud droplets charge
39!! C. Barthe 05/07/2023 new data structures for PHYEX - for sedimentation in ICE3
40!!
41!-------------------------------------------------------------------------------
42!
43!* 0. DECLARATIONS
44! ------------
45!
47!
48IMPLICIT NONE
49!
50SAVE
51!
52REAL :: xcoef_rq_v, xcoef_rq_c, & ! Constants for proportionality
53 xcoef_rq_r, xcoef_rq_i, & ! between mass transfer and
54 xcoef_rq_s, xcoef_rq_g, & ! charge transfer
56!
57REAL :: xqhon ! Constant for spontaneous freezing of droplets if T<-35°
58!
59REAL :: xfqupdnci ! constant used to update e_i for sedimentation where
60 ! N_i follows McFarquhar and Heysmfield (1997)
61!
62REAL :: xqsrimcg, xexqsrimcg ! Constant for riming of cloud droplets
63 ! on snow
64REAL, DIMENSION(:), ALLOCATABLE :: xgaminc_rim3
65!
66REAL :: xqrcfrig, xexqrcfrig ! Constant for contact freezing between
67 ! raindrops and pristine ice
68REAL :: xfqraccs ! Constant in RACCS
69!
70REAL :: xfqiaggsbh, & ! Constant for IAGGS charging
71 xfqiaggsbg, xexfqiaggsbg, & ! process for HELFA, GARDI,
72 xfqiaggsbs, & ! SAUND and TAKAH
74!
75REAL :: xlbqraccs1, xlbqraccs2, xlbqraccs3 ! Integral of normalization
76REAL :: xlbqsaccrg1, xlbqsaccrg2, xlbqsaccrg3 ! in accretion of raindrops
77 ! on snow process
78!
79REAL, DIMENSION(:,:), ALLOCATABLE & ! Normalized kernel for
80 :: xker_q_raccs, xker_q_raccss, xker_q_saccrg ! RACCS, RACCSS, SACCRG
81!
82REAL :: xfqsdryg, xfqsdrygb, xfqrdryg ! Constant in SDRYG and RDRYG
83!
84! charge separation
85!
86REAL, DIMENSION(:,:), ALLOCATABLE :: xker_q_limsg
87REAL, DIMENSION(:,:), ALLOCATABLE :: xker_q_sdrygb, xker_q_sdrygb1, xker_q_sdrygb2
88!
89! Helsdon-Farley
90!
91REAL :: xhidryg ! Constant charge separated
92REAL :: xhsdryg ! Constant charge separated
93REAL :: xlbqsdrygb4h, xlbqsdrygb5h, xlbqsdrygb6h ! Constants in QIDRYGB
94REAL :: xfqsdrygbh !
95!
96! Gardiner
97!
98REAL :: xlwcc ! LWC critic in Gardiner NI charging
99REAL :: xfqidrygbg, xlbqidrygbg ! Constants in QIDRYGB
100REAL :: xfqsdrygbg ! Constants in QSDRYGB
102!
103! Saunders
104!
105REAL :: ximp, xinp, xikp, & ! Parameters m, n and k
106 ximn, xinn, xikn, & ! for the NI processes
107 xsmp, xsnp, xskp, & ! following
108 xsmn, xsnn, xskn ! Saunders et al. (1991)
109REAL :: xfqiaggsp, xfqiaggsn, & ! Auxiliary parameters
110 xfqidrygbsp, xfqidrygbsn, & ! containing MOMG function
115REAL :: xikp_tak, xikn_tak, xskp_tak, xskn_tak ! Using Takahashi charge
118REAL :: xfqidrygbs, xlbqidrygbs ! Constants in QIDRYGB
119REAL :: xfqsdrygbs ! Constants in QSDRYGB
121!
122! Takahashi
123!
124INTEGER :: nind_temp ! number of indexes for temperature
125INTEGER :: nind_lwc ! number of indexes for liquid water content
126REAL, DIMENSION(:,:), ALLOCATABLE :: xmansell ! F(LWC, T) for Takahashi(1978) /Mansell
127REAL, DIMENSION(:,:), ALLOCATABLE :: xsaunder ! F(LWC, T) for SAUN1/SAUN2, BSMP1/BSMP2
128REAL, DIMENSION(:,:), ALLOCATABLE :: xtaka_tm ! F(LWC, T) for Takahashi/Tsenova and Mitzeva
129!
135!
136REAL :: xlbqrdryg1, xlbqrdryg2, xlbqrdryg3 ! Integral of normalization in
137REAL :: xlbqsdryg1, xlbqsdryg2, xlbqsdryg3 ! the accretion of graupel on
138 ! raindrop and snow process
139!
140REAL, DIMENSION(:,:), ALLOCATABLE &
141 :: xker_q_sdryg, xker_q_rdryg ! Normalized kernel for SDRYG and RDRYG
142!
143REAL :: xqrevav1, xqrevav2 ! Raindrops evaporation
144!
145! Add variables to limit the exchanged charge
146!
147REAL :: xaux_lim
149!
150!
151! Inductive charging process
152!
153REAL :: xcolcg_ind ! collision effiency
154REAL :: xebound ! rebound efficiency
155REAL :: xalpha_ind ! fraction of droplets with grazing trajectories
156REAL :: xcos_theta ! average cosine of the angle of rebounding collision
158!
159! lightning
160!
162 xfqlights, xfqlightg, xfqlighth ! Constant for charge redistribution
164 xexqlights, xexqlightg, xexqlighth ! Exponent for charge redistribution
165!
166! The following variables must be declared with a derived type to match with PHYEX requirements
168 REAL :: xfci ! Constant for sedimentation of the mixing ratio of ice
169 ! which the computation is modified in regard of rain_ice.f90
170 !
171 REAL :: xfqsedc, xexqsedc, & ! Constant for sedimentation of cloud droplets
172 xfqsedr, xexqsedr, & ! rain
173 xfqsedi, xexqsedi, & ! ice
174 xfqseds, xexqseds, & ! snow
175 xfqsedg, xexqsedg, & ! graupel
176 xfqsedh, xexqsedh ! hail
177 REAL :: xmomgi_beard ! Beard effect of the pristine ice distribution
178 !
179 REAL :: xegmin, xegmax, xesmin, xesmax, & ! Max and min values for
180 xeimin, xeimax, xecmin, xecmax, & ! e_x in q=e_x D^f_x
182 !
183 REAL :: xfqupdc, xfqupdr, xfqupdi,& ! Update Q=f(D)
185 !
186 REAL, DIMENSION(7) :: xfqsed ! Constant for sedimentation of
187 ! electric charge in LIMA
188 REAL, DIMENSION(7) :: xdq ! Exponent for sedimentation of
189 ! electric charge in LIMA
190
191END TYPE elec_param_t
192!
193TYPE(elec_param_t), TARGET :: elec_param
194!
195REAL, POINTER :: xfci => null(), &
196 xfqsedc => null(), &
197 xexqsedc => null(), &
198 xfqsedr => null(), &
199 xexqsedr => null(), &
200 xfqsedi => null(), &
201 xexqsedi => null(), &
202 xfqseds => null(), &
203 xexqseds => null(), &
204 xfqsedg => null(), &
205 xexqsedg => null(), &
206 xfqsedh => null(), &
207 xexqsedh => null(), &
208 xmomgi_beard => null(), &
209 xegmin => null(), &
210 xegmax => null(), &
211 xesmin => null(), &
212 xesmax => null(), &
213 xeimin => null(), &
214 xeimax => null(), &
215 xecmin => null(), &
216 xecmax => null(), &
217 xermin => null(), &
218 xermax => null(), &
219 xehmin => null(), &
220 xehmax => null(), &
221 xfqupdc => null(), &
222 xfqupdr => null(), &
223 xfqupdi => null(), &
224 xexfqupdi => null(),&
225 xfqupds => null(), &
226 xfqupdg => null(), &
227 xfqupdh => null()
228
229REAL, DIMENSION(:), POINTER :: xfqsed => null(),&
230 xdq => null()
231!
232CONTAINS
233!
235 IMPLICIT NONE
236 !
237 xfci => elec_param%XFCI
238 xfqsedc => elec_param%XFQSEDC
239 xexqsedc => elec_param%XEXQSEDC
240 xfqsedr => elec_param%XFQSEDR
241 xexqsedr => elec_param%XEXQSEDR
242 xfqsedi => elec_param%XFQSEDI
243 xexqsedi => elec_param%XEXQSEDI
244 xfqseds => elec_param%XFQSEDS
245 xexqseds => elec_param%XEXQSEDS
246 xfqsedg => elec_param%XFQSEDG
247 xexqsedg => elec_param%XEXQSEDG
248 xfqsedh => elec_param%XFQSEDH
249 xexqsedh => elec_param%XEXQSEDH
250 xmomgi_beard => elec_param%XMOMGI_BEARD
251 xegmin => elec_param%XEGMIN
252 xegmax => elec_param%XEGMAX
253 xesmin => elec_param%XESMIN
254 xesmax => elec_param%XESMAX
255 xeimin => elec_param%XEIMIN
256 xeimax => elec_param%XEIMAX
257 xecmin => elec_param%XECMIN
258 xecmax => elec_param%XECMAX
259 xermin => elec_param%XERMIN
260 xermax => elec_param%XERMAX
261 xehmin => elec_param%XEHMIN
262 xehmax => elec_param%XEHMAX
263 xfqupdc => elec_param%XFQUPDC
264 xfqupdr => elec_param%XFQUPDR
265 xfqupdi => elec_param%XFQUPDI
266 xexfqupdi => elec_param%XEXFQUPDI
267 xfqupds => elec_param%XFQUPDS
268 xfqupdg => elec_param%XFQUPDG
269 xfqupdh => elec_param%XFQUPDH
270 xfqsed => elec_param%XFQSED
271 xdq => elec_param%XDQ
272END SUBROUTINE elec_param_associate
273!
274END MODULE modd_elec_param
real, pointer xermin
real, dimension(:,:), allocatable xker_q_sdrygb
real, pointer xfqupdc
real, pointer xehmin
real, pointer xexqsedi
real, dimension(:,:), allocatable xker_q_raccss
real, dimension(:,:), allocatable xker_q_sdrygb2
real, pointer xfqsedi
real, pointer xeimin
real, pointer xmomgi_beard
real, dimension(:,:), allocatable xker_q_sdrygb1
real, dimension(:,:), allocatable xker_q_saccrg
real, pointer xfqsedg
real, pointer xexqsedc
real, dimension(:), pointer xdq
real, dimension(:,:), allocatable xker_q_raccs
real, pointer xfqupds
real, dimension(:,:), allocatable xker_q_limsg
real, pointer xehmax
real, dimension(:), allocatable xgaminc_rim3
real, pointer xeimax
real, pointer xfqupdi
real, pointer xegmin
real, dimension(:,:), allocatable xmansell
real, pointer xecmax
real, pointer xexqsedr
real, dimension(:,:), allocatable xtaka_tm
real, pointer xfqsedc
real, pointer xfqsedr
real, pointer xexfqupdi
real, pointer xexqseds
real, dimension(:,:), allocatable xker_q_sdryg
real, pointer xesmax
real, pointer xesmin
real, pointer xegmax
subroutine elec_param_associate()
real, pointer xfqupdh
real, pointer xfqseds
real, dimension(:,:), allocatable xsaunder
real, dimension(:), pointer xfqsed
real, pointer xfqupdg
real, pointer xfqupdr
real, pointer xermax
real, dimension(:,:), allocatable xker_q_rdryg
real, pointer xecmin
real, pointer xexqsedg
real, pointer xexqsedh
real, pointer xfqsedh
type(elec_param_t), target elec_param
integer, parameter jpmodelmax