! $Header$ SUBROUTINE tlift(p, t, rr, rs, gz, plcl, icb, nk, tvp, tpk, clw, nd, nl, & dtvpdt1, dtvpdq1) USE yomcst_mod_h IMPLICIT NONE ! Argument NK ajoute (jyg) = Niveau de depart de la ! convection INTEGER icb, nk, nd, nl INTEGER,PARAMETER :: na=60 REAL gz(nd), tpk(nd), clw(nd), plcl REAL t(nd), rr(nd), rs(nd), tvp(nd), p(nd) REAL dtvpdt1(nd), dtvpdq1(nd) ! Derivatives of parcel virtual ! temperature wrt T1 and Q1 REAL clw_new(na), qi(na) REAL dtpdt1(na), dtpdq1(na) ! Derivatives of parcel temperature ! wrt T1 and Q1 REAL gravity, cpd, cpv, cl, ci, cpvmcl, clmci, eps, alv0, alf0 REAL cpp, cpinv, ah0, alf, tg, s, ahg, tc, denom, alv, es, esi REAL qsat_new, snew INTEGER icbl, i, imin, j, icb1 LOGICAL ice_conv ! *** ASSIGN VALUES OF THERMODYNAMIC CONSTANTS *** ! sb CPD=1005.7 ! sb CPV=1870.0 ! sb CL=4190.0 ! sb CPVMCL=2320.0 ! sb RV=461.5 ! sb RD=287.04 ! sb EPS=RD/RV ! sb ALV0=2.501E6 ! cccccccccccccccccccccc ! constantes coherentes avec le modele du Centre Europeen ! sb RD = 1000.0 * 1.380658E-23 * 6.0221367E+23 / 28.9644 ! sb RV = 1000.0 * 1.380658E-23 * 6.0221367E+23 / 18.0153 ! sb CPD = 3.5 * RD ! sb CPV = 4.0 * RV ! sb CL = 4218.0 ! sb CI=2090.0 ! sb CPVMCL=CL-CPV ! sb CLMCI=CL-CI ! sb EPS=RD/RV ! sb ALV0=2.5008E+06 ! sb ALF0=3.34E+05 ! ccccccccccc ! on utilise les constantes thermo du Centre Europeen: (SB) gravity = rg !sb: Pr que gravite ne devienne pas humidite! cpd = rcpd cpv = rcpv cl = rcw ci = rcs cpvmcl = cl - cpv clmci = cl - ci eps = rd/rv alv0 = rlvtt alf0 = rlmlt ! (ALF0 = RLSTT-RLVTT) ! ccccccccccccccccccccc ! *** CALCULATE CERTAIN PARCEL QUANTITIES, INCLUDING STATIC ENERGY *** icb1 = max(icb, 2) icb1 = min(icb, nl) ! jyg1 ! C CPP=CPD*(1.-RR(1))+RR(1)*CPV cpp = cpd*(1.-rr(nk)) + rr(nk)*cpv ! jyg2 cpinv = 1./cpp ! jyg1 ! ICB may be below condensation level ! CC DO 100 I=1,ICB1-1 ! CC TPK(I)=T(1)-GZ(I)*CPINV ! CC TVP(I)=TPK(I)*(1.+RR(1)/EPS) DO i = 1, icb1 clw(i) = 0.0 END DO DO i = nk, icb1 tpk(i) = t(nk) - (gz(i)-gz(nk))*cpinv ! jyg1 ! CC TVP(I)=TPK(I)*(1.+RR(NK)/EPS) tvp(i) = tpk(i)*(1.+rr(nk)/eps-rr(nk)) ! jyg2 dtvpdt1(i) = 1. + rr(nk)/eps - rr(nk) dtvpdq1(i) = tpk(i)*(1./eps-1.) ! jyg2 END DO ! *** FIND LIFTED PARCEL TEMPERATURE AND MIXING RATIO *** ! jyg1 ! C AH0=(CPD*(1.-RR(1))+CL*RR(1))*T(1) ! C $ +RR(1)*(ALV0-CPVMCL*(T(1)-273.15)) ah0 = (cpd*(1.-rr(nk))+cl*rr(nk))*t(nk) + rr(nk)*(alv0-cpvmcl*(t(nk)-273.15 & )) + gz(nk) ! jyg2 ! jyg1 imin = icb1 ! If ICB is below LCL, start loop at ICB+1 IF (plcl