Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correction of stability functions for the tke-epsilon-tpe PBL scheme #2120

Merged
merged 1 commit into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions phys/module_bl_keps.F
Original file line number Diff line number Diff line change
Expand Up @@ -1073,16 +1073,16 @@ subroutine surface_bl_pra_ri(kms,kme,kts,kte,dz,z,rho,g,cp,z0,sflux,raten,pi1d,p
zz=(zl1+z0)/zl1
zol1 = max(b_ric*psim*psim/psih,rimin)
if(sfcflg)then
zol1 = min(zol1,-zfmin)
zol1 = zz*min(zol1,-zfmin)
else
zol1 = max(zol1,zfmin)
zol1 = zz*max(zol1,zfmin)
endif
hol1 = zol1*pblh/zl1*sfcfrac

if(sfcflg)then
phim = (1.-aphi16*zol1*zz)**(-1./4.)
phih = (1.-aphi16*zol1*zz)**(-1./2.)
phieps=1.-zol1*zz
phim = (1.-aphi16*zol1)**(-1./4.)
phih = (1.-aphi16*zol1)**(-1./2.)
phieps=1.-zol1
phim_sl = (1.-aphi16*hol1)**(-1./4.)
phih_sl = (1.-aphi16*hol1)**(-1./2.)
bfx0 = max(sflux,0.)
Expand All @@ -1093,9 +1093,9 @@ subroutine surface_bl_pra_ri(kms,kme,kts,kte,dz,z,rho,g,cp,z0,sflux,raten,pi1d,p
else
phim_sl = (1.+aphi5*hol1)
phih_sl= phim_sl
phim=(1.+aphi5*zol1*zz)
phieps=(1+2.5*(zol1*zz)**0.6)**(3./2.)
phih= phim_sl
phim=(1.+aphi5*zol1)
phieps=(1+2.5*(zol1)**0.6)**(3./2.)
phih= phim
wstar3=0.
wstar3_2=0.
endif
Expand Down
2 changes: 1 addition & 1 deletion phys/module_pbl_driver.F
Original file line number Diff line number Diff line change
Expand Up @@ -1899,7 +1899,7 @@ SUBROUTINE pbl_driver( &
,B_E_BEP=b_e_bep &
,SF_BEP=sf_bep,VL_BEP=vl_bep &
,BR=br,ZNT=znt &
,PSIM=psim,PSIH=psih &
,PSIM=fm,PSIH=fhh &
,IDS=ids,IDE=ide,JDS=jds,JDE=jde,KDS=kds,KDE=kde &
,IMS=ims,IME=ime,JMS=jms,JME=jme,KMS=kms,KME=kme &
,ITS=its,ITE=ite,JTS=jts,JTE=jte,KTS=kts,KTE=kte )
Expand Down