Comorph diagnostics - #692
Draft
iboutle wants to merge 7 commits into
Draft
Conversation
added 7 commits
August 4, 2026 09:32
Add the mean updraught and downdraught parcel radius diagnostics to the CoMorph interface. CoMorph calculates these on rho-levels, in metres, so they are output on W3 with no unit conversion and no cloud-base masking. Some of the content of this change has been produced with the assistance of Anthropic Claude Opus 5 (Claude Code).
Add the frequency of updraught and downdraught on each level to the CoMorph interface. These are not CoMorph diagnostic requests: they are derived from the mass fluxes on rho-levels, taken before the cloud-base masking and unit conversion are applied to the mass flux diagnostics, so that the complete set of levels with convection is captured. Some of the content of this change has been produced with the assistance of Anthropic Claude Opus 5 (Claude Code).
Move the updraught and downdraught frequency diagnostics inside the outer == outer_iterations test, so that they are only calculated when they are going to be output, in common with the other optional convection diagnostics. Some of the content of this change has been produced with the assistance of Anthropic Claude Opus 5 (Claude Code).
Port the CoMorph parcel mean property diagnostics (UM 5-554 to 5-583) into LFRic, for both the updraught and the downdraught: excess virtual temperature, relative humidity with respect to liquid, water vapour, liquid water, ice water, rain, graupel, snow, liquid, ice and bulk cloud fractions, the three wind components and temperature. As in the UM, the rain, graupel, snow and cloud fraction diagnostics are only requested from CoMorph when convection is acting on those fields, so they are output as zero otherwise. Some of the content of this change has been produced with the assistance of Anthropic Claude Opus 5 (Claude Code).
Port the CoMorph parcel core property diagnostics (UM 5-584 to 5-587) into LFRic, for both the updraught and the downdraught: the excess virtual temperature and the relative humidity with respect to liquid of the parcel core. As in the UM, these are only requested from CoMorph when the parcel core properties are in use. Some of the content of this change has been produced with the assistance of Anthropic Claude Opus 5 (Claude Code).
Port the CoMorph turbulence diagnostics (UM 5-594 to 5-599) into LFRic: the turbulent perturbations to the wind components, the temperature and the water vapour, and the turbulence-based parcel radius. The perturbations are calculated on rho-levels and the parcel radius on theta-levels. As in the UM they are only available when turbulence-based parcel generation is in use, so they are only requested from CoMorph in that case. Some of the content of this change has been produced with the assistance of Anthropic Claude Opus 5 (Claude Code).
Adds the four CoMorph plume-genesis sub-region diagnostics (area fraction, temperature, water vapour and relative humidity with respect to liquid) for each of the four sub-regions (clear-sky, liquid-cloud, mixed-phase and ice/rain) on theta levels, plus the downdraught mass flux on rho levels. Some of the content of this change has been produced with the assistance of Anthropic Claude Opus 5 (Claude Code).
|
Your CLA signature was found on the base branch, but you appear to have modified the CONTRIBUTORS.md file in this PR. Please do not edit the CONTRIBUTORS.md file. If you have already signed the CLA, revert changes to the file and your signature will be picked up. |
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.
PR Summary
Sci/Tech Reviewer:
Code Reviewer:
All Comorph diagnostics which have equivalent UM stashcodes:
5-550convection__par_radius_up5-551convection__par_radius_down5-552convection__freq_up5-553convection__freq_down5-554convection__par_mean_dtv_up5-555convection__par_mean_dtv_down5-556convection__par_mean_rhl_up5-557convection__par_mean_rhl_down5-558convection__par_mean_q_up5-559convection__par_mean_q_down5-560convection__par_mean_qcl_up5-561convection__par_mean_qcl_down5-562convection__par_mean_qcf_up5-563convection__par_mean_qcf_down5-564convection__par_mean_qrain_up5-565convection__par_mean_qrain_down5-566convection__par_mean_qgraup_up5-567convection__par_mean_qgraup_down5-568convection__par_mean_qsnow_up5-569convection__par_mean_qsnow_down5-570convection__par_mean_cfl_up5-571convection__par_mean_cfl_down5-572convection__par_mean_cff_up5-573convection__par_mean_cff_down5-574convection__par_mean_cfb_up5-575convection__par_mean_cfb_down5-576convection__par_mean_u_up5-577convection__par_mean_u_down5-578convection__par_mean_v_up5-579convection__par_mean_v_down5-580convection__par_mean_w_up5-581convection__par_mean_w_down5-582convection__par_mean_t_up5-583convection__par_mean_t_down5-584convection__par_core_dtv_up5-585convection__par_core_dtv_down5-586convection__par_core_rhl_up5-587convection__par_core_rhl_down5-594convection__turb_pert_u5-595convection__turb_pert_v5-596convection__turb_pert_w5-597convection__turb_pert_t5-598convection__turb_pert_q5-599convection__turb_radius5-600convection__subreg_dry_frac5-601convection__subreg_liq_frac5-602convection__subreg_mph_frac5-603convection__subreg_icr_frac5-604convection__subreg_dry_t5-605convection__subreg_liq_t5-606convection__subreg_mph_t5-607convection__subreg_icr_t5-608convection__subreg_dry_q5-609convection__subreg_liq_q5-610convection__subreg_mph_q5-611convection__subreg_icr_q5-612convection__subreg_dry_rhl5-613convection__subreg_liq_rhl5-614convection__subreg_mph_rhl5-615convection__subreg_icr_rhl5-616convection__massflux_down_halfCode Quality Checklist
Testing
trac.log
Security Considerations
Performance Impact
AI Assistance and Attribution
Documentation
PSyclone Approval
Sci/Tech Review
(Please alert the code reviewer via a tag when you have approved the SR)
Code Review