PHYEX 0.9.5
PHYsique EXternalisée
Loading...
Searching...
No Matches
modd_cturb.F90
Go to the documentation of this file.
1!MNH_LIC Copyright 1994-2014 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 MODULE modd_cturb
7
8!$ACDC methods
9
10! #######################
11!
12!!**** *MODD_CTURB* - declaration of the turbulent scheme constants
13!!
14!! PURPOSE
15!! -------
16! The purpose of this declarative module is to declare the
17! turbulence scheme constants.
18!
19!!
20!!** IMPLICIT ARGUMENTS
21!! ------------------
22!! NONE
23!!
24!! REFERENCE
25!! ---------
26!! Book 2 of Meso-NH documentation (MODD_CTURB)
27!! Book 1 of Meso-NH documentation (Chapter Turbulence)
28!!
29!! AUTHOR
30!! ------
31!1 Joan Cuxart * INM and Meteo-France *
32!!
33!! MODIFICATIONS
34!! -------------
35!! Original 08/08/94
36!! Nov 06, 2002 (V. Masson) add XALPSBL and XASBL
37!! May 06 Remove EPS
38!! Jan 2019 (Q. Rodier) Remove XASBL
39!! Jan 2022 (Q. Rodier) introduction of a strucuture
40!----------------------------------------------------------------------------
41!
42!* 0. DECLARATIONS
43! ------------
44!
45IMPLICIT NONE
47!
48REAL :: xcmfs ! constant for the momentum flux due to shear
49REAL :: xcmfb ! constant for the momentum flux due to buoyancy
50!
51REAL :: xcpr2 ! second ct. for the turbulent Prandtl numbers
52REAL :: xcpr3 ! third ct. for the turbulent Prandtl numbers
53REAL :: xcpr4 ! fourth ct. for the turbulent Prandtl numbers
54REAL :: xcpr5 ! fifth ct. for the turbulent Prandtl numbers
55!
56REAL :: xcet ! constant into the transport term of the TKE eq.
57!
58REAL :: xcdp ! ct. for the production term in the dissipation eq.
59REAL :: xcdd ! ct. for the destruction term in the dissipation eq.
60REAL :: xcdt ! ct. for the transport term in the dissipation eq.
61!
62REAL :: xrm17 ! Rodier et al 2017 constant in shear term for mixing length
63!
64REAL :: xlinf ! to prevent division by zero in the BL algorithm
65!
66REAL :: xalpsbl ! constant linking TKE and friction velocity in the SBL
67!
68REAL :: xcep ! Constant for wind pressure-correlations
69REAL :: xa0 ! Constant a0 for wind pressure-correlations
70REAL :: xa2 ! Constant a2 for wind pressure-correlations
71REAL :: xa3 ! Constant a3 for wind pressure-correlations
72REAL :: xa5 ! Constant a5 for temperature pressure-correlations
73REAL :: xctd ! Constant for temperature and vapor dissipation
74!
75REAL :: xphi_lim ! Threshold value for Phi3 and Psi3
76REAL :: xsbl_o_bl ! SBL height / BL height ratio
77REAL :: xftop_o_fsurf! Fraction of surface (heat or momentum) flux used to define top of BL
78!
79END TYPE csturb_t
80!
81TYPE(csturb_t), TARGET, SAVE :: csturb
82!
83REAL,POINTER :: xcmfs => null()
84REAL,POINTER :: xcmfb => null()
85!
86REAL,POINTER :: xcpr2 => null()
87REAL,POINTER :: xcpr3 => null()
88REAL,POINTER :: xcpr4 => null()
89REAL,POINTER :: xcpr5 => null()
90!
91REAL,POINTER :: xcet => null()
92!
93REAL,POINTER :: xcdp => null()
94REAL,POINTER :: xcdd => null()
95REAL,POINTER :: xcdt => null()
96!
97REAL,POINTER :: xrm17 => null()
98!
99REAL,POINTER :: xlinf => null()
100!
101REAL,POINTER :: xalpsbl => null()
102!
103REAL,POINTER :: xcep => null()
104REAL,POINTER :: xa0 => null()
105REAL,POINTER :: xa2 => null()
106REAL,POINTER :: xa3 => null()
107REAL,POINTER :: xa5 => null()
108REAL,POINTER :: xctd => null()
109!
110REAL,POINTER :: xphi_lim => null()
111REAL,POINTER :: xsbl_o_bl => null()
112REAL,POINTER :: xftop_o_fsurf => null()
113
114CONTAINS
115SUBROUTINE cturb_associate()
116IMPLICIT NONE
117 xcmfs=>csturb%XCMFS
118 xcmfb=>csturb%XCMFB
119 !
120 xcpr2=>csturb%XCPR2
121 xcpr3=>csturb%XCPR3
122 xcpr4=>csturb%XCPR4
123 xcpr5=>csturb%XCPR5
124 !
125 xcet=>csturb%XCET
126 !
127 xcdp=>csturb%XCDP
128 xcdd=>csturb%XCDD
129 xcdt=>csturb%XCDT
130 !
131 xrm17=>csturb%XRM17
132 !
133 xlinf=>csturb%XLINF
134 !
135 xalpsbl=>csturb%XALPSBL
136 !
137 xcep=>csturb%XCEP
138 xa0=>csturb%XA0
139 xa2=>csturb%XA2
140 xa3=>csturb%XA3
141 xa5=>csturb%XA5
142 xctd=>csturb%XCTD
143 !
144 xphi_lim=>csturb%XPHI_LIM
145 xsbl_o_bl=>csturb%XSBL_O_BL
146 xftop_o_fsurf=>csturb%XFTOP_O_FSURF
147END SUBROUTINE cturb_associate
148END MODULE modd_cturb
real, pointer xcmfs
real, pointer xcdp
real, pointer xalpsbl
real, pointer xftop_o_fsurf
real, pointer xcet
real, pointer xa3
real, pointer xcpr4
real, pointer xcep
real, pointer xcpr3
real, pointer xa2
real, pointer xcpr2
real, pointer xrm17
real, pointer xa0
real, pointer xctd
subroutine cturb_associate()
real, pointer xcdd
type(csturb_t), target, save csturb
real, pointer xa5
real, pointer xcdt
real, pointer xsbl_o_bl
real, pointer xphi_lim
real, pointer xcpr5
real, pointer xcmfb
real, pointer xlinf