40 SUBROUTINE frzlvl(ZFRZ,RHFRZ,PFRZL)
44 use vrbls3d, only: pint, t, zmid, q, pmid
45 use vrbls2d, only: fis, tshltr, pshltr, qshltr
47 use params_mod, only: gi, d00, capa, d0065, tfrz, pq0, a2, a3, a4
48 use ctlblk_mod
, only: jsta, jend, spval, lm, modelname, im
56 REAL,
dimension(im,jsta:jend) :: rhfrz, zfrz, pfrzl
58 real htsfc,psfc,tsfc,qsfc,qsat,rhsfc,delz,delt,delq,delalp, &
59 delzp,zl,dzabv,qfrz,alpl,alph,alpfrz,pfrz,qsfrz,rhz,zu, &
81 psfc = pint(i,j,llmh+1)
92 IF(tshltr(i,j)/=spval .AND. pshltr(i,j)/=spval)
THEN
93 tsfc=tshltr(i,j)*(pshltr(i,j)*1.e-5)**capa
96 tsfc=t(i,j,lm)+d0065*(zmid(i,j,lm)-htsfc-2.0)
100 zfrz(i,j) = htsfc+2.0+(tsfc-tfrz)/d0065
106 IF(qshltr(i,j)/=spval)
THEN
114 IF(modelname ==
'GFS' .OR. modelname ==
'RAPR')
THEN
117 qsat=con_eps*es/(psfc+con_epsm1*es)
119 qsat=pq0/psfc*exp(a2*(tsfc-a3)/(tsfc-a4))
123 rhsfc = amax1(0.01,rhsfc)
124 rhsfc = amin1(rhsfc,1.0)
133 IF (t(i,j,l)<=tfrz)
THEN
135 delz = zmid(i,j,l)-zmid(i,j,l+1)
137 delt = t(i,j,l)-t(i,j,l+1)
138 zfrz(i,j) = zl + (tfrz-t(i,j,l+1))/delt*delz
141 delq = q(i,j,l)-q(i,j,l+1)
142 qfrz = q(i,j,l+1) + delq/delz*dzabv
143 qfrz = amax1(0.0,qfrz)
146 alpl = alog(pmid(i,j,l+1))
147 alph = alog(pmid(i,j,l))
148 alpfrz = alpl + (alph-alpl)/delz*dzabv
151 IF(modelname ==
'GFS' .OR.modelname ==
'RAPR')
THEN
154 qsfrz=con_eps*es/(pfrz+con_epsm1*es)
157 *exp(a2*(tfrz-a3)/(tfrz-a4))
161 rhz = amax1(0.01,rhz)
169 IF(tshltr(i,j)/=spval .AND. pshltr(i,j)/=spval)
THEN
170 tsfc=tshltr(i,j)*(pshltr(i,j)*1.e-5)**capa
173 tsfc=t(i,j,lm)+d0065*(zmid(i,j,lm)-htsfc-2.0)
176 zfrz(i,j) = zl + (tfrz-tsfc)/delt*delz
180 IF(qshltr(i,j)/=spval)
THEN
186 qfrz = qsfc + delq/delz*dzabv
187 qfrz = amax1(0.0,qfrz)
189 alph = alog(pmid(i,j,l))
192 alpfrz = alpl + delalp/delz*dzabv
196 IF(modelname ==
'GFS'.OR.modelname ==
'RAPR')
THEN
199 qsfrz=con_eps*es/(pfrz+con_epsm1*es)
202 *exp(a2*(tfrz-a3)/(tfrz-a4))
206 rhz = amax1(0.01,rhz)
216 zfrz(i,j) = amax1(0.0,zfrz(i,j))
elemental real function, public fpvsnew(t)
calcape() computes CAPE/CINS and other storm related variables.