-
Notifications
You must be signed in to change notification settings - Fork 731
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
Modified/Corrected LECH's stability functions in the SL Urban Canopy Model following the formulation. #2032
Conversation
KEYWORDS: LECH stability functions, Latent heat flux, Sensible heat flux, energy balance, Surface temperature, SL Urban Canpy Model SOURCE: Parag Joshi (Brookhaven National Lab), Katia Lamer (Brookhaven National Lab) DESCRIPTION OF CHANGES: Problem: The stabvility functions originally proposed by Lech Lobocki which are used in calculating the exchange coefficients between surface layer and roof, building wall, Green roof, and ground are implemented incorrectly. The error surfaced while comparing the formulation suggested in Lobocki 1992 with the equations in commands/lines 3056 and 3062 (WRF-v4.5.2). Solution: The code has been corrected by referring to the equations 48 and 49 of the article "A procedure for the derivation of surface layer bulk relationahips from simplified second-order closure models" by Lobocki 1992 (Journal of Applied Meteorology). LIST OF MODIFIED FILES: module_sf_urban.F
The regression test results:
|
@cenlinhe Can you review this PR? Thanks! |
OK, this is indeed a bug and the proposed fix looks correct to me. I guess this error came from the original code of Noah LSM SFCDIF subroutine based on Chen et al., (1997, BLM): https://link.springer.com/article/10.1023/A:1000531001463 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve and defer to others on details of this.
@cenlinhe Thanks for reviewing this PR. Would you approve this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve and defer to others on details of this.
@cenlinhe Should I go ahead an make changes in the MoahMP-SFCDIF2 as well or you are going to update the subroutine? |
No, you do not need to do it. I will fix them later. |
@joshi994 do you have a reference showing the equations for your latest bug fix commit? |
OK, I think you may need to revert back to the original commit by removing the latest one, otherwise this PR seems being messed up. |
Your previous changes seems gone. They were replaced by your latest code changes. |
@cenlinhe I am new to GitHub commit. I may need some time to correct the error. What do you suggest? |
Sounds good. It's OK for you to take some time to correct this error. Thanks. |
@cenlinhe I tried reverting the error. Can you please confirm if the changes are restored and the new PR is still there? |
looks like this PR is reverted back and correct now. the new PR (2038) is also there. When you make any changes to your new PR (2038), please make sure you are working on your "my_changes2" branch instead of "my_changes1" branch. The "my_changes1" branch is for this PR here. |
Thanks for confirming. Please let me know if you need further clarification.
From: Cenlin_He ***@***.***>
Date: Wednesday, April 17, 2024 at 6:10 PM
To: wrf-model/WRF ***@***.***>
Cc: Joshi, Parag ***@***.***>, Mention ***@***.***>
Subject: Re: [wrf-model/WRF] Modified/Corrected LECH's stability functions in the SL Urban Canopy Model following the formulation. (PR #2032)
looks like this PR is reverted back and correct now.
—
Reply to this email directly, view it on GitHub<#2032 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BGF4AMW34XMKR7QKUWZGJVDY53XMJAVCNFSM6AAAAABFR3BMUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRSGUZTCMRZGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@joshi994 just to double check. please see if this is your original PR bug fix code changes: https://github.com/wrf-model/WRF/pull/2032/files |
@cenlinhe Yes, this is the original PR bug fix changes. I accidentally hit my_changes1 for the new PR (#2038) and that's what caused the issue. Thanks for your response. |
See CORDEX-WRF-community/fps-urb-rcc#6 Correction scheduled to appear in WRF v4.6. This still needs to be corrected in Noah MP to be complete. See wrf-model#2032
See NCAR#123 in the refactored code and wrf-model/WRF#2032 This is paired to CORDEX-WRF-community/WRF@225661d in SLUCM
No code change, just cleaner since one of Lech Lobocki's equations for heat (PSLHS) was under the Paulson equations (PSP..) section. See eq. A5-8 in https://doi.org/10.1023/A:1000531001463 and wrf-model#2032
Hi, you might want to take the opportunity to move the misplaced Lech equation to its place, as in my last commit above CORDEX-WRF-community@1a2492c |
The regression test results:
|
@cenlinhe Can you approve this PR? |
I approve this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acting for Cenlin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any idea of the size of the difference?
TYPE: Bug fix
KEYWORDS: LECH stability functions, Latent heat flux, Sensible heat flux, SL Urban Canpy Model
SOURCE: Parag Joshi (Brookhaven National Lab), Katia Lamer (Brookhaven National Lab)
DESCRIPTION OF CHANGES:
Problem:
The stability functions originally proposed by Lech Lobocki which are used in calculating the exchange coefficients between surface layer and roof, building wall, Green roof, and ground are implemented incorrectly. The error surfaced while comparing the formulation suggested in Lobocki 1992 with the equations in commands/lines 3056 and 3062 (WRF-v4.5.2).
Solution:
The code has been corrected by referring to the equations 48 and 49 of the article "A procedure for the derivation of surface layer bulk relationships from simplified second-order closure models" by Lobocki 1992 (Journal of Applied Meteorology).
LIST OF MODIFIED FILES:
M phys/module_sf_urban.F
TESTS CONDUCTED:
RELEASE NOTE: Lech's stability functions are corrected following the original formulation.