Skip to content

Add options for NonEq relaxation timescales as functions of N and T#676

Draft
oalcabes wants to merge 6 commits intomainfrom
oa/tau_i_temp_dependence
Draft

Add options for NonEq relaxation timescales as functions of N and T#676
oalcabes wants to merge 6 commits intomainfrom
oa/tau_i_temp_dependence

Conversation

@oalcabes
Copy link
Copy Markdown
Member

@oalcabes oalcabes commented Feb 11, 2026

Draft PR to make new versions of the NonEq scheme, namely tau(T) and tau(N) functionality. Still need to review docs and think carefully about testing, but I'd love comments and thoughts on the PR! This may break atmos as I've made changes to the bulk_microphysics_tendency function.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 11, 2026

Codecov Report

❌ Patch coverage is 38.46154% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.37%. Comparing base (9a9cbf8) to head (ab08dd1).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #676      +/-   ##
==========================================
- Coverage   94.58%   94.37%   -0.21%     
==========================================
  Files          53       53              
  Lines        2251     2258       +7     
==========================================
+ Hits         2129     2131       +2     
- Misses        122      127       +5     
Components Coverage Δ
src 95.46% <38.46%> (-0.22%) ⬇️
ext 69.47% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@oalcabes oalcabes changed the title Add temperature dependent relaxation timescale for NonEq Add options for NonEq relaxation timescales as functions of N and T Feb 13, 2026
@oalcabes oalcabes force-pushed the oa/tau_i_temp_dependence branch 3 times, most recently from cf55a81 to 9346e0c Compare February 13, 2026 22:50
@oalcabes oalcabes requested a review from trontrytel February 13, 2026 22:52
@oalcabes oalcabes added the NonEq 💧🧊 Non equilibrium microphysics label Feb 13, 2026
Comment thread docs/src/MicrophysicsNonEq.md Outdated
Comment thread docs/src/API.md
MicrophysicsNonEq.τ_relax
MicrophysicsNonEq.conv_q_vap_to_q_lcl_icl
MicrophysicsNonEq.conv_q_vap_to_q_lcl_MM2015
MicrophysicsNonEq.conv_q_vap_to_q_icl_MM2015
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we still want to keep MicrophysicsNonEq.conv_q_vap_to_q_icl_MM2015?

Copy link
Copy Markdown
Member Author

@oalcabes oalcabes Feb 14, 2026

Choose a reason for hiding this comment

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

Ideally we would keep "MicrophysicsNonEq.conv_q_vap_to_q_lcl_MM2015" and "MicrophysicsNonEq.conv_q_vap_to_q_icl_MM2015" and delete "MicrophysicsNonEq.conv_q_vap_to_q_lcl_icl_MM2015" - I was leaving it now for backwards compatibility but if we're okay with a breaking release I can just delete it


# Using same limiter as ClimaAtmos for now
# Not sure why, but without intermediate storing of the tendencies for the
# if/else branch this code segfaults on julia v1.11 (works fine on v1.10)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No idea. But I have seen this before too :/

@oalcabes oalcabes force-pushed the oa/tau_i_temp_dependence branch from 0e64b5e to ab706fb Compare April 1, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NonEq 💧🧊 Non equilibrium microphysics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants