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

PBL and Convection and Microphysics update for HR2 #65

Merged
merged 10 commits into from
May 9, 2023

Conversation

Qingfu-Liu
Copy link
Collaborator

@Qingfu-Liu Qingfu-Liu commented Apr 21, 2023

This PR is created for HR2 with the updated PBL & convection codes (code from Jongil Han and Ruiyu Sun). I have resolved the conflicts of the codes with the current repository. The overall features for the updates:

  1. to reduce the negative hurricane intensity biases, a parameterization for environmental wind shear effect is included in the GFS cumulus convection and TKE-EDMF PBL schemes. In addition, the entrainment rates in the GFS cumulus convection and TKE-EDMF PBL schemes are enhanced proportional to the sub-cloud or PBL mean TKE (turbulent kinetic energy) when TKE is larger than a threshold value.

  2. A detailed description and test results with the NCEP GFS for the impacts of the new parameterization of environmental wind shear effect and TKE-dependent entrainment enhancement on hurricane intensity and track forecasts are given here.

  3. To enhance the underestimated CAPE forecasts in the GFS, the entrainment rate in the TKE-EDMF PBL scheme is increased as a function of vegetation fraction and surface roughness length. A detailed description and test results with the NCEP GFS for this update are given here.

@Qingfu-Liu
Copy link
Collaborator Author

I have compiled the code with two suites (FV3_GFS_v16, FV3_GFS_v17_p8) and successfully run two tests (control_c384, control_p8).

! tem2 = (u1(i,1)/dz)**2
! tem2 = tem2+(v1(i,1)/dz)**2
! tem2 = cs0*sqrt(e2(i,n))*sqrt(tem2)
!
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to consider removing the lines that are commented out.

Copy link
Collaborator

@lisa-bengtsson lisa-bengtsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, the reduction of the dry bias is a welcomed contribution.

@Qingfu-Liu
Copy link
Collaborator Author

Qingfu-Liu commented Apr 24, 2023 via email

@@ -975,7 +979,29 @@ subroutine samfdeepcnv_run (im,km,first_time_step,restart, &
endif
enddo
endif

!
! if tkemean>tkcrt, tem=1+tkemean/tkcrt, clamt=tem*clam
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider removing these commented lines for cleaner code.

@@ -893,6 +895,18 @@ subroutine samfshalcnv_run(im,km,itc,ntc,cliq,cp,cvap, &
endif
endif
enddo
!
! if tkemean>tkcrt, clamt=(1+tkemean/tkcrt)*clam
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider removing the commented code.

@@ -1336,7 +1360,8 @@ subroutine satmedmfvdifq_run(im,km,ntrac,ntcw,ntrw, &
ptem2 = ptem2 + ptem
!
! tem2 = stress(i)*spd1(i)/zl(i,1)
tem2 = stress(i)*ustar(i)*phim(i)/(vk*zl(i,1))
! tem2 = stress(i)*ustar(i)*phim(i)/(vk*zl(i,1))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider removing commented code. Old versions will always be saved in git history.

Copy link
Collaborator

@grantfirl grantfirl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@grantfirl
Copy link
Collaborator

@Qingfu-Liu Are you going to open PRs into fv3atm and ufs-weather-model for this?

@Qingfu-Liu
Copy link
Collaborator Author

Qingfu-Liu commented Apr 24, 2023 via email

@Qingfu-Liu
Copy link
Collaborator Author

I just received an e-mail from microphysics developer, he want to make some small changes for HR2, I may combine the code changes to this PR if there is only a small code changes

@Qingfu-Liu Qingfu-Liu requested a review from mzhangw as a code owner April 26, 2023 11:00
@Qingfu-Liu
Copy link
Collaborator Author

Ruiyu Sun made small changes to "radiation_clouds.f", and I added him to review the new commit. There are no changes to the existing PR#65

@Qingfu-Liu Qingfu-Liu changed the title PBL and Convection update for HR2 PBL and Convection and Microphysics update for HR2 Apr 26, 2023
@@ -1664,8 +1687,7 @@ subroutine satmedmfvdifq_run(im,km,ntrac,ntcw,ntrw, &
endif
if((pcnvflg(i) .or. scuflg(i)) .and.
& (k >= kbx .and. k <= kmx)) then
dz = zi(i,k+1) - zi(i,k)
tem = f1(i,k) * dz
tem = f1(i,k) * del(i,k) / grav
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like there is a 1/g local variable declared in this routine. Please replace the division by "grav" with the multiplication by "gravi".

Copy link
Collaborator

@dustinswales dustinswales left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Nice job. Just a small suggestion on using a constant in one of the modules.

@@ -1720,8 +1742,7 @@ subroutine satmedmfvdifq_run(im,km,ntrac,ntcw,ntrw, &
enddo
do k = 1,km
do i = 1,im
dz = zi(i,k+1) - zi(i,k)
tem = f1(i,k) * dz
tem = f1(i,k) * del(i,k) / grav
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@Qingfu-Liu
Copy link
Collaborator Author

Qingfu-Liu commented May 2, 2023 via email

@Qingfu-Liu Qingfu-Liu requested a review from gthompsnWRF as a code owner May 8, 2023 17:09
@jkbk2004
Copy link

jkbk2004 commented May 9, 2023

Tests are done at ufs-community/ufs-weather-model#1731. @grantfirl @dustinswales Can you go ahead to merge this pr?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants