Repository navigation
Apply the SMS-3DTKE partition function once to the entrainment part of the nonlocal heat flux - #2445
Merged
weiwangncar merged 1 commit intoNov 14, 2026
Conversation
…f the nonlocal heat flux In nonlocal_flux the entrainment flux at the PBL top was multiplied by the partition function P_NL when it was formed, and the whole nonlocal profile was multiplied by P_NL again, so the entrainment part carried P_NL squared. Zhang et al. (2018, eq. 35) and the Shin-Hong scheme apply it once to the total. Results change only in the grey zone, where 0 < P_NL < 1. modified: dyn_em/module_diffusion_em.F
Collaborator
|
@zhangxsms Can you take a look at this PR too? |
Collaborator
|
The regression test results: |
weiwangncar
approved these changes
Nov 14, 2026
weiwangncar
left a comment
Collaborator
There was a problem hiding this comment.
Agreed by Xu Zhang, the original code contributor.
dudhia
approved these changes
Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TYPE: bug fix
KEYWORDS: SMS-3DTKE, km_opt = 5, nonlocal flux, entrainment, grey zone
SOURCE: Mark I. Richardson (Aeolis Research)
DESCRIPTION OF CHANGES:
Problem:
In nonlocal_flux (dyn_em/module_diffusion_em.F), the entrainment flux hfxpbl is multiplied by the partition function P_NL when it is formed, and the whole nonlocal profile, entrainment part included, is multiplied by P_NL again. So the entrainment part carries P_NL**2. Zhang et al. (2018, MWR 146, eq. 35) and the Shin-Hong scheme apply P_NL once. Details in #2444.
Solution:
Remove the first multiplication (hfxpbl = hfxpbl*pth1). The profile is still scaled once by P_NL. Results change only in the grey zone, where 0 < P_NL < 1.
ISSUE:
Fixes #2444
LIST OF MODIFIED FILES:
M dyn_em/module_diffusion_em.F
TESTS CONDUCTED:
RELEASE NOTE: SMS-3DTKE (km_opt = 5): in the grey zone the entrainment part of the nonlocal heat flux is now scaled by the partition function once, not twice, so it is stronger by a factor 1/P_NL.