2 ! ------------------------------------------------------------------
5 ! This COMDECK includes the Thermodynamical functions
for the cy39
6 ! ECMWF Physics package.
7 ! Consistent with
YOMCST Basic physics constants, assuming the
8 ! partial
pressure of water vapour is given by a first order
9 ! Taylor expansion of
Qs(T)
w.
r.
t. to Temperature, using constants
11 ! Two sets of functions are available. In the first set
only the
12 ! cases water or ice are distinguished by temperature. This set
14 ! The second set considers, besides the two cases water and ice
15 ! also a mix of both for the temperature range
RTICE < T <
RTWAT.
18 ! Depending on the consideration of mixed phases either the first
19 ! set (e.
g. surface, post-processing) or the second set
22 ! ------------------------------------------------------------------
23 ! *****************************************************************
25 ! NO CONSIDERATION OF MIXED PHASES
27 ! *****************************************************************
37 ! THERMODYNAMICAL FUNCTIONS .
39 ! Pressure of water vapour
at saturation
40 ! INPUT : PTARE = TEMPERATURE
62 ! *****************************************************************
64 ! CONSIDERATION OF MIXED PHASES
66 ! *****************************************************************
68 ! FOEALFA is calculated to distinguish the three cases:
70 ! FOEALFA=1 water phase
72 ! 0 < FOEALFA < 1 mixed phase
74 ! INPUT : PTARE = TEMPERATURE
82 ! Pressure of water vapour
at saturation
83 ! INPUT : PTARE = TEMPERATURE
93 FOELDCPM ( PTARE ) = FOEALFA(PTARE)*
RALVDCP+&
99 ! ------------------------------------------------------------------
100 ! *****************************************************************
102 ! CONSIDERATION OF DIFFERENT MIXED PHASE FOR CONV
104 ! *****************************************************************
106 ! FOEALFCU is calculated to distinguish the three cases:
108 ! FOEALFCU=1 water phase
109 ! FOEALFCU=0 ice phase
110 ! 0 < FOEALFCU < 1 mixed phase
112 ! INPUT : PTARE = TEMPERATURE
120 ! Pressure of water vapour
at saturation
121 ! INPUT : PTARE = TEMPERATURE
124 FOEEWMCU ( PTARE ) =
R2ES *&
131 FOELDCPMCU ( PTARE ) = FOEALFCU(PTARE)*
RALVDCP+&
134 FOELHMCU ( PTARE ) =&
136 ! ------------------------------------------------------------------
139 ! Pressure of water vapour
at saturation
140 ! This one is
for the WMO definition of saturation,
i.e. always
141 ! with respect to water.
!$Id mode_top_bound COMMON comconstr r
!$Id mode_top_bound COMMON comconstr g
*REAL_B::FOEDELTA REAL_B::PTARE FOELDCP FOELDCPM
!$Id assuming the!partial pressure of water vapour is given by a first order!Taylor expansion of Qs(T) w.r.t.to Temperature
!$Id R5IES REAL RHOH2O REAL RTBERCU REAL RTICE
!$Id R5IES REAL RHOH2O REAL RALVDCP
!$Id klon initialisation mois suivants day_rain itap ENDIF!Calcul fin de nday_rain calcul nday_rain itap DO i
real, dimension(:,:), pointer, save w
!$Id R5IES REAL RHOH2O REAL RALSDCP
!$Id vert_prof_dissip LOGICAL lstardis INTEGER niterh integer vert_prof_dissip!vertical profile of horizontal dissipation!Allowed function of pressure
*REAL_B::FOEDELTA REAL_B::PTARE FOELDCP FOELHM FOEDEMCU
!$Id RNAVO!A1 Astronomical constants REAL ROMEGA!A1 bis Constantes concernant l orbite de la R_incl!A1 Geoide REAL R1SA!A1 Radiation!REAL RI0 REAL RSIGMA!A1 Thermodynamic gas phase REAL RCVV REAL RETV Thermodynamic solid phases REAL RCS!A1 Thermodynamic transition of phase REAL RLSTT
!$Id R5IES REAL RHOH2O REAL RTWAT
!$Id R5IES REAL RHOH2O REAL R5ALVCP
*REAL_B::FOEDELTA REAL_B::PTARE FOEDESU
!$Id R5IES REAL RHOH2O REAL R5ALSCP
!$Id R5IES REAL RHOH2O REAL RTBERCU REAL RKOOP2 COMMON YOETHF R5IES
!$Id R5IES REAL RHOH2O REAL RTBERCU REAL RTICECU
subroutine convection(KLON, KLEV, KIDIA, KFDIA, KBDIA, KTDIA, PDTCONV, ODEEP, OSHAL, OREFRESH_ALL, ODOWN, KICE, OSETTADJ, PTADJD, PTADJS, KENSM, PPABS, PZZ, PDXDY, PT, PRV, PRC, PRI, PU, PV, PW, KCOUNT, PTTEN, PRVTEN, PRCTEN, PRITEN, PPRTEN, PPRSTEN, PUMF, PDMF, PPRLFLX, PPRSFLX, PCAPE, KCLTOP, KCLBAS, OCHTRANS, KCH1, PCH1, PCH1TEN)
!$Id RNAVO!A1 Astronomical constants REAL ROMEGA!A1 bis Constantes concernant l orbite de la R_incl!A1 Geoide REAL R1SA!A1 Radiation!REAL RI0 REAL RSIGMA!A1 Thermodynamic gas phase REAL RCVV REAL RETV Thermodynamic solid phases REAL RCS!A1 Thermodynamic transition of phase REAL RLVTT
*REAL_B::FOEDELTA REAL_B::PTARE FOELDCP FOEEW(PTARE)
*REAL_B::FOEDELTA REAL_B::PTARE FOELDCP FOELHM FOEEWM(PTARE)
type(fft_type), pointer t
real(kind=8), dimension(8, 3), parameter at
!$Id R5IES REAL RHOH2O REAL RTBERCU REAL RKOOP2 COMMON YOETHF R2ES
!$Id RNAVO!A1 Astronomical constants REAL ROMEGA!A1 bis Constantes concernant l orbite de la R_incl!A1 Geoide REAL R1SA!A1 Radiation!REAL RI0 REAL RSIGMA!A1 Thermodynamic gas phase REAL RCVV REAL RETV Thermodynamic solid phases REAL RCS!A1 Thermodynamic transition of phase REAL RTT
*REAL_B::FOEDELTA REAL_B::PTARE FOEDELTA(PTARE)
*REAL_B::FOEDELTA REAL_B::PTARE FOEDE
*REAL_B::FOEDELTA REAL_B::PTARE FOELH
*REAL_B::FOEDELTA REAL_B::PTARE FOELDCP FOELHM FOELDCPMCU
*REAL_B::FOEDELTA REAL_B::PTARE FOELDCP FOEDEM
INTERFACE subroutine only