source: LMDZ6/trunk/libf/phylmd/lscp_ini_mod.F90 @ 4562

Last change on this file since 4562 was 4562, checked in by evignon, 16 months ago

nettoyage et reecriture propre de icefrac_lscp_mod
+ ajoute d'une option pour faire dependre la phase du nuage
de la distance / sommet
travail de Lea Raillard et Meryl Wimmer

File size: 10.3 KB
Line 
1module lscp_ini_mod
2
3implicit none
4
5  ! PARAMETERS for lscp:
6  !--------------------
7 
8  REAL RCPD, RLSTT, RLVTT, RLMLT, RVTMP2, RTT, RD, RG
9  !$OMP THREADPRIVATE(RCPD, RLSTT, RLVTT, RLMLT, RVTMP2, RTT, RD, RG)
10
11  REAL, SAVE :: seuil_neb=0.001                 ! cloud fraction threshold: a cloud really exists when exceeded
12  !$OMP THREADPRIVATE(seuil_neb)
13
14  INTEGER, SAVE :: niter_lscp=5                 ! number of iterations to calculate autoconversion to precipitation
15  !$OMP THREADPRIVATE(niter_lscp)
16
17  INTEGER,SAVE :: iflag_evap_prec=1             ! precipitation evaporation flag. 0: nothing, 1: "old way",
18                                                ! 2: Max cloud fraction above to calculate the max of reevaporation
19                                                ! 4: LTP'method i.e. evaporation in the clear-sky fraction of the mesh only
20  !$OMP THREADPRIVATE(iflag_evap_prec)
21
22  REAL t_coup                                   ! temperature threshold which determines the phase
23  PARAMETER (t_coup=234.0)                      ! for which the saturation vapor pressure is calculated
24
25  REAL DDT0                                     ! iteration parameter
26  PARAMETER (DDT0=.01)
27
28  REAL ztfondue                                 ! parameter to calculate melting fraction of precipitation
29  PARAMETER (ztfondue=278.15)
30
31  REAL, SAVE    :: rain_int_min=0.001           ! Minimum local rain intensity [mm/s] before the decrease in associated precipitation fraction
32  !$OMP THREADPRIVATE(rain_int_min)
33
34  REAL, SAVE :: a_tr_sca(4)                     ! Variables for tracers temporary: alpha parameter for scavenging, 4 possible scavenging processes
35  !$OMP THREADPRIVATE(a_tr_sca)
36 
37  INTEGER, SAVE ::  iflag_mpc_bl=0              ! flag to activate boundary layer mixed phase cloud param
38  !$OMP THREADPRIVATE(iflag_mpc_bl)
39 
40  LOGICAL, SAVE :: ok_radocond_snow=.false.       ! take into account the mass of ice precip in the cloud ice content seen by radiation
41  !$OMP THREADPRIVATE(ok_radocond_snow)
42
43  REAL, SAVE :: t_glace_min=258.0                ! lower-bound temperature parameter for cloud phase determination
44  !$OMP THREADPRIVATE(t_glace_min)
45
46  REAL, SAVE :: t_glace_max=273.15               ! upper-bound temperature parameter for cloud phase determination
47  !$OMP THREADPRIVATE(t_glace_max)
48
49  REAL, SAVE :: exposant_glace=1.0               ! parameter for cloud phase determination
50  !$OMP THREADPRIVATE(exposant_glace)
51
52  INTEGER, SAVE :: iflag_vice=0                  ! which expression for ice crystall fall velocity
53  !$OMP THREADPRIVATE(iflag_vice)
54
55  INTEGER, SAVE :: iflag_t_glace=0               ! which expression for cloud phase partitioning
56  !$OMP THREADPRIVATE(iflag_t_glace)
57
58  INTEGER, SAVE :: iflag_cloudth_vert=0          ! option for determining cloud fraction and content in convective boundary layers
59  !$OMP THREADPRIVATE(iflag_cloudth_vert)
60
61  INTEGER, SAVE :: iflag_gammasat=0              ! which threshold for homogeneous nucleation below -40oC
62  !$OMP THREADPRIVATE(iflag_gammasat)
63
64  INTEGER, SAVE :: iflag_rain_incloud_vol=0      ! use of volume cloud fraction for rain autoconversion
65  !$OMP THREADPRIVATE(iflag_rain_incloud_vol)
66
67  INTEGER, SAVE :: iflag_bergeron=0              ! bergeron effect for liquid precipitation treatment 
68  !$OMP THREADPRIVATE(iflag_bergeron)
69
70  INTEGER, SAVE :: iflag_fisrtilp_qsat=0         ! qsat adjustment (iterative) during autoconversion
71  !$OMP THREADPRIVATE(iflag_fisrtilp_qsat)
72
73  INTEGER, SAVE :: iflag_pdf=0                   ! type of subgrid scale qtot pdf
74  !$OMP THREADPRIVATE(iflag_pdf)
75
76  INTEGER, SAVE :: iflag_autoconversion=0        ! autoconversion option
77  !$OMP THREADPRIVATE(iflag_autoconversion)
78
79  LOGICAL, SAVE :: reevap_ice=.false.            ! no liquid precip for T< threshold
80  !$OMP THREADPRIVATE(reevap_ice)
81
82  REAL, SAVE :: cld_lc_lsc=2.6e-4                ! liquid autoconversion coefficient, stratiform rain
83  !$OMP THREADPRIVATE(cld_lc_lsc)
84
85  REAL, SAVE :: cld_lc_con=2.6e-4                ! liquid autoconversion coefficient, convective rain
86  !$OMP THREADPRIVATE(cld_lc_con)
87
88  REAL, SAVE :: cld_tau_lsc=3600.                ! liquid autoconversion timescale, stratiform rain
89  !$OMP THREADPRIVATE(cld_tau_lsc)
90
91  REAL, SAVE :: cld_tau_con=3600.                ! liquid autoconversion timescale, convective rain
92  !$OMP THREADPRIVATE(cld_tau_con)
93
94  REAL, SAVE :: cld_expo_lsc=2.                  ! liquid autoconversion threshold exponent, stratiform rain
95  !$OMP THREADPRIVATE(cld_expo_lsc)
96
97  REAL, SAVE :: cld_expo_con=2.                  ! liquid autoconversion threshold exponent, convective rain
98  !$OMP THREADPRIVATE(cld_expo_con)
99
100  REAL, SAVE :: ffallv_lsc=1.                    ! tuning coefficient crystal fall velocity, stratiform
101  !$OMP THREADPRIVATE(ffallv_lsc)
102
103  REAL, SAVE :: ffallv_con=1.                    ! tuning coefficient crystal fall velocity, convective
104  !$OMP THREADPRIVATE(ffallv_con)
105
106  REAL, SAVE :: coef_eva=2e-5                    ! tuning coefficient liquid precip evaporation
107  !$OMP THREADPRIVATE(coef_eva)
108
109  REAL, SAVE :: coef_eva_i                       ! tuning coefficient ice precip sublimation
110  !$OMP THREADPRIVATE(coef_eva_i)
111
112  REAL cice_velo                                 ! factor in the ice fall velocity formulation
113  PARAMETER (cice_velo=1.645)
114
115  REAL dice_velo                                 ! exponent in the ice fall velocity formulation
116  PARAMETER (dice_velo=0.16)
117
118  REAL, SAVE :: dist_liq=300.                    ! typical deph of cloud-top liquid layer in mpcs
119  !$OMP THREADPRIVATE(dist_liq)
120
121  REAL, SAVE    :: tresh_cl=0.0                  ! cloud fraction threshold for cloud top search
122  !$OMP THREADPRIVATE(tresh_cl)
123
124CONTAINS
125
126SUBROUTINE lscp_ini(dtime,ok_ice_sursat, RCPD_in, RLSTT_in, RLVTT_in, RLMLT_in, &
127                    RVTMP2_in, RTT_in,RD_in,RG_in)
128
129
130   USE ioipsl_getin_p_mod, ONLY : getin_p
131   USE print_control_mod, ONLY: prt_level, lunout
132   USE ice_sursat_mod, ONLY: ice_sursat_init
133
134   REAL, INTENT(IN)      :: dtime
135   LOGICAL, INTENT(IN)   :: ok_ice_sursat 
136
137   REAL, INTENT(IN)      :: RCPD_in, RLSTT_in, RLVTT_in, RLMLT_in
138   REAL, INTENT(IN)      ::  RVTMP2_in, RTT_in, RD_in, RG_in
139   character (len=20) :: modname='lscp_ini_mod'
140   character (len=80) :: abort_message
141
142
143    RG=RG_in
144    RD=RD_in
145    RCPD=RCPD_in
146    RLVTT=RLVTT_in
147    RLSTT=RLSTT_in
148    RLMLT=RLMLT_in
149    RTT=RTT_in
150    RG=RG_in
151    RVTMP2=RVTMP2_in
152
153
154
155    CALL getin_p('niter_lscp',niter_lscp)
156    CALL getin_p('iflag_evap_prec',iflag_evap_prec)
157    CALL getin_p('seuil_neb',seuil_neb)
158    CALL getin_p('rain_int_min',rain_int_min)
159    CALL getin_p('iflag_mpc_bl',iflag_mpc_bl)
160    CALL getin_p('ok_radocond_snow',ok_radocond_snow)
161    CALL getin_p('t_glace_max',t_glace_max)
162    CALL getin_p('t_glace_min',t_glace_min)
163    CALL getin_p('exposant_glace',exposant_glace)
164    CALL getin_p('iflag_vice',iflag_vice)
165    CALL getin_p('iflag_t_glace',iflag_t_glace)
166    CALL getin_p('iflag_cloudth_vert',iflag_cloudth_vert)
167    CALL getin_p('iflag_gammasat',iflag_gammasat)
168    CALL getin_p('iflag_rain_incloud_vol',iflag_rain_incloud_vol)
169    CALL getin_p('iflag_bergeron',iflag_bergeron)
170    CALL getin_p('iflag_fisrtilp_qsat',iflag_fisrtilp_qsat)
171    CALL getin_p('iflag_pdf',iflag_pdf)
172    CALL getin_p('reevap_ice',reevap_ice)
173    CALL getin_p('cld_lc_lsc',cld_lc_lsc)
174    CALL getin_p('cld_lc_con',cld_lc_con)
175    CALL getin_p('cld_tau_lsc',cld_tau_lsc)
176    CALL getin_p('cld_tau_con',cld_tau_con)
177    CALL getin_p('cld_expo_lsc',cld_expo_lsc)
178    CALL getin_p('cld_expo_con',cld_expo_con)
179    CALL getin_p('ffallv_lsc',ffallv_lsc)
180    CALL getin_p('ffallv_lsc',ffallv_con)
181    CALL getin_p('coef_eva',coef_eva)
182    coef_eva_i=coef_eva
183    CALL getin_p('coef_eva_i',coef_eva_i)
184    CALL getin_p('iflag_autoconversion',iflag_autoconversion)
185    CALL getin_p('dist_liq',dist_liq)
186    CALL getin_p('tresh_cl',tresh_cl)
187
188
189
190
191    WRITE(lunout,*) 'lscp, niter_lscp:', niter_lscp
192    WRITE(lunout,*) 'lscp, iflag_evap_prec:', iflag_evap_prec
193    WRITE(lunout,*) 'lscp, seuil_neb:', seuil_neb
194    WRITE(lunout,*) 'lscp, rain_int_min:', rain_int_min
195    WRITE(lunout,*) 'lscp, iflag_mpc_bl:', iflag_mpc_bl
196    WRITE(lunout,*) 'lscp, ok_radocond_snow:', ok_radocond_snow
197    WRITE(lunout,*) 'lscp, t_glace_max:', t_glace_max
198    WRITE(lunout,*) 'lscp, t_glace_min:', t_glace_min
199    WRITE(lunout,*) 'lscp, exposant_glace:', exposant_glace
200    WRITE(lunout,*) 'lscp, iflag_vice:', iflag_vice
201    WRITE(lunout,*) 'lscp, iflag_t_glace:', iflag_t_glace
202    WRITE(lunout,*) 'lscp, iflag_cloudth_vert:', iflag_cloudth_vert
203    WRITE(lunout,*) 'lscp, iflag_gammasat:', iflag_gammasat
204    WRITE(lunout,*) 'lscp, iflag_rain_incloud_vol:', iflag_rain_incloud_vol
205    WRITE(lunout,*) 'lscp, iflag_bergeron:', iflag_bergeron
206    WRITE(lunout,*) 'lscp, iflag_fisrtilp_qsat:', iflag_fisrtilp_qsat
207    WRITE(lunout,*) 'lscp, iflag_pdf', iflag_pdf
208    WRITE(lunout,*) 'lscp, reevap_ice', reevap_ice
209    WRITE(lunout,*) 'lscp, cld_lc_lsc', cld_lc_lsc
210    WRITE(lunout,*) 'lscp, cld_lc_con', cld_lc_con
211    WRITE(lunout,*) 'lscp, cld_tau_lsc', cld_tau_lsc
212    WRITE(lunout,*) 'lscp, cld_tau_con', cld_tau_con
213    WRITE(lunout,*) 'lscp, cld_expo_lsc', cld_expo_lsc
214    WRITE(lunout,*) 'lscp, cld_expo_con', cld_expo_con
215    WRITE(lunout,*) 'lscp, ffallv_lsc', ffallv_lsc
216    WRITE(lunout,*) 'lscp, ffallv_con', ffallv_con
217    WRITE(lunout,*) 'lscp, coef_eva', coef_eva
218    WRITE(lunout,*) 'lscp, coef_eva_i', coef_eva_i
219    WRITE(lunout,*) 'lscp, iflag_autoconversion', iflag_autoconversion
220    WRITE(lunout,*) 'lscp, dist_liq', dist_liq
221    WRITE(lunout,*) 'lscp, tresh_cl', tresh_cl
222
223
224
225
226
227    ! check for precipitation sub-time steps
228    IF (ABS(dtime/REAL(niter_lscp)-360.0).GT.0.001) THEN
229        WRITE(lunout,*) 'lscp: it is not expected, see Z.X.Li', dtime
230        WRITE(lunout,*) 'I would prefer a 6 min sub-timestep'
231    ENDIF
232
233    ! check consistency between numerical resolution of autoconversion
234    ! and other options
235   
236    IF (iflag_autoconversion .EQ. 2) THEN
237        IF ((iflag_vice .NE. 0) .OR. (niter_lscp .GT. 1)) THEN
238           abort_message = 'in lscp, iflag_autoconversion=2 requires iflag_vice=0 and niter_lscp=1'
239           CALL abort_physic (modname,abort_message,1)
240        ENDIF
241    ENDIF
242
243
244    !AA Temporary initialisation
245    a_tr_sca(1) = -0.5
246    a_tr_sca(2) = -0.5
247    a_tr_sca(3) = -0.5
248    a_tr_sca(4) = -0.5
249   
250    IF (ok_ice_sursat) CALL ice_sursat_init()
251
252
253
254end subroutine lscp_ini
255
256end module lscp_ini_mod
Note: See TracBrowser for help on using the repository browser.