Refine RSL c2m/c2h with explicit R=beta*hd/elm parameterisation (GH#1055)#1232
Open
Refine RSL c2m/c2h with explicit R=beta*hd/elm parameterisation (GH#1055)#1232
Conversation
CI Build PlanChanged FilesFortran source (1 file)
Tests (1 file)
Build Configuration
Rationale
Updated by CI on each push. See path-filters.yml for category definitions. |
Author
Validation: branch vs master baseline (post-rebase)This PR refines the RSL Summary of differences
No new NaN values. All physical bounds satisfied. SEB closes exactly at every timestep (residual = 0). How RSL changes propagate to the energy balance
With
Time series differencesScatter comparison (new vs master)Flux overlay near peak QH difference |
…ion (GH#1055) This refines the momentum and heat transfer coefficient computation (cal_c2/cal_c2h) to use explicit elm and R parameters, making the HF08 scaling more faithful to the original theory. Changes are numerically small (~0.1-2% variations in energy fluxes). Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Document the mixing length (elm = 2*beta^3*Lc, HF08 Eq. 8) and use cal_elm_RSL() instead of inline magic numbers. Add HF08 equation references (Eqs. 25a,b, 28a,b) to each formula in cal_c2/cal_c2h. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
30dfb02 to
e843e94
Compare
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.




Summary
Implements the revised RSL equations from #1055, removing the assumption$d = \beta^2 L_c$ and using the general displacement height $d = z_H - z_d$ throughout $z_d$ from #302).
cal_c2/cal_c2h. This follows the pre-substitution forms from Harman & Finnigan (2008), making the formulation valid for any displacement height definition (including the revisedBuilding on @vitorlavor's testing (which confirmed dynamic$c_{2m}$ and $c_{2h}$ are stable), this PR refines the formulas to use explicit intermediate variables: mixing length $l_m = 2\beta^3 L_c$ , displacement height $h_d = z_H - z_d$ , and the ratio $R = \beta h_d / l_m$ .
Revised equations (HF08)
Eqs. 25a,b — RSL correction at canopy top:
Eqs. 28a,b — Profile shape parameters (dynamic, replacing fixed 0.5):
Eqs. 25c,d — Correction coefficients:
where$R = \beta d / l_m$ . Under the old assumption $d = \beta^2 L_c$ , $R = 1/2$ , recovering the original fixed-coefficient forms (Eqs. 25, 28 of HF08).
Additional changes
suews_phys_rslprof.f95sample_output.csv.gzregenerated to match the refined physicsTest plan
make test-smokepasses (13/14; Rust CLI test is a pre-existing failure unrelated to this change)Closes #1055