1 !WRF:MODEL_LAYER:PHYSICS
4 MODULE module_mp_nconvp
7 !----------------------------------------------------------------
8 SUBROUTINE lscond( th, p, qv, rho, pii &
10 ,EP2,SVP1,SVP2,SVP3,SVPT0 &
13 ,ids,ide, jds,jde, kds,kde & ! domain dims
14 ,ims,ime, jms,jme, kms,kme & ! memory dims
15 ,its,ite, jts,jte, kts,kte & ! tile dims
17 !----------------------------------------------------------------
19 !----------------------------------------------------------------
20 ! based on MM5 code (JD November 2006)
21 !----------------------------------------------------------------
22 INTEGER, INTENT(IN ) :: ids,ide, jds,jde, kds,kde, &
23 ims,ime, jms,jme, kms,kme, &
24 its,ite, jts,jte, kts,kte
25 REAL , INTENT(IN ) :: r_v, xlv, cp
26 REAL , INTENT(IN ) :: EP2,SVP1,SVP2,SVP3,SVPT0
28 REAL, DIMENSION( ims:ime , kms:kme , jms:jme ), &
33 REAL, DIMENSION( ims:ime , kms:kme , jms:jme ), &
41 REAL, DIMENSION( ims:ime , jms:jme ), &
42 INTENT(INOUT) :: RAINNC, &
47 REAL :: TTEMP, ES1, QS1, DQV, COND, R1
49 !----------------------------------------------------------------
54 TTEMP = PII(I,K,J)*TH(I,K,J)
55 ES1 = 1000.*SVP1*EXP(SVP2*(TTEMP-SVPT0)/(TTEMP-SVP3))
56 QS1 = EP2*ES1/(P(I,K,J)-ES1)
59 R1 = 1. + XLV*XLV/(R_V*CP)*QS1/(TTEMP*TTEMP)
61 QV(I,K,J) = QV(I,K,J) - COND
62 TTEMP = TTEMP + XLV/CP*COND
63 TH(I,K,J) = TTEMP/PII(I,K,J)
64 RAINNCV(I,J) = RHO(I,K,J)*COND*DZ8W(I,K,J)
65 RAINNC(I,J) = RAINNC(I,J) + RHO(I,K,J)*COND*DZ8W(I,K,J)
75 END MODULE module_mp_nconvp